From 7243c58fce355876e475c939955874992106e0eb Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 6 Apr 2018 21:57:45 -0700 Subject: [PATCH] stable rust compatibility --- src/application.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/application.rs b/src/application.rs index ac38668bb..12787d2b3 100644 --- a/src/application.rs +++ b/src/application.rs @@ -255,8 +255,8 @@ impl App where S: 'static { mem::transmute(self.parts.as_mut().expect("Use after finish"))}; // get resource handler - for (pattern, handler) in &mut parts.resources { - if let Some(ref mut handler) = handler { + for &mut (ref pattern, ref mut handler) in &mut parts.resources { + if let Some(ref mut handler) = *handler { if pattern.pattern() == path { handler.method(method).with(f); return self