73b9d2ff3b
This isn't important at all, but I am just trying to up my "Rust iterator and mapping" skills. Here: - In this case we always want to go from `Option<T>` to `Option<T>`, so instead of destructuring `Some()` back to another `Some()` we can use `as_mut()` to manipulate the inner vector directly. - Now instead of destroying the inner `Vec<>` we need to use `drain()` instead - And then we can just `extend()` with a reversed iterator from our explicit temporary |
||
---|---|---|
.. | ||
libdnf-sys | ||
rpmostree-client | ||
src | ||
.gitignore | ||
LICENSE-APACHE | ||
LICENSE-MIT |