proxmox/proxmox-router
Wolfgang Bumiller f32f48b119 router: cli: avoid unnecessary clones/allocation
The `new_args` Vec is directly passed to the other Vec's `.extend()`,
which takes an `IntoIterator` consuming it, so just pass the
intermediate `Iterator`.

The `rest` Vec owns its strings and we don't need it afterwards, so
similarly, we can consume it via `.extend()` instead of a manual
push(s.clone()) loop.

The .truncate(0) can just be .clear() - they are equivalent according
to their documentation.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2025-03-13 11:46:52 +01:00
..
debian router: bump to 3.1.0-1 2025-03-04 15:54:19 +01:00
src router: cli: avoid unnecessary clones/allocation 2025-03-13 11:46:52 +01:00
tests router: fix nested doc test cases to match inteded output 2025-03-06 15:25:24 +01:00
Cargo.toml router: bump to 3.1.0-1 2025-03-04 15:54:19 +01:00