diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-06-06 20:13:48 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-06-06 20:13:48 +0300 |
commit | 687b398d1c4ddcea52ad88105c976cad99c299d7 (patch) | |
tree | da9444696a929d46cc721e3a89e8359ab8984048 | |
parent | 3b750aeb71960073791c7be030957cf78a72dab4 (diff) | |
download | jt2-687b398d1c4ddcea52ad88105c976cad99c299d7.tar.gz |
chore: drop unnecessary closurecleanups
Sponsored-by: author
-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())); } |