crosvm/argh_helpers
Daniel Verkamp 7666fbc7eb argh_helpers: use fold() to build String from iterator
Rather than constructing a bunch of String objects with format!() and
then concatenating them all with collect() at the end, use fold() and
write!() to append onto a single String instance.

This is suggested by a new Rust 1.73 clippy lint.

<https://rust-lang.github.io/rust-clippy/master/index.html#/format_collect>

Change-Id: If9bcc9fa579228618a7cb6f3602793f2287d97c4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5005519
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2023-11-06 22:22:50 +00:00
..
src argh_helpers: use fold() to build String from iterator 2023-11-06 22:22:50 +00:00
Cargo.toml crosvm: argh-ify device command 2022-06-02 19:21:36 +00:00