Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit f510e22

Browse files
bilelmoussaouisdroege
authored andcommitted
Fix nightly clippy warnings
1 parent 4a4f0e3 commit f510e22

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

examples/basic_subclass/simple_application/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
mod imp;
22

3-
use gio::ApplicationFlags;
43
use gtk::{gio, glib};
54

65
glib::wrapper! {
@@ -12,8 +11,7 @@ impl SimpleApplication {
1211
#[allow(clippy::new_without_default)]
1312
pub fn new() -> Self {
1413
glib::Object::builder()
15-
.property("application-id", &"org.gtk-rs.SimpleApplication")
16-
.property("flags", &ApplicationFlags::empty())
14+
.property("application-id", "org.gtk-rs.SimpleApplication")
1715
.build()
1816
}
1917
}

examples/list_box_model/row_data/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ glib::wrapper! {
1919
impl RowData {
2020
pub fn new(name: &str, count: u32) -> RowData {
2121
glib::Object::builder()
22-
.property("name", &name)
23-
.property("count", &count)
22+
.property("name", name)
23+
.property("count", count)
2424
.build()
2525
}
2626
}

gtk/src/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl<O: IsA<Image>> ImageExtManual for O {
2929

3030
fn set_icon_size(&self, icon_size: IconSize) {
3131
self.as_ref()
32-
.set_property("icon-size", &icon_size.into_glib());
32+
.set_property("icon-size", icon_size.into_glib());
3333
}
3434

3535
fn connect_icon_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {

gtk/src/radio_tool_button.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl RadioToolButton {
2828
}
2929

3030
pub fn join_group(&self, group: Option<&RadioToolButton>) {
31-
self.set_property("group", &group);
31+
self.set_property("group", group);
3232
}
3333
}
3434

gtk/src/stack_switcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl<O: IsA<StackSwitcher>> StackSwitcherExtManual for O {
3535

3636
fn set_icon_size(&self, icon_size: IconSize) {
3737
self.as_ref()
38-
.set_property("icon-size", &icon_size.into_glib());
38+
.set_property("icon-size", icon_size.into_glib());
3939
}
4040

4141
fn connect_icon_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {

0 commit comments

Comments
 (0)