use explicit std::io::Error

This commit is contained in:
Rasmus Moorats 2024-08-29 13:41:37 +03:00
parent fd7251f99e
commit 4bc8b8a418
Signed by: xx
GPG key ID: FE14255A6AE7241C

View file

@ -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 };