mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 14:46:32 +01:00
parent
5f7fcc5866
commit
a3ec44a5a0
2 changed files with 2 additions and 2 deletions
|
@ -87,8 +87,7 @@ where
|
|||
"Extension of type `{}` was not found. Perhaps you forgot to add it? See `axum::Extension`.",
|
||||
std::any::type_name::<T>()
|
||||
))
|
||||
})
|
||||
.map(|x| x.clone())?;
|
||||
}).cloned()?;
|
||||
|
||||
Ok(Extension(value))
|
||||
}
|
||||
|
|
|
@ -10,4 +10,5 @@ pub(crate) mod tracing_helpers;
|
|||
pub(crate) fn assert_send<T: Send>() {}
|
||||
pub(crate) fn assert_sync<T: Sync>() {}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub(crate) struct NotSendSync(*const ());
|
||||
|
|
Loading…
Reference in a new issue