chore: format code

pull/2548/head
nashaofu 1 day ago
parent 1367c60fc9
commit 425aea08a7

@ -2,7 +2,14 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
const COMMANDS: &[&str] = &["open", "save", "stop_accessing_path", "message", "ask", "confirm"]; const COMMANDS: &[&str] = &[
"open",
"save",
"stop_accessing_path",
"message",
"ask",
"confirm",
];
fn main() { fn main() {
let result = tauri_plugin::Builder::new(COMMANDS) let result = tauri_plugin::Builder::new(COMMANDS)

@ -9,9 +9,8 @@ use tauri::{command, Manager, Runtime, State, Window};
use tauri_plugin_fs::FsExt; use tauri_plugin_fs::FsExt;
use crate::{ use crate::{
StopAccessingPath, Dialog, FileDialogBuilder, FilePath, MessageDialogButtons, MessageDialogKind, Result,
Dialog, FileDialogBuilder, FilePath, MessageDialogButtons, MessageDialogKind, Result, CANCEL, StopAccessingPath, CANCEL, NO, OK, YES,
NO, OK, YES,
}; };
#[derive(Serialize)] #[derive(Serialize)]

@ -115,7 +115,7 @@ pub fn stop_accessing_path<R: Runtime>(dialog: FileDialogBuilder<R>, p: StopAcce
.run_mobile_plugin::<()>("stopAccessingPath", p); .run_mobile_plugin::<()>("stopAccessingPath", p);
if let Err(_) = res { if let Err(_) = res {
return false return false;
} }
} }

Loading…
Cancel
Save