mirror of https://github.com/fafhrd91/actix-net
clippy
This commit is contained in:
parent
a29a1a6dca
commit
bab6c2d423
|
@ -110,10 +110,10 @@ impl ResourceDef {
|
|||
|
||||
ResourceDef {
|
||||
tp,
|
||||
pattern,
|
||||
elements: Some(elements),
|
||||
id: 0,
|
||||
name: String::new(),
|
||||
pattern: pattern.to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -385,7 +385,7 @@ impl ResourceDef {
|
|||
return (tp, vec![PatternElement::Const(String::from(pattern))]);
|
||||
}
|
||||
|
||||
let pattern_orig = pattern.to_owned();
|
||||
let pattern_orig = pattern;
|
||||
let mut elements = Vec::new();
|
||||
let mut re = format!("{}^", REGEX_FLAGS);
|
||||
let mut dyn_elements = 0;
|
||||
|
|
Loading…
Reference in New Issue