From 687b398d1c4ddcea52ad88105c976cad99c299d7 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 6 Jun 2021 20:13:48 +0300 Subject: chore: drop unnecessary closure Sponsored-by: author --- src/git.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.rs b/src/git.rs index 5f1f66c..9aa8a52 100644 --- a/src/git.rs +++ b/src/git.rs @@ -23,7 +23,7 @@ pub fn init>(dirname: P) -> Result<(), JournalError> { pub fn add>(dirname: P, files: &[P]) -> Result<(), JournalError> { let args = &["add", "--"]; - let mut args: Vec = args.iter().map(|x| OsString::from(x)).collect(); + let mut args: Vec = args.iter().map(OsString::from).collect(); for f in files { args.push(OsString::from(f.as_ref())); } -- cgit v1.2.1