Remove many unwrap
This commit is contained in:
1 parent
39f8845119
commit
01f0999772
5 files changed
+40
-21
No files matched your search
+1
-1
@@ -611,7 +611,7 @@ pub fn app_data_dir() -> PathBuf {
|
||||
let mut dir = dirs::data_dir().unwrap();
|
||||
dir.push("jap_learn");
|
||||
if !dir.exists() {
|
||||
fs::create_dir(dir.clone()).unwrap();
|
||||
fs::create_dir_all(dir.clone()).unwrap();
|
||||
}
|
||||
|
||||
dir
|
||||
|
||||
Reference in new issue
Block a user