[pbs-devel] applied-series: [PATCH proxmox 01/10] clippy: remove needless borrow

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Aug 7 20:59:37 CEST 2024


On 07/08/2024 09:43, Maximiliano Sandoval wrote:
> Fixes the clippy warning:
> 
> warning: this expression borrows a value the compiler would automatically borrow
>    --> proxmox-apt/src/repositories/file/sources_parser.rs:111:40
>     |
> 111 | ...                   types.push((&package_type[..]).parse()?);
>     |                                  ^^^^^^^^^^^^^^^^^^^ help: change this to: `package_type[..]`
>     |
>     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
>     = note: `#[warn(clippy::needless_borrow)]` on by default
> 
> Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
> ---
>  proxmox-apt/src/repositories/file/sources_parser.rs | 2 +-
>  proxmox-router/src/cli/completion.rs                | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
>

applied series with Lukas' R-b, thanks!




More information about the pbs-devel mailing list