* [pve-devel] [PATCH proxmox-ve-rs] config: fix a few clippy warnings
@ 2025-01-17 7:51 Christoph Heiss
2025-02-25 10:25 ` Christoph Heiss
2025-04-04 7:54 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 2 replies; 3+ messages in thread
From: Christoph Heiss @ 2025-01-17 7:51 UTC (permalink / raw)
To: pve-devel
.. as newly introduced with 1.84.
Namely `elided_named_lifetimes` for the change of `SdnConfig` and
`clippy::needless_lifetimes` for the rest.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
proxmox-ve-config/src/firewall/parse.rs | 6 +++---
proxmox-ve-config/src/sdn/config.rs | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/proxmox-ve-config/src/firewall/parse.rs b/proxmox-ve-config/src/firewall/parse.rs
index 7bf00c0..8cf4757 100644
--- a/proxmox-ve-config/src/firewall/parse.rs
+++ b/proxmox-ve-config/src/firewall/parse.rs
@@ -316,7 +316,7 @@ pub mod serde_option_log_ratelimit {
#[derive(Clone, Copy, Debug)]
pub struct SomeStrDeserializer<'a, E>(serde::de::value::StrDeserializer<'a, E>);
-impl<'de, 'a, E> serde::de::Deserializer<'de> for SomeStrDeserializer<'a, E>
+impl<'de, E> serde::de::Deserializer<'de> for SomeStrDeserializer<'_, E>
where
E: serde::de::Error,
{
@@ -379,7 +379,7 @@ impl<'a> From<&'a str> for SomeStr<'a> {
}
}
-impl<'de, 'a, E> serde::de::IntoDeserializer<'de, E> for SomeStr<'a>
+impl<'a, E> serde::de::IntoDeserializer<'_, E> for SomeStr<'a>
where
E: serde::de::Error,
{
@@ -465,7 +465,7 @@ impl From<String> for SomeString {
}
}
-impl<'de, E> serde::de::IntoDeserializer<'de, E> for SomeString
+impl<E> serde::de::IntoDeserializer<'_, E> for SomeString
where
E: serde::de::Error,
{
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.47.0
_______________________________________________
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] config: fix a few clippy warnings
2025-01-17 7:51 [pve-devel] [PATCH proxmox-ve-rs] config: fix a few clippy warnings Christoph Heiss
@ 2025-02-25 10:25 ` Christoph Heiss
2025-04-04 7:54 ` [pve-devel] applied: " Thomas Lamprecht
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Heiss @ 2025-02-25 10:25 UTC (permalink / raw)
To: Proxmox VE development discussion
Ping, still applies.
FWIW, no new warnings popped up with 1.85.
On Fri Jan 17, 2025 at 8:51 AM CET, Christoph Heiss wrote:
> .. as newly introduced with 1.84.
>
> Namely `elided_named_lifetimes` for the change of `SdnConfig` and
> `clippy::needless_lifetimes` for the rest.
>
> Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
> ---
> proxmox-ve-config/src/firewall/parse.rs | 6 +++---
> proxmox-ve-config/src/sdn/config.rs | 2 +-
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/proxmox-ve-config/src/firewall/parse.rs b/proxmox-ve-config/src/firewall/parse.rs
> index 7bf00c0..8cf4757 100644
> --- a/proxmox-ve-config/src/firewall/parse.rs
> +++ b/proxmox-ve-config/src/firewall/parse.rs
> @@ -316,7 +316,7 @@ pub mod serde_option_log_ratelimit {
> #[derive(Clone, Copy, Debug)]
> pub struct SomeStrDeserializer<'a, E>(serde::de::value::StrDeserializer<'a, E>);
>
> -impl<'de, 'a, E> serde::de::Deserializer<'de> for SomeStrDeserializer<'a, E>
> +impl<'de, E> serde::de::Deserializer<'de> for SomeStrDeserializer<'_, E>
> where
> E: serde::de::Error,
> {
> @@ -379,7 +379,7 @@ impl<'a> From<&'a str> for SomeStr<'a> {
> }
> }
>
> -impl<'de, 'a, E> serde::de::IntoDeserializer<'de, E> for SomeStr<'a>
> +impl<'a, E> serde::de::IntoDeserializer<'_, E> for SomeStr<'a>
> where
> E: serde::de::Error,
> {
> @@ -465,7 +465,7 @@ impl From<String> for SomeString {
> }
> }
>
> -impl<'de, E> serde::de::IntoDeserializer<'de, E> for SomeString
> +impl<E> serde::de::IntoDeserializer<'_, E> for SomeString
> where
> E: serde::de::Error,
> {
> 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())
_______________________________________________
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
* [pve-devel] applied: [PATCH proxmox-ve-rs] config: fix a few clippy warnings
2025-01-17 7:51 [pve-devel] [PATCH proxmox-ve-rs] config: fix a few clippy warnings Christoph Heiss
2025-02-25 10:25 ` Christoph Heiss
@ 2025-04-04 7:54 ` Thomas Lamprecht
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2025-04-04 7:54 UTC (permalink / raw)
To: Proxmox VE development discussion, Christoph Heiss
Am 17.01.25 um 08:51 schrieb Christoph Heiss:
> .. as newly introduced with 1.84.
>
> Namely `elided_named_lifetimes` for the change of `SdnConfig` and
> `clippy::needless_lifetimes` for the rest.
>
> Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
> ---
> proxmox-ve-config/src/firewall/parse.rs | 6 +++---
> proxmox-ve-config/src/sdn/config.rs | 2 +-
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
>
applied, thanks!
_______________________________________________
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-04-04 7:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-17 7:51 [pve-devel] [PATCH proxmox-ve-rs] config: fix a few clippy warnings Christoph Heiss
2025-02-25 10:25 ` Christoph Heiss
2025-04-04 7:54 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal