summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/git.rs2
1 files changed, 1 insertions, 1 deletions
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<P: AsRef<Path>>(dirname: P) -> Result<(), JournalError> {
pub fn add<P: AsRef<Path>>(dirname: P, files: &[P]) -> Result<(), JournalError> {
let args = &["add", "--"];
- let mut args: Vec<OsString> = args.iter().map(|x| OsString::from(x)).collect();
+ let mut args: Vec<OsString> = args.iter().map(OsString::from).collect();
for f in files {
args.push(OsString::from(f.as_ref()));
}