* [pve-devel] [PATCH proxmox-ve-rs 1/1] clippy: elided lifetime has a name
@ 2025-02-04 10:02 Stefan Hanreich
0 siblings, 0 replies; only message in thread
From: Stefan Hanreich @ 2025-02-04 10:02 UTC (permalink / raw)
To: pve-devel
--> 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@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
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-04 10:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-04 10:02 [pve-devel] [PATCH proxmox-ve-rs 1/1] clippy: elided lifetime has a name Stefan Hanreich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox