Skip to content

Commit 6c8f179

Browse files
committed
chore: format code
1 parent 20ab986 commit 6c8f179

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

plugins/dialog/build.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
// SPDX-License-Identifier: Apache-2.0
33
// SPDX-License-Identifier: MIT
44

5-
const COMMANDS: &[&str] = &["open", "save", "stop_accessing_path", "message", "ask", "confirm"];
5+
const COMMANDS: &[&str] = &[
6+
"open",
7+
"save",
8+
"stop_accessing_path",
9+
"message",
10+
"ask",
11+
"confirm",
12+
];
613

714
fn main() {
815
let result = tauri_plugin::Builder::new(COMMANDS)

plugins/dialog/src/commands.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ use tauri::{command, Manager, Runtime, State, Window};
99
use tauri_plugin_fs::FsExt;
1010

1111
use crate::{
12-
Dialog, FileDialogBuilder, FilePath, MessageDialogBuilder, MessageDialogButtons,
13-
MessageDialogKind, MessageDialogResult, Result, CANCEL, NO, OK, YES,
14-
StopAccessingPath
12+
Dialog, FileDialogBuilder, FilePath, MessageDialogButtons, MessageDialogKind, Result,
13+
StopAccessingPath, StopAccessingPath, CANCEL, NO, OK, YES,
1514
};
1615

1716
#[derive(Serialize)]

plugins/dialog/src/mobile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub fn stop_accessing_path<R: Runtime>(dialog: FileDialogBuilder<R>, p: StopAcce
115115
.run_mobile_plugin::<()>("stopAccessingPath", p);
116116

117117
if let Err(_) = res {
118-
return false
118+
return false;
119119
}
120120
}
121121

0 commit comments

Comments
 (0)