[pbs-devel] applied-series: [PATCH proxmox 01/10] clippy: remove needless borrow
Maximiliano Sandoval
m.sandoval at proxmox.com
Fri Aug 9 13:11:24 CEST 2024
Thomas Lamprecht <t.lamprecht at proxmox.com> writes:
> 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>
>
> applied series with Lukas' R-b, thanks!
Thanks! I don't see the first commit in the series ()`clippy: remove
needless borrow`) in the repository, is it possible that it slipped by?
--
Maximiliano
More information about the pbs-devel
mailing list