From 1666facdc7512bf8d9355485cef3347d8bfe689c Mon Sep 17 00:00:00 2001 From: DK Liao Date: Fri, 20 Oct 2023 10:54:05 +0800 Subject: [PATCH] Make clippy happy --- src/platform_impl/gtk/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platform_impl/gtk/mod.rs b/src/platform_impl/gtk/mod.rs index 1e6b34c5..b518c7bd 100644 --- a/src/platform_impl/gtk/mod.rs +++ b/src/platform_impl/gtk/mod.rs @@ -1048,7 +1048,7 @@ impl MenuChild { add_to_cache: bool, ) -> crate::Result { let item = gtk::MenuItem::builder() - .label(&to_gtk_mnemonic(&self.text)) + .label(to_gtk_mnemonic(&self.text)) .use_underline(true) .sensitive(self.enabled) .build(); @@ -1089,7 +1089,7 @@ impl MenuChild { let make_item = || { gtk::MenuItem::builder() - .label(&to_gtk_mnemonic(&text)) + .label(to_gtk_mnemonic(&text)) .use_underline(true) .sensitive(true) .build() @@ -1197,7 +1197,7 @@ impl MenuChild { add_to_cache: bool, ) -> crate::Result { let item = gtk::CheckMenuItem::builder() - .label(&to_gtk_mnemonic(&self.text)) + .label(to_gtk_mnemonic(&self.text)) .use_underline(true) .sensitive(self.enabled) .active(self.checked.as_ref().unwrap().load(Ordering::Relaxed)) @@ -1262,7 +1262,7 @@ impl MenuChild { self.accel_group = accel_group.cloned(); let label = gtk::AccelLabel::builder() - .label(&to_gtk_mnemonic(&self.text)) + .label(to_gtk_mnemonic(&self.text)) .use_underline(true) .xalign(0.0) .build();