Skip to content

Commit 46c9312

Browse files
committed
install: run 'cargo fmt' on new error message code.
1 parent 7095668 commit 46c9312

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/uu/install/src/install.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -854,10 +854,7 @@ fn copy_file(from: &Path, to: &Path) -> UResult<()> {
854854
// see if the file exists, and it can't even be checked, this means we
855855
// don't have permission to access the file, so we should return an error.
856856
if let Err(to_stat) = to.try_exists() {
857-
return Err(InstallError::CannotStat(
858-
to.to_path_buf(),
859-
to_stat.to_string(),
860-
).into());
857+
return Err(InstallError::CannotStat(to.to_path_buf(), to_stat.to_string()).into());
861858
}
862859

863860
if to.is_dir() && !from.is_dir() {

0 commit comments

Comments
 (0)