1
Fork 0

default => or_insert per RFC

This commit is contained in:
Alexis Beingessner 2015-03-20 13:43:01 -04:00 committed by Alexis
parent 93cdf1f278
commit 1b98f6da7a
16 changed files with 31 additions and 34 deletions

View file

@ -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)
}