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
34 let cwd = path34 let cwd = path
35 .as_ref()35 .as_ref()
36 .is_relative()36 .is_relative()
37 .then(|| std::env::current_dir())37 .then(std::env::current_dir)
38 .unwrap_or_else(|| Ok(PathBuf::default()))38 .unwrap_or_else(|| Ok(PathBuf::default()))
39 .map_err(Error::CurrentWorkingDir)?;39 .map_err(Error::CurrentWorkingDir)?;
40 realpath_opts(path, cwd, MAX_SYMLINKS)40 realpath_opts(path, cwd, MAX_SYMLINKS)