Skip to content

Commit

Permalink
Fix new Fn<Arguments: Tuple> bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Hpmason authored and trha committed Jan 13, 2023
1 parent fa97735 commit dd38ff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/detours/statik.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::error::{Error, Result};
use crate::traits::TupCons;
use crate::{Function, GenericDetour};
use std::marker::Tuple;
use std::sync::atomic::{AtomicPtr, Ordering};
use std::{mem, ptr};

Expand Down
2 changes: 1 addition & 1 deletion src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::marker::Tuple;
/// detouring.
pub unsafe trait Function: Sized + Copy + Sync + 'static {
/// The argument types as a tuple.
type Arguments;
type Arguments: Tuple;

/// The return type.
type Output;
Expand Down

0 comments on commit dd38ff9

Please sign in to comment.