We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fd5268 commit 606a592Copy full SHA for 606a592
src/main.rs
@@ -15,7 +15,10 @@ fn main() {
15
let dir = args.dir;
16
17
// getting the home directory and appending .trash to it
18
- let trash = home_dir().unwrap().join(".trash/");
+ let trash = match home_dir() {
19
+ Some(dir) => dir.join(".trash/"),
20
+ None => panic!("Could not find home directory"),
21
+ };
22
23
// tidying the trash directory if the flag is set
24
if tidy {
0 commit comments