diff --git a/plugins/autostart/src/lib.rs b/plugins/autostart/src/lib.rs index dc9f38bb..3a927782 100644 --- a/plugins/autostart/src/lib.rs +++ b/plugins/autostart/src/lib.rs @@ -120,7 +120,7 @@ pub fn init( let exe_path = current_exe.canonicalize()?.display().to_string(); let parts: Vec<&str> = exe_path.split(".app/").collect(); let app_path = if parts.len() == 2 { - format!("{}.app", parts.get(0).unwrap().to_string()) + format!("{}.app", parts.first().unwrap()) } else { exe_path }; diff --git a/plugins/store/src/lib.rs b/plugins/store/src/lib.rs index 563e3b11..7c7918f4 100644 --- a/plugins/store/src/lib.rs +++ b/plugins/store/src/lib.rs @@ -46,7 +46,7 @@ pub fn with_store) -> Result>( if collection.frozen { return Err(Error::NotFound(path.to_path_buf())); } - let mut store = StoreBuilder::new(path.to_path_buf()).build(app); + let mut store = StoreBuilder::new(path).build(app); // ignore loading errors, just use the default if let Err(err) = store.load() { warn!(