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: 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() {
let result = tauri_plugin::Builder::new(COMMANDS)

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

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

Loading…
Cancel
Save