mirror of
https://github.com/actix/actix-web.git
synced 2024-12-18 06:06:36 +00:00
stable rust compatibility
This commit is contained in:
parent
fffaf2bb2d
commit
7243c58fce
1 changed files with 2 additions and 2 deletions
|
@ -255,8 +255,8 @@ impl<S> App<S> where S: 'static {
|
||||||
mem::transmute(self.parts.as_mut().expect("Use after finish"))};
|
mem::transmute(self.parts.as_mut().expect("Use after finish"))};
|
||||||
|
|
||||||
// get resource handler
|
// get resource handler
|
||||||
for (pattern, handler) in &mut parts.resources {
|
for &mut (ref pattern, ref mut handler) in &mut parts.resources {
|
||||||
if let Some(ref mut handler) = handler {
|
if let Some(ref mut handler) = *handler {
|
||||||
if pattern.pattern() == path {
|
if pattern.pattern() == path {
|
||||||
handler.method(method).with(f);
|
handler.method(method).with(f);
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Reference in a new issue