mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
@@ -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 ());
|
||||||
|
|||||||
Reference in New Issue
Block a user