default => or_insert per RFC
This commit is contained in:
parent
93cdf1f278
commit
1b98f6da7a
16 changed files with 31 additions and 34 deletions
|
@ -352,7 +352,7 @@ fn parse_externs(matches: &getopts::Matches) -> Result<core::Externs, String> {
|
|||
}
|
||||
};
|
||||
let name = name.to_string();
|
||||
externs.entry(name).default(vec![]).push(location.to_string());
|
||||
externs.entry(name).or_insert(vec![]).push(location.to_string());
|
||||
}
|
||||
Ok(externs)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue