Skip to content

Commit

Permalink
Delete spurious to_string()
Browse files Browse the repository at this point in the history
  • Loading branch information
clin1234 authored Jul 30, 2024
1 parent 22daa19 commit 3c03f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub fn packages(packages: Vec<(PackageManager, usize)>) -> Result<String, Readou

for (i, (pm, count)) in packages.iter().enumerate() {
let add_comma = if i + 1 < len { ", " } else { "" };
string.push_str(&format!("{} ({}){}", count, pm.to_string(), add_comma));
string.push_str(&format!("{} ({}){}", count, pm, add_comma));
}

Ok(string)
Expand Down

0 comments on commit 3c03f89

Please sign in to comment.