1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

fix(clippy): inefficient_to_string

This commit is contained in:
Gabriele Belluardo 2025-06-16 23:56:15 +02:00
parent a7ae477a7e
commit 4afeb628a4
No known key found for this signature in database
GPG key ID: 21671B8C89CCBF4F

View file

@ -218,7 +218,7 @@ impl<'input> Graph<'input> {
let cycle = self.detect_cycle();
show!(TsortError::Loop(self.name.clone()));
for node in &cycle {
show!(TsortError::LoopNode(node.to_string()));
show!(TsortError::LoopNode((*node).to_string()));
}
let u = cycle[0];
let v = cycle[1];