public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox] sendmail: remove redundant collect in args
@ 2025-02-24 10:22 Maximiliano Sandoval
  0 siblings, 0 replies; only message in thread
From: Maximiliano Sandoval @ 2025-02-24 10:22 UTC (permalink / raw)
  To: pbs-devel

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---

Just a random commit I had locally.

 proxmox-sendmail/src/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-sendmail/src/lib.rs b/proxmox-sendmail/src/lib.rs
index 050c3322..67c7293f 100644
--- a/proxmox-sendmail/src/lib.rs
+++ b/proxmox-sendmail/src/lib.rs
@@ -272,7 +272,7 @@ impl<'a> Mail<'a> {
             .arg("-f")
             .arg(&self.mail_from)
             .arg("--")
-            .args(self.to.iter().map(|p| &p.email).collect::<Vec<&String>>())
+            .args(self.to.iter().map(|p| &p.email))
             .stdin(Stdio::piped())
             .spawn()
             .with_context(|| "could not spawn sendmail process")?;
-- 
2.39.5



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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-24 10:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-24 10:22 [pbs-devel] [PATCH proxmox] sendmail: remove redundant collect in args Maximiliano Sandoval

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