We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b19de6f commit 41afeb9Copy full SHA for 41afeb9
src/route.rs
@@ -77,10 +77,7 @@ impl<'a> Route<'a> {
77
}
78
79
/// Apply the given middleware to the current route.
80
- pub fn with<M>(&mut self, middleware: M) -> &mut Self
81
- where
82
- M: Middleware,
83
- {
+ pub fn with(&mut self, middleware: impl Middleware) -> &mut Self {
84
log::trace!(
85
"Adding middleware {} to route {:?}",
86
middleware.name(),
0 commit comments