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) {
let incompatibility = self.pubgrub.incompatibility_store[incompatibility]
.iter()
.map(|(package, _term)| {
format!("{}", self.pubgrub.package_store[package].clone(),)
})
.map(|(package, _term)| &self.pubgrub.package_store[package])
.join(", ");
if let Some(version) = version {
debug!(