Don't internally Arc the state (#1460)

This commit is contained in:
David Pedersen
2022-10-09 20:55:28 +00:00
committed by GitHub
parent a2ab338e68
commit f9dc96fdce
18 changed files with 206 additions and 185 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ pub trait RouterExt<S, B>: sealed::Sealed {
impl<S, B> RouterExt<S, B> for Router<S, B>
where
B: axum::body::HttpBody + Send + 'static,
S: Send + Sync + 'static,
S: Clone + Send + Sync + 'static,
{
#[cfg(feature = "typed-routing")]
fn typed_get<H, T, P>(self, handler: H) -> Self
+1 -1
View File
@@ -53,7 +53,7 @@ where
impl<S, B> Resource<S, B>
where
B: axum::body::HttpBody + Send + 'static,
S: Send + Sync + 'static,
S: Clone + Send + Sync + 'static,
{
/// Create a `Resource` with the given name and state.
///