mirror of https://github.com/rwf2/Rocket.git
Shorten 'handle' function signature to one line.
This commit is contained in:
parent
8dcbca5cda
commit
f18fa81a4e
|
@ -99,9 +99,8 @@ impl Catcher {
|
|||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub(crate) fn handle<'r>(&self, err: Error, req: &'r Request)
|
||||
-> response::Result<'r> {
|
||||
(self.handler)(err, req)
|
||||
pub(crate) fn handle<'r>(&self, e: Error, r: &'r Request) -> response::Result<'r> {
|
||||
(self.handler)(e, r)
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
|
|
Loading…
Reference in New Issue