[pbs-devel] [PATCH proxmox] sendmail: remove redundant collect in args
Maximiliano Sandoval
m.sandoval at proxmox.com
Mon Feb 24 11:22:41 CET 2025
Signed-off-by: Maximiliano Sandoval <m.sandoval at 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
More information about the pbs-devel
mailing list