Skip to content

Commit 6e08a3a

Browse files
authored
Merge pull request #819 from jf2048/fix-1.66-lints
fix CI for 1.65/1.66
2 parents cc7a2b1 + bb0c143 commit 6e08a3a

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

glib/src/translate.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2578,7 +2578,7 @@ mod tests {
25782578
FileTest::EXISTS | FileTest::IS_DIR
25792579
));
25802580
assert!(crate::file_test(
2581-
&dir_1.canonicalize().unwrap(),
2581+
dir_1.canonicalize().unwrap(),
25822582
FileTest::EXISTS | FileTest::IS_DIR
25832583
));
25842584

@@ -2602,7 +2602,7 @@ mod tests {
26022602
FileTest::EXISTS | FileTest::IS_DIR
26032603
));
26042604
assert!(crate::file_test(
2605-
&dir_2.canonicalize().unwrap(),
2605+
dir_2.canonicalize().unwrap(),
26062606
FileTest::EXISTS | FileTest::IS_DIR
26072607
));
26082608
}
@@ -2663,6 +2663,7 @@ mod tests {
26632663

26642664
impl TryFromGlib<libc::c_uint> for SpecialU32 {
26652665
type Error = GlibNoneError;
2666+
#[allow(clippy::unnecessary_cast)]
26662667
unsafe fn try_from_glib(val: libc::c_uint) -> Result<Self, GlibNoneError> {
26672668
if val == SpecialU32::GLIB_NONE {
26682669
return Err(GlibNoneError);

glib/tests/subclass_compiletest/02-no-auto-send-sync.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ note: required because it appears within the type `imp::TestObject`
1212
|
1313
6 | pub struct TestObject {
1414
| ^^^^^^^^^^
15-
= note: required because of the requirements on the impl of `Send` for `TypedObjectRef<imp::TestObject, ()>`
15+
= note: required for `TypedObjectRef<imp::TestObject, ()>` to implement `Send`
1616
note: required because it appears within the type `TestObject`
1717
--> tests/subclass_compiletest/02-no-auto-send-sync.rs:20:16
1818
|

glib/tests/subclass_compiletest/03-object-no-auto-send-sync.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ error[E0277]: `*mut c_void` cannot be sent between threads safely
77
| required by a bound introduced by this call
88
|
99
= help: the trait `Send` is not implemented for `*mut c_void`
10-
= note: required because of the requirements on the impl of `Send` for `TypedObjectRef<*mut c_void, ()>`
10+
= note: required for `TypedObjectRef<*mut c_void, ()>` to implement `Send`
1111
= note: required because it appears within the type `Object`
1212
note: required by a bound in `main::check`
1313
--> tests/subclass_compiletest/03-object-no-auto-send-sync.rs:2:17
@@ -24,7 +24,7 @@ error[E0277]: `*mut c_void` cannot be shared between threads safely
2424
| required by a bound introduced by this call
2525
|
2626
= help: the trait `Sync` is not implemented for `*mut c_void`
27-
= note: required because of the requirements on the impl of `Send` for `TypedObjectRef<*mut c_void, ()>`
27+
= note: required for `TypedObjectRef<*mut c_void, ()>` to implement `Send`
2828
= note: required because it appears within the type `Object`
2929
note: required by a bound in `main::check`
3030
--> tests/subclass_compiletest/03-object-no-auto-send-sync.rs:2:17

glib/tests/subclass_compiletest/05-no-auto-send-sync-with-non-send-sync-parent.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ note: required because it appears within the type `imp_parent::TestParent`
1212
|
1313
6 | pub struct TestParent {
1414
| ^^^^^^^^^^
15-
= note: required because of the requirements on the impl of `Send` for `TypedObjectRef<imp_parent::TestParent, ()>`
15+
= note: required for `TypedObjectRef<imp_parent::TestParent, ()>` to implement `Send`
1616
note: required because it appears within the type `TestParent`
1717
--> tests/subclass_compiletest/05-no-auto-send-sync-with-non-send-sync-parent.rs:20:16
1818
|
1919
20 | pub struct TestParent(ObjectSubclass<imp_parent::TestParent>);
2020
| ^^^^^^^^^^
21-
= note: required because of the requirements on the impl of `Send` for `TypedObjectRef<imp_object::TestObject, TestParent>`
21+
= note: required for `TypedObjectRef<imp_object::TestObject, TestParent>` to implement `Send`
2222
note: required because it appears within the type `TestObject`
2323
--> tests/subclass_compiletest/05-no-auto-send-sync-with-non-send-sync-parent.rs:53:16
2424
|

glib/tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ error[E0277]: `*mut c_void` cannot be sent between threads safely
77
| required by a bound introduced by this call
88
|
99
= help: the trait `Send` is not implemented for `*mut c_void`
10-
= note: required because of the requirements on the impl of `Send` for `TypedObjectRef<*mut c_void, ()>`
10+
= note: required for `TypedObjectRef<*mut c_void, ()>` to implement `Send`
1111
note: required because it appears within the type `InitiallyUnowned`
1212
--> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:3:16
1313
|
1414
3 | pub struct InitiallyUnowned(Object<glib::gobject_ffi::GInitiallyUnowned, glib::gobject_ffi::GInitiallyUnownedClass>);
1515
| ^^^^^^^^^^^^^^^^
16-
= note: required because of the requirements on the impl of `Send` for `TypedObjectRef<imp_object::TestObject, InitiallyUnowned>`
16+
= note: required for `TypedObjectRef<imp_object::TestObject, InitiallyUnowned>` to implement `Send`
1717
note: required because it appears within the type `TestObject`
1818
--> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:37:16
1919
|
@@ -34,13 +34,13 @@ error[E0277]: `*mut c_void` cannot be shared between threads safely
3434
| required by a bound introduced by this call
3535
|
3636
= help: the trait `Sync` is not implemented for `*mut c_void`
37-
= note: required because of the requirements on the impl of `Send` for `TypedObjectRef<*mut c_void, ()>`
37+
= note: required for `TypedObjectRef<*mut c_void, ()>` to implement `Send`
3838
note: required because it appears within the type `InitiallyUnowned`
3939
--> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:3:16
4040
|
4141
3 | pub struct InitiallyUnowned(Object<glib::gobject_ffi::GInitiallyUnowned, glib::gobject_ffi::GInitiallyUnownedClass>);
4242
| ^^^^^^^^^^^^^^^^
43-
= note: required because of the requirements on the impl of `Send` for `TypedObjectRef<imp_object::TestObject, InitiallyUnowned>`
43+
= note: required for `TypedObjectRef<imp_object::TestObject, InitiallyUnowned>` to implement `Send`
4444
note: required because it appears within the type `TestObject`
4545
--> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:37:16
4646
|

0 commit comments

Comments
 (0)