From 8f47825aacf820129f4e604855c37033bb77ab16 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 12 Dec 2022 15:14:04 -0300 Subject: [PATCH] chore: remove unused imports on mobile builds --- core/tauri/src/window.rs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/core/tauri/src/window.rs b/core/tauri/src/window.rs index 76e6f0fea..156bfd21f 100644 --- a/core/tauri/src/window.rs +++ b/core/tauri/src/window.rs @@ -18,20 +18,28 @@ use crate::{ manager::WindowManager, runtime::{ http::{Request as HttpRequest, Response as HttpResponse}, - menu::Menu, monitor::Monitor as RuntimeMonitor, webview::{WebviewAttributes, WindowBuilder as _}, window::{ - dpi::{PhysicalPosition, PhysicalSize, Position, Size}, + dpi::{PhysicalPosition, PhysicalSize}, DetachedWindow, JsEventListenerKey, PendingWindow, }, - Dispatch, RuntimeHandle, UserAttentionType, + Dispatch, RuntimeHandle, }, sealed::ManagerBase, sealed::RuntimeOrDispatch, utils::config::WindowUrl, - CursorIcon, EventLoopMessage, Icon, Invoke, InvokeError, InvokeMessage, InvokeResolver, Manager, - PageLoadPayload, Runtime, Theme, WindowEvent, + EventLoopMessage, Invoke, InvokeError, InvokeMessage, InvokeResolver, Manager, PageLoadPayload, + Runtime, Theme, WindowEvent, +}; +#[cfg(desktop)] +use crate::{ + runtime::{ + menu::Menu, + window::dpi::{Position, Size}, + UserAttentionType, + }, + CursorIcon, Icon, }; use serde::Serialize;