use explicit std::io::Error
This commit is contained in:
parent
fd7251f99e
commit
4bc8b8a418
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
use std::{env, error::Error, fs, io::{self, Write}, os::unix::ffi::OsStrExt, path::PathBuf};
|
||||
use std::{env, fs, io::{self, Write}, os::unix::ffi::OsStrExt, path::PathBuf};
|
||||
use walkdir::WalkDir;
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
fn main() -> Result<(), std::io::Error> {
|
||||
let args: Vec<PathBuf> = env::args_os().skip(1).map(PathBuf::from).collect();
|
||||
let dirs = if args.is_empty() { vec![env::current_dir()?] } else { args };
|
||||
|
||||
|
|
Loading…
Reference in a new issue