all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH proxmox-ve-rs 1/1] clippy: elided lifetime has a name
@ 2025-02-04 10:02 Stefan Hanreich
  2025-03-31 12:43 ` Gabriel Goller
  0 siblings, 1 reply; 3+ messages 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] 3+ messages in thread

* Re: [pve-devel] [PATCH proxmox-ve-rs 1/1] clippy: elided lifetime has a name
  2025-02-04 10:02 [pve-devel] [PATCH proxmox-ve-rs 1/1] clippy: elided lifetime has a name Stefan Hanreich
@ 2025-03-31 12:43 ` Gabriel Goller
  2025-03-31 13:17   ` Maximiliano Sandoval
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel Goller @ 2025-03-31 12:43 UTC (permalink / raw)
  To: Stefan Hanreich; +Cc: pve-devel

bump, still applies


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pve-devel] [PATCH proxmox-ve-rs 1/1] clippy: elided lifetime has a name
  2025-03-31 12:43 ` Gabriel Goller
@ 2025-03-31 13:17   ` Maximiliano Sandoval
  0 siblings, 0 replies; 3+ messages in thread
From: Maximiliano Sandoval @ 2025-03-31 13:17 UTC (permalink / raw)
  To: Proxmox VE development discussion


Gabriel Goller <g.goller@proxmox.com> writes:

> bump, still applies

If I am not mistaken, this could use `+ use<'a>` instead of `+ 'a`.


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-03-31 13:19 UTC | newest]

Thread overview: 3+ messages (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
2025-03-31 12:43 ` Gabriel Goller
2025-03-31 13:17   ` Maximiliano Sandoval

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal