Fix wrong From impl for Resource (#1589)

Really not sure how this got past the tests.
This commit is contained in:
David Pedersen
2022-11-29 09:35:26 +00:00
committed by GitHub
parent 87a80ec47b
commit c7985b7858
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -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
}
}