From f18fa81a4ed0b0029d462850b48badc25ac0a6b6 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sat, 9 Sep 2017 00:54:30 -0700 Subject: [PATCH] Shorten 'handle' function signature to one line. --- lib/src/catcher.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/catcher.rs b/lib/src/catcher.rs index 6ec94cbd..1739a7ff 100644 --- a/lib/src/catcher.rs +++ b/lib/src/catcher.rs @@ -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)]