mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 22:56:46 +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`.",
|
"Extension of type `{}` was not found. Perhaps you forgot to add it? See `axum::Extension`.",
|
||||||
std::any::type_name::<T>()
|
std::any::type_name::<T>()
|
||||||
))
|
))
|
||||||
})
|
}).cloned()?;
|
||||||
.map(|x| x.clone())?;
|
|
||||||
|
|
||||||
Ok(Extension(value))
|
Ok(Extension(value))
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,4 +10,5 @@ pub(crate) mod tracing_helpers;
|
||||||
pub(crate) fn assert_send<T: Send>() {}
|
pub(crate) fn assert_send<T: Send>() {}
|
||||||
pub(crate) fn assert_sync<T: Sync>() {}
|
pub(crate) fn assert_sync<T: Sync>() {}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub(crate) struct NotSendSync(*const ());
|
pub(crate) struct NotSendSync(*const ());
|
||||||
|
|
Loading…
Reference in a new issue