[breaking change] Revert Entry behaviour to take keys by value.

This commit is contained in:
Dylan Ede
2015-01-06 16:36:30 +00:00
committed by Alex Crichton
parent 6539cb417f
commit 25eada1574
18 changed files with 60 additions and 69 deletions

View File

@@ -330,7 +330,7 @@ fn parse_externs(matches: &getopts::Matches) -> Result<core::Externs, String> {
}
};
let name = name.to_string();
let locs = externs.entry(&name).get().unwrap_or_else(
let locs = externs.entry(name).get().unwrap_or_else(
|vacant_entry| vacant_entry.insert(Vec::with_capacity(1)));
locs.push(location.to_string());
}