Drop Sync requirement on the handler function (#522)

Since it doesn't need to be called from different threads at the same
time.
This commit is contained in:
david-perez
2021-11-16 15:00:56 +01:00
committed by GitHub
parent e2e9f1ff68
commit 3cf8ee3b5e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ mod debug {
fn debug_handler<F, Fut, #(#generics),*>(_f: F)
where
F: ::std::ops::FnOnce(#(#generics),*) -> Fut + Clone + Send + Sync + 'static,
F: ::std::ops::FnOnce(#(#generics),*) -> Fut + Clone + Send + 'static,
Fut: ::std::future::Future + Send,
{}
}