From e8b84d83796ca1c59db8c86d1ed6b897dc3c2d48 Mon Sep 17 00:00:00 2001 From: amrbashir Date: Wed, 23 Oct 2024 17:15:55 +0300 Subject: [PATCH] clippy --- crates/tauri-runtime-wry/src/lib.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/crates/tauri-runtime-wry/src/lib.rs b/crates/tauri-runtime-wry/src/lib.rs index 1192e250e..afa890103 100644 --- a/crates/tauri-runtime-wry/src/lib.rs +++ b/crates/tauri-runtime-wry/src/lib.rs @@ -1098,11 +1098,13 @@ impl WindowBuilder for WindowBuilderWrapper { }) } - fn window_classname>(mut self, _window_classname: S) -> Self { - #[cfg(windows)] - { - self.inner = self.inner.with_window_classname(_window_classname); - } + #[cfg(windows)] + fn window_classname>(mut self, window_classname: S) -> Self { + self.inner = self.inner.with_window_classname(window_classname); + self + } + #[cfg(not(windows))] + fn window_classname>(self, _window_classname: S) -> Self { self } }