Skip to content

Commit 18646a8

Browse files
Rollup merge of #141732 - osiewicz:creader-remove-extraenous-string-clone, r=Kobzol
creader: Remove extraenous String::clone A leftover from #132910
2 parents aaa9159 + 8c8d2c2 commit 18646a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_metadata/src/locator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ impl<'a> CrateLocator<'a> {
435435
info!("lib candidate: {}", spf.path.display());
436436

437437
let (rlibs, rmetas, dylibs, interfaces) =
438-
candidates.entry(hash.to_string()).or_default();
438+
candidates.entry(hash).or_default();
439439
{
440440
// As a perforamnce optimisation we canonicalize the path and skip
441441
// ones we've already seeen. This allows us to ignore crates

0 commit comments

Comments
 (0)