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)]
|
#[inline(always)]
|
||||||
pub(crate) fn handle<'r>(&self, err: Error, req: &'r Request)
|
pub(crate) fn handle<'r>(&self, e: Error, r: &'r Request) -> response::Result<'r> {
|
||||||
-> response::Result<'r> {
|
(self.handler)(e, r)
|
||||||
(self.handler)(err, req)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
|
Loading…
Reference in New Issue