mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Fix wrong From impl for Resource (#1589)
Really not sure how this got past the tests.
This commit is contained in:
@@ -137,8 +137,8 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<B> From<Resource<B>> for Router<B> {
|
||||
fn from(resource: Resource<B>) -> Self {
|
||||
impl<S, B> From<Resource<S, B>> for Router<S, B> {
|
||||
fn from(resource: Resource<S, B>) -> Self {
|
||||
resource.router
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user