mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-30 08:24:28 +02:00
chore: update msrv to 1.68 (#3094)
This commit is contained in:
@ -501,7 +501,12 @@ impl ResourceDef {
|
||||
let patterns = self
|
||||
.pattern_iter()
|
||||
.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<_>>();
|
||||
|
||||
match patterns.len() {
|
||||
|
Reference in New Issue
Block a user