From 1eb1c46968a7b9106be3f0fc7cb3a42d11595152 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Thu, 18 Dec 2025 17:56:22 +0800 Subject: [PATCH] fix build error --- packages/tauri/src-tauri/src/main.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/tauri/src-tauri/src/main.rs b/packages/tauri/src-tauri/src/main.rs index be94d78c5..b215f8c55 100644 --- a/packages/tauri/src-tauri/src/main.rs +++ b/packages/tauri/src-tauri/src/main.rs @@ -46,16 +46,17 @@ fn configure_display_backend() -> Option { set_env_if_absent("WEBKIT_DISABLE_DMABUF_RENDERER", "1"); Some( - "Wayland session detected without X11; leaving Wayland enabled (set WINIT_UNIX_BACKEND/GDK_BACKEND manually if needed)." - .into(), - ) + "Wayland session detected without X11; leaving Wayland enabled (set WINIT_UNIX_BACKEND/GDK_BACKEND manually if needed)." + .into(), + ) } fn main() { #[cfg(target_os = "linux")] { - let backend_note = configure_display_backend(); - eprintln!("{backend_note}"); + if let Some(backend_note) = configure_display_backend() { + eprintln!("{backend_note:?}"); + } } opencode_lib::run()