History

thanks clippy

Sebastian Thiel committed 4 years ago

Commit 7a2a31e1 parent 4420ae92 files · +2 −3Browse files

Showing the changes to git-path (1 of 2 files). Show all

Unified · Split

git-path/src/realpath.rs+1−1
@@ -34,7 +34,7 @@ pub(crate) mod function { · 33 unmodified lines
3434 let cwd = path
3535 .as_ref()
3636 .is_relative()
37− .then(|| std::env::current_dir())
37+ .then(std::env::current_dir)
3838 .unwrap_or_else(|| Ok(PathBuf::default()))
3939 .map_err(Error::CurrentWorkingDir)?;
4040 realpath_opts(path, cwd, MAX_SYMLINKS)