format & name changes
This commit is contained in:
parent
fa95021065
commit
0f3a08e63b
2 changed files with 3 additions and 3 deletions
Binary file not shown.
|
@ -155,7 +155,7 @@ fn process_args() -> (Vec<Vec<PathBuf>>, Config) {
|
||||||
|
|
||||||
|
|
||||||
for paths in &run_paths {
|
for paths in &run_paths {
|
||||||
if let Err(s) = assert_all_same_device(paths) {
|
if let Err(s) = check_all_same_device(paths) {
|
||||||
eprintln!("{}", s);
|
eprintln!("{}", s);
|
||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ fn get_st_dev(file: &PathBuf) -> Result<u64, String> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn assert_all_same_device(paths: &[PathBuf]) -> Result<(), String> {
|
fn check_all_same_device(paths: &[PathBuf]) -> Result<(), String> {
|
||||||
if paths.len() <= 1 {
|
if paths.len() <= 1 {
|
||||||
return Ok(())
|
return Ok(())
|
||||||
}
|
}
|
||||||
|
@ -304,7 +304,7 @@ fn format_pair(f1: &PathBuf, f2: &PathBuf, cfg: &Config) -> String {
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
format!(
|
format!(
|
||||||
"{} {}",
|
"{} <-> {}",
|
||||||
shlex::quote(&f1s),
|
shlex::quote(&f1s),
|
||||||
shlex::quote(&f2s)
|
shlex::quote(&f2s)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue