format
This commit is contained in:
parent
007a00910d
commit
6e818f992c
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -117,6 +117,7 @@ fn process_args() -> (Vec<Vec<PathBuf>>, Config) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// exit on error
|
||||||
fn get_st_dev(file: &PathBuf) -> u64 {
|
fn get_st_dev(file: &PathBuf) -> u64 {
|
||||||
if let Ok(metadata) = std::fs::metadata(file) {
|
if let Ok(metadata) = std::fs::metadata(file) {
|
||||||
metadata.st_dev()
|
metadata.st_dev()
|
||||||
|
@ -148,8 +149,7 @@ fn run(paths: Vec<PathBuf>, cfg: &Config) -> Result<(), Box<dyn std::error::Erro
|
||||||
for path in paths {
|
for path in paths {
|
||||||
register(path.to_path_buf(), &mut registry, cfg);
|
register(path.to_path_buf(), &mut registry, cfg);
|
||||||
}
|
}
|
||||||
|
registry.retain(|_,files| files.len() >= 2);
|
||||||
registry.retain(|_, files| files.len() >= 2);
|
|
||||||
|
|
||||||
let stdout = std::io::stdout();
|
let stdout = std::io::stdout();
|
||||||
let mut stdout_buffer = std::io::BufWriter::new(stdout.lock());
|
let mut stdout_buffer = std::io::BufWriter::new(stdout.lock());
|
||||||
|
|
Loading…
Add table
Reference in a new issue