diff --git a/src/main.rs b/src/main.rs index 3388a92..f69c8d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,15 +3,11 @@ use std::io; use std::path::PathBuf; fn home_dir() -> PathBuf { - return dirs::home_dir().unwrap(); + dirs::home_dir().expect("Couldn't find home dir") } fn downloads_dir() -> PathBuf { - let mut downloads = home_dir(); - - downloads.push("Downloads"); - - downloads + dirs::download_dir().expect("Couldn't find download dir") } fn strip_null_bytes(str: &str) -> String {