1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-08-02 02:35:04 +00:00

stable rust compatibility

This commit is contained in:
Nikolay Kim 2018-04-06 21:57:45 -07:00
parent fffaf2bb2d
commit 7243c58fce

View file

@ -255,8 +255,8 @@ impl<S> App<S> 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