diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/git.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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())); } |