]> git.proxmox.com Git - proxmox.git/commit
rrd_map: remove unnecessary use of get().is_some()
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Mon, 26 Aug 2024 12:15:30 +0000 (14:15 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 28 Aug 2024 11:09:15 +0000 (13:09 +0200)
commitb7100ecc1e3a7593df37b4169f6d39c40621a531
tree6df9540bbfdb8887f20b82e48b8c37e382d3404f
parent5586eeaba885f362d17b03f507154484a8531e90
rrd_map: remove unnecessary use of get().is_some()

Fixes:

warning: unnecessary use of `get(rel_path).is_some()`
   --> proxmox-rrd/src/cache/rrd_map.rs:107:21
    |
107 |         if self.map.get(rel_path).is_some() {
    |                     ^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `contains_key(rel_path)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
proxmox-rrd/src/cache/rrd_map.rs