Skip to content

Commit 70b8195

Browse files
Fix nightly clippy warnings
1 parent 2c2693d commit 70b8195

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

examples/custom_application/ex_application/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ impl Default for ExApplication {
1515
impl ExApplication {
1616
pub fn new() -> Self {
1717
glib::Object::builder()
18-
.property("application-id", &"org.gtk_rs.application-subclass")
19-
.property("flags", &gio::ApplicationFlags::empty())
18+
.property("application-id", "org.gtk_rs.application-subclass")
2019
.build()
2120
}
2221
}

gdk4/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ macro_rules! skip_assert_initialized {
4747
() => {};
4848
}
4949

50-
#[allow(clippy::derive_hash_xor_eq)]
50+
#[allow(clippy::derived_hash_with_manual_eq)]
5151
#[allow(clippy::type_complexity)]
5252
mod auto;
5353

gdk4/src/subclass/content_provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ unsafe impl<T: ContentProviderImpl> IsSubclassable<T> for ContentProvider {
297297
klass.ref_formats = Some(content_provider_formats::<T>);
298298
klass.ref_storable_formats = Some(content_provider_storable_formats::<T>);
299299
klass.write_mime_type_async = Some(content_provider_write_mime_type_async::<T>);
300-
klass.write_mime_type_finish = Some(content_provider_write_mime_type_finish::<T>);
300+
klass.write_mime_type_finish = Some(content_provider_write_mime_type_finish);
301301
klass.get_value = Some(content_provider_get_value::<T>);
302302
}
303303
}
@@ -392,7 +392,7 @@ unsafe extern "C" fn content_provider_write_mime_type_async<T: ContentProviderIm
392392
});
393393
}
394394

395-
unsafe extern "C" fn content_provider_write_mime_type_finish<T: ContentProviderImpl>(
395+
unsafe extern "C" fn content_provider_write_mime_type_finish(
396396
_ptr: *mut ffi::GdkContentProvider,
397397
res_ptr: *mut gio::ffi::GAsyncResult,
398398
error_ptr: *mut *mut glib::ffi::GError,

gsk4/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ macro_rules! skip_assert_initialized {
2020
() => {};
2121
}
2222

23-
#[allow(clippy::derive_hash_xor_eq)]
23+
#[allow(clippy::derived_hash_with_manual_eq)]
2424
mod auto;
2525

2626
pub mod builders;

gtk4/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static TEST_THREAD_WORKER: once_cell::sync::Lazy<glib::ThreadPool> =
8888
pool
8989
});
9090

91-
#[allow(clippy::derive_hash_xor_eq)]
91+
#[allow(clippy::derived_hash_with_manual_eq)]
9292
#[allow(clippy::too_many_arguments)]
9393
#[allow(clippy::type_complexity)]
9494
mod auto;

0 commit comments

Comments
 (0)