Skip to content

Commit

Permalink
Separate mobile/desktop code a bit more to avoid warnings about unused
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm committed Sep 10, 2024
1 parent 0c737f0 commit b3294d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ use std::{
time::{Duration, SystemTime},
};
use tauri::Emitter;
use tauri::{Manager, State, Window};
#[cfg(desktop)]
use tauri::Manager;
use tauri::{State, Window};
use tauri_plugin_log::{Target, TargetKind};

type SharedServiceDaemon = Arc<Mutex<ServiceDaemon>>;
Expand Down Expand Up @@ -399,6 +401,10 @@ pub fn run() {
.expect("title to be set");
});
}
#[cfg(not(desktop))]
{
let _dummy = app.handle();
}
Ok(())
})
.invoke_handler(tauri::generate_handler![
Expand Down

0 comments on commit b3294d7

Please sign in to comment.