mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
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:
@@ -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,
|
||||
{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user