fix: add itoa dependency and optimize string formatting in Proxy implementation

This commit is contained in:
monosans
2025-12-24 13:31:29 +03:00
parent 843c9f3553
commit 44c1a8f177
4 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ pub trait CompactStrJoin: Iterator {
);
write!(&mut result, "{first_elt}").unwrap();
for elt in self {
write!(&mut result, "{sep}{elt}").unwrap();
result.push_str(sep);
write!(&mut result, "{elt}").unwrap();
}
result
},