From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 03BF61FF179 for ; Wed, 10 Dec 2025 11:56:12 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 622E5189C7; Wed, 10 Dec 2025 11:56:51 +0100 (CET) From: Maximiliano Sandoval To: pbs-devel@lists.proxmox.com Date: Wed, 10 Dec 2025 11:56:07 +0100 Message-ID: <20251210105615.215532-2-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251210105615.215532-1-m.sandoval@proxmox.com> References: <20251210105615.215532-1-m.sandoval@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1765364169068 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.094 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox v2 2/8] don't hide a lifetimes that are elided elsewhere X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" Signed-off-by: Maximiliano Sandoval --- 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, - ) -> Result { + ) -> Result, 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 { +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 { + pub fn create_entry(&mut self) -> Result, 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 { + 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