mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-31 08:57:00 +02:00
refactor Handler trait, use mut self
This commit is contained in:
@@ -36,7 +36,7 @@ impl<S: 'static> Route<S> {
|
||||
true
|
||||
}
|
||||
|
||||
pub(crate) fn handle(&self, req: HttpRequest<S>) -> Reply {
|
||||
pub(crate) fn handle(&mut self, req: HttpRequest<S>) -> Reply {
|
||||
self.handler.handle(req)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user