From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox 2/8] don't hide a lifetimes that are elided elsewhere
Date: Tue, 9 Dec 2025 11:52:42 +0100 [thread overview]
Message-ID: <20251209105252.241312-2-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20251209105252.241312-1-m.sandoval@proxmox.com>
Signed-off-by: Maximiliano Sandoval <m.sandoval@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
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next prev parent reply other threads:[~2025-12-09 10:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-09 10:52 [pbs-devel] [PATCH proxmox 1/8] cargo: bump msrv to 1.87 Maximiliano Sandoval
2025-12-09 10:52 ` Maximiliano Sandoval [this message]
2025-12-09 10:52 ` [pbs-devel] [PATCH proxmox 3/8] auth-api: remove unnecessary return Maximiliano Sandoval
2025-12-09 10:52 ` [pbs-devel] [PATCH proxmox 4/8] deb-version: remove unnecesary vec! call Maximiliano Sandoval
2025-12-09 10:52 ` [pbs-devel] [PATCH proxmox 5/8] fixed-string: remove unused import Maximiliano Sandoval
2025-12-09 10:52 ` [pbs-devel] [PATCH proxmox 6/8] rest-server: " Maximiliano Sandoval
2025-12-09 10:52 ` [pbs-devel] [PATCH proxmox 7/8] http: remove unnecessary conversion Maximiliano Sandoval
2025-12-09 10:52 ` [pbs-devel] [PATCH proxmox 8/8] router: replace clone with std::slice::from_ref Maximiliano Sandoval
2025-12-09 16:22 ` [pbs-devel] [PATCH proxmox 1/8] cargo: bump msrv to 1.87 Thomas Lamprecht
2025-12-10 8:40 ` Maximiliano Sandoval
2025-12-10 9:02 ` Thomas Lamprecht
2025-12-10 10:57 ` [pbs-devel] superseded: " Maximiliano Sandoval
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251209105252.241312-2-m.sandoval@proxmox.com \
--to=m.sandoval@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.