Skip to content

Commit 84cbbf1

Browse files
committed
fix: unused import warning in mac and win
1 parent a9b54aa commit 84cbbf1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src-tauri/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ all(not(debug_assertions), target_os = "windows"),
33
windows_subsystem = "windows"
44
)]
55

6+
#[cfg(target_os = "linux")]
7+
use tauri::Manager; // needed for the f10 key fix for now in linux only
8+
69
#[cfg(target_os = "linux")]
710
use std::fs::metadata;
811
#[cfg(target_os = "linux")]
@@ -18,7 +21,6 @@ extern crate webkit2gtk;
1821
#[macro_use]
1922
extern crate objc;
2023

21-
use tauri::Manager;
2224
use regex::Regex;
2325
extern crate percent_encoding;
2426
use tauri::http::ResponseBuilder;

0 commit comments

Comments
 (0)