Skip to content

Commit dd38ff9

Browse files
Hpmasontrha
authored andcommitted
Fix new Fn<Arguments: Tuple> bounds
See: rust-lang/rust#99943
1 parent fa97735 commit dd38ff9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/detours/statik.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::error::{Error, Result};
22
use crate::traits::TupCons;
33
use crate::{Function, GenericDetour};
4+
use std::marker::Tuple;
45
use std::sync::atomic::{AtomicPtr, Ordering};
56
use std::{mem, ptr};
67

src/traits.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::marker::Tuple;
99
/// detouring.
1010
pub unsafe trait Function: Sized + Copy + Sync + 'static {
1111
/// The argument types as a tuple.
12-
type Arguments;
12+
type Arguments: Tuple;
1313

1414
/// The return type.
1515
type Output;

0 commit comments

Comments
 (0)