From 84cbbf1a51d6783a47f0ccd6fb014f08c055f16f Mon Sep 17 00:00:00 2001 From: abose Date: Sun, 7 Jan 2024 09:44:38 +0530 Subject: [PATCH] fix: unused import warning in mac and win --- src-tauri/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 92160deb..5ad0bd76 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -3,6 +3,9 @@ all(not(debug_assertions), target_os = "windows"), windows_subsystem = "windows" )] +#[cfg(target_os = "linux")] +use tauri::Manager; // needed for the f10 key fix for now in linux only + #[cfg(target_os = "linux")] use std::fs::metadata; #[cfg(target_os = "linux")] @@ -18,7 +21,6 @@ extern crate webkit2gtk; #[macro_use] extern crate objc; -use tauri::Manager; use regex::Regex; extern crate percent_encoding; use tauri::http::ResponseBuilder;