Skip to content

Commit 2490f48

Browse files
Urgaumichaelwoerister
authored andcommitted
Deny unreachable pubs
1 parent 221cfac commit 2490f48

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/int_overflow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
///
1616
/// That's a long way to say that this should be used in areas where overflow
1717
/// is a bug but overflow checking is too slow.
18-
pub trait DebugStrictAdd {
18+
pub(crate) trait DebugStrictAdd {
1919
/// See [`DebugStrictAdd`].
2020
fn debug_strict_add(self, other: Self) -> Self;
2121
}
@@ -37,7 +37,7 @@ macro_rules! impl_debug_strict_add {
3737
}
3838

3939
/// See [`DebugStrictAdd`].
40-
pub trait DebugStrictSub {
40+
pub(crate) trait DebugStrictSub {
4141
/// See [`DebugStrictAdd`].
4242
fn debug_strict_sub(self, other: Self) -> Self;
4343
}

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![cfg_attr(feature = "nightly", feature(hasher_prefixfree_extras))]
44
#![deny(clippy::missing_safety_doc)]
55
#![deny(unsafe_op_in_unsafe_fn)]
6+
#![deny(unreachable_pub)]
67

78
mod int_overflow;
89
mod sip128;

0 commit comments

Comments
 (0)