From dd38ff94a9c3123a2fb43b8f2c3c4685f7ef6b77 Mon Sep 17 00:00:00 2001 From: Mason Ginter Date: Mon, 14 Nov 2022 18:36:01 -0500 Subject: [PATCH] Fix new Fn bounds See: https://github.com/rust-lang/rust/pull/99943 --- src/detours/statik.rs | 1 + src/traits.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detours/statik.rs b/src/detours/statik.rs index 58f878ee..11ec6b77 100644 --- a/src/detours/statik.rs +++ b/src/detours/statik.rs @@ -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}; diff --git a/src/traits.rs b/src/traits.rs index 655bab5c..036a8ada 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -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;