fix: resolve clippy issues
This commit is contained in:
1 parent
eb91c908fc
commit
971375bf1f
18 files changed
+80
-116
No files matched your search
@@ -48,11 +48,10 @@ pub fn resolve_path(raw: &str) -> PathBuf {
|
||||
if let Some(home) = dirs_next::home_dir() {
|
||||
return home.join(stripped);
|
||||
}
|
||||
} else if raw == "~" {
|
||||
if let Some(home) = dirs_next::home_dir() {
|
||||
} else if raw == "~"
|
||||
&& let Some(home) = dirs_next::home_dir() {
|
||||
return home;
|
||||
}
|
||||
}
|
||||
PathBuf::from(raw)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user