Rollup merge of #141732 - osiewicz:creader-remove-extraenous-string-clone, r=Kobzol

creader: Remove extraenous String::clone

A leftover from rust-lang/rust#132910
This commit is contained in:
Guillaume Gomez 2025-05-29 17:03:03 +02:00 committed by GitHub
commit 18646a8a7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -435,7 +435,7 @@ impl<'a> CrateLocator<'a> {
info!("lib candidate: {}", spf.path.display());
let (rlibs, rmetas, dylibs, interfaces) =
candidates.entry(hash.to_string()).or_default();
candidates.entry(hash).or_default();
{
// As a perforamnce optimisation we canonicalize the path and skip
// ones we've already seeen. This allows us to ignore crates