Shorten 'handle' function signature to one line.

This commit is contained in:
Sergio Benitez 2017-09-09 00:54:30 -07:00
parent 8dcbca5cda
commit f18fa81a4e
1 changed files with 2 additions and 3 deletions

View File

@ -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)]