Skip to content

Commit e365ba2

Browse files
committed
Avoid clippy divergence lint
1 parent 2c5587e commit e365ba2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/lib.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -499,23 +499,23 @@ mod compile_time_assertions {
499499

500500
#[allow(unreachable_code)]
501501
fn _assert_public_types_send_sync() {
502-
_assert_send::<Subscriber>(unreachable!());
503-
504-
_assert_send_sync::<Iter>(unreachable!());
505-
_assert_send_sync::<Tree>(unreachable!());
506-
_assert_send_sync::<Db>(unreachable!());
507-
_assert_send_sync::<Batch>(unreachable!());
508-
_assert_send_sync::<IVec>(unreachable!());
509-
_assert_send_sync::<Config>(unreachable!());
510-
_assert_send_sync::<CompareAndSwapError>(unreachable!());
511-
_assert_send_sync::<Error>(unreachable!());
512-
_assert_send_sync::<Event>(unreachable!());
513-
_assert_send_sync::<Mode>(unreachable!());
502+
_assert_send::<Subscriber>();
503+
504+
_assert_send_sync::<Iter>();
505+
_assert_send_sync::<Tree>();
506+
_assert_send_sync::<Db>();
507+
_assert_send_sync::<Batch>();
508+
_assert_send_sync::<IVec>();
509+
_assert_send_sync::<Config>();
510+
_assert_send_sync::<CompareAndSwapError>();
511+
_assert_send_sync::<Error>();
512+
_assert_send_sync::<Event>();
513+
_assert_send_sync::<Mode>();
514514
}
515515

516-
fn _assert_send<S: Send>(_: &S) {}
516+
fn _assert_send<S: Send>() {}
517517

518-
fn _assert_send_sync<S: Send + Sync>(_: &S) {}
518+
fn _assert_send_sync<S: Send + Sync>() {}
519519
}
520520

521521
#[cfg(all(unix, not(miri)))]

0 commit comments

Comments
 (0)