Remove unnecessary clone on package name (#10741)

This commit is contained in:
Charlie Marsh 2025-01-18 14:45:19 -05:00 committed by GitHub
parent 35aec8863e
commit ae366ccd0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2694,9 +2694,7 @@ impl ForkState {
if tracing::enabled!(Level::DEBUG) { if tracing::enabled!(Level::DEBUG) {
let incompatibility = self.pubgrub.incompatibility_store[incompatibility] let incompatibility = self.pubgrub.incompatibility_store[incompatibility]
.iter() .iter()
.map(|(package, _term)| { .map(|(package, _term)| &self.pubgrub.package_store[package])
format!("{}", self.pubgrub.package_store[package].clone(),)
})
.join(", "); .join(", ");
if let Some(version) = version { if let Some(version) = version {
debug!( debug!(