Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dklassic committed Oct 20, 2023
1 parent 82500db commit 1666fac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/platform_impl/gtk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ impl MenuChild {
add_to_cache: bool,
) -> crate::Result<gtk::MenuItem> {
let item = gtk::MenuItem::builder()
.label(&to_gtk_mnemonic(&self.text))
.label(to_gtk_mnemonic(&self.text))
.use_underline(true)
.sensitive(self.enabled)
.build();
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -1197,7 +1197,7 @@ impl MenuChild {
add_to_cache: bool,
) -> crate::Result<gtk::MenuItem> {
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))
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 1666fac

Please sign in to comment.