Minor improvement of variable naming accuracy

This commit is contained in:
cyqsimon
2023-11-02 20:35:58 +08:00
parent 64840fbbae
commit 0fea82cff9
2 changed files with 5 additions and 4 deletions

View File

@ -172,10 +172,10 @@ impl MappingDefModel {
let list = self
.mappings
.into_iter()
.flat_map(|(target, matcher)| {
matcher
.flat_map(|(target, matchers)| {
matchers
.into_iter()
.map(|rule| (rule, target.clone()))
.map(|matcher| (matcher, target.clone()))
.collect::<Vec<_>>()
})
.collect();