mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
fix: mobile clippy warnings
This commit is contained in:
@@ -8,15 +8,20 @@
|
||||
)]
|
||||
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
.plugin(
|
||||
tauri_plugin_single_instance::Builder::new()
|
||||
.callback(move |app, argv, cwd| {
|
||||
println!("{}, {argv:?}, {cwd}", app.package_info().name);
|
||||
})
|
||||
.dbus_id("org.Tauri.SIExampleApp".to_owned())
|
||||
.build(),
|
||||
)
|
||||
let builder = tauri::Builder::default();
|
||||
|
||||
// single-instance is only available on desktop
|
||||
#[cfg(desktop)]
|
||||
let builder = builder.plugin(
|
||||
tauri_plugin_single_instance::Builder::new()
|
||||
.callback(move |app, argv, cwd| {
|
||||
println!("{}, {argv:?}, {cwd}", app.package_info().name);
|
||||
})
|
||||
.dbus_id("org.Tauri.SIExampleApp".to_owned())
|
||||
.build(),
|
||||
);
|
||||
|
||||
builder
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user