[pbs-devel] [PATCH proxmox 2/8] don't hide a lifetimes that are elided elsewhere

Maximiliano Sandoval m.sandoval at proxmox.com
Tue Dec 9 11:52:42 CET 2025


Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 proxmox-acme/src/account.rs               | 2 +-
 proxmox-notify/src/endpoints/smtp.rs      | 2 +-
 proxmox-sys/src/fs/acl.rs                 | 2 +-
 proxmox-sys/src/fs/read_dir.rs            | 2 +-
 proxmox-sys/src/linux/procfs/mountinfo.rs | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/proxmox-acme/src/account.rs b/proxmox-acme/src/account.rs
index 0bbf0027..f763c1e9 100644
--- a/proxmox-acme/src/account.rs
+++ b/proxmox-acme/src/account.rs
@@ -245,7 +245,7 @@ impl Account {
         &self,
         certificate: &[u8],
         reason: Option<u32>,
-    ) -> Result<CertificateRevocation, Error> {
+    ) -> Result<CertificateRevocation<'_>, Error> {
         let cert = if certificate.starts_with(b"-----BEGIN CERTIFICATE-----") {
             b64u::encode(&openssl::x509::X509::from_pem(certificate)?.to_der()?)
         } else {
diff --git a/proxmox-notify/src/endpoints/smtp.rs b/proxmox-notify/src/endpoints/smtp.rs
index d4fed237..c888dee7 100644
--- a/proxmox-notify/src/endpoints/smtp.rs
+++ b/proxmox-notify/src/endpoints/smtp.rs
@@ -381,7 +381,7 @@ fn build_forwarded_message(
 }
 
 /// Quote mail name if required by RFC5322.
-fn quote_name_if_needed(name: &str) -> Cow<str> {
+fn quote_name_if_needed(name: &str) -> Cow<'_, str> {
     // See https://datatracker.ietf.org/doc/html/rfc5322#section-3.2.3
     let needs_quotes = name.chars().any(|c| {
         matches!(
diff --git a/proxmox-sys/src/fs/acl.rs b/proxmox-sys/src/fs/acl.rs
index 29aa75ab..4aabb454 100644
--- a/proxmox-sys/src/fs/acl.rs
+++ b/proxmox-sys/src/fs/acl.rs
@@ -126,7 +126,7 @@ impl ACL {
         Ok(ACL { ptr })
     }
 
-    pub fn create_entry(&mut self) -> Result<ACLEntry, nix::errno::Errno> {
+    pub fn create_entry(&mut self) -> Result<ACLEntry<'_>, nix::errno::Errno> {
         let mut ptr = ptr::null_mut();
         let res = unsafe { acl_create_entry(&mut self.ptr, &mut ptr) };
         if res < 0 {
diff --git a/proxmox-sys/src/fs/read_dir.rs b/proxmox-sys/src/fs/read_dir.rs
index 66b6c838..d8330cd1 100644
--- a/proxmox-sys/src/fs/read_dir.rs
+++ b/proxmox-sys/src/fs/read_dir.rs
@@ -171,7 +171,7 @@ where
 
     /// Filter by file name. Note that file names which aren't valid utf-8 will be treated as if
     /// they do not match the pattern.
-    fn filter_file_name_regex(self, regex: &Regex) -> FileNameRegexFilter<Self, T, E> {
+    fn filter_file_name_regex(self, regex: &Regex) -> FileNameRegexFilter<'_, Self, T, E> {
         FileNameRegexFilter { inner: self, regex }
     }
 }
diff --git a/proxmox-sys/src/linux/procfs/mountinfo.rs b/proxmox-sys/src/linux/procfs/mountinfo.rs
index f02c314c..6cedbb84 100644
--- a/proxmox-sys/src/linux/procfs/mountinfo.rs
+++ b/proxmox-sys/src/linux/procfs/mountinfo.rs
@@ -211,7 +211,7 @@ impl MountInfo {
     }
 
     /// Iterate over mount entries.
-    pub fn iter(&self) -> Iter {
+    pub fn iter(&self) -> Iter<'_> {
         self.entries.iter()
     }
 
-- 
2.47.3





More information about the pbs-devel mailing list