(chore): tinyfiledialog::MessageBoxIcon is only used on Linux (#35441)

This was causing a compilation warning on Mac and Windows.

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-02-12 23:24:04 -08:00 committed by GitHub
parent 8cd280ca3b
commit 48e38bcaa2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,8 @@ use servo::{
PermissionRequest, PromptDefinition, PromptOrigin, PromptResult, Servo, ServoDelegate,
ServoError, TouchEventAction, WebView, WebViewDelegate,
};
use tinyfiledialogs::{self, MessageBoxIcon};
#[cfg(target_os = "linux")]
use tinyfiledialogs::MessageBoxIcon;
use url::Url;
use super::app::{Present, PumpResult};