mirror of https://github.com/fafhrd91/actix-web
address new clippy lints
This commit is contained in:
parent
cf9ea4560a
commit
09d9d6a3e7
|
@ -501,7 +501,12 @@ impl ResourceDef {
|
||||||
let patterns = self
|
let patterns = self
|
||||||
.pattern_iter()
|
.pattern_iter()
|
||||||
.flat_map(move |this| other.pattern_iter().map(move |other| (this, other)))
|
.flat_map(move |this| other.pattern_iter().map(move |other| (this, other)))
|
||||||
.map(|(this, other)| [this, other].join(""))
|
.map(|(this, other)| {
|
||||||
|
let mut pattern = String::with_capacity(this.len() + other.len());
|
||||||
|
pattern.push_str(this);
|
||||||
|
pattern.push_str(other);
|
||||||
|
pattern
|
||||||
|
})
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
match patterns.len() {
|
match patterns.len() {
|
||||||
|
|
Loading…
Reference in New Issue