diff --git a/leptos/src/callback.rs b/leptos/src/callback.rs index 5ee520a076..2f2a9c8845 100644 --- a/leptos/src/callback.rs +++ b/leptos/src/callback.rs @@ -146,34 +146,25 @@ where } #[cfg(feature = "nightly")] -impl FnOnce for Callback -where - In: std::marker::Tuple, -{ +impl FnOnce<(In,)> for Callback { type Output = Out; - extern "rust-call" fn call_once(self, args: In) -> Self::Output { - Callable::call(&self, args) + extern "rust-call" fn call_once(self, args: (In,)) -> Self::Output { + Callable::call(&self, args.0) } } #[cfg(feature = "nightly")] -impl FnMut for Callback -where - In: std::marker::Tuple, -{ - extern "rust-call" fn call_mut(&mut self, args: In) -> Self::Output { - Callable::call(&*self, args) +impl FnMut<(In,)> for Callback { + extern "rust-call" fn call_mut(&mut self, args: (In,)) -> Self::Output { + Callable::call(&*self, args.0) } } #[cfg(feature = "nightly")] -impl Fn for Callback -where - In: std::marker::Tuple, -{ - extern "rust-call" fn call(&self, args: In) -> Self::Output { - Callable::call(self, args) +impl Fn<(In,)> for Callback { + extern "rust-call" fn call(&self, args: (In,)) -> Self::Output { + Callable::call(self, args.0) } } diff --git a/leptos/src/lib.rs b/leptos/src/lib.rs index 9e8236eabe..16aea506b3 100644 --- a/leptos/src/lib.rs +++ b/leptos/src/lib.rs @@ -4,7 +4,6 @@ #![cfg_attr(feature = "nightly", feature(unboxed_closures))] #![cfg_attr(feature = "nightly", feature(negative_impls))] #![cfg_attr(feature = "nightly", feature(auto_traits))] -#![cfg_attr(feature = "nightly", feature(tuple_trait))] //! # About Leptos //! //! Leptos is a full-stack framework for building web applications in Rust. You can use it to build