creader: Remove extraenous String::clone

This commit is contained in:
Piotr Osiewicz
2025-05-29 13:17:29 +02:00
parent 38081f22c2
commit 8c8d2c2e12
+1 -1
View File
@@ -435,7 +435,7 @@ fn find_library_crate(
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