[pve-devel] [PATCH proxmox-ve-rs 1/1] clippy: elided lifetime has a name
Stefan Hanreich
s.hanreich at proxmox.com
Tue Feb 4 11:02:08 CET 2025
--> proxmox-ve-config/src/sdn/config.rs:547:40
|
544 | pub fn ipsets<'a>(
| -- lifetime `'a` declared here
...
547 | ) -> impl Iterator<Item = Ipset> + '_ {
| ^^ this elided lifetime gets resolved as `'a`
|
= note: `#[warn(elided_named_lifetimes)]` on by default
warning: `proxmox-ve-config` (lib) generated 1 warning
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
proxmox-ve-config/src/sdn/config.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxmox-ve-config/src/sdn/config.rs b/proxmox-ve-config/src/sdn/config.rs
index 7ee1101..880efc2 100644
--- a/proxmox-ve-config/src/sdn/config.rs
+++ b/proxmox-ve-config/src/sdn/config.rs
@@ -544,7 +544,7 @@ impl SdnConfig {
pub fn ipsets<'a>(
&'a self,
filter: Option<&'a Allowlist<VnetName>>,
- ) -> impl Iterator<Item = Ipset> + '_ {
+ ) -> impl Iterator<Item = Ipset> + 'a {
self.zones
.values()
.flat_map(|zone| zone.vnets())
--
2.39.5
More information about the pve-devel
mailing list