Skip to content

Commit 887a076

Browse files
committed
Fix clippy::redundant_pub_crate warnings
1 parent 31a68de commit 887a076

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@
140140
),
141141
feature(integer_atomics)
142142
)]
143-
#![warn(clippy::use_self, clippy::too_long_first_doc_paragraph)]
143+
#![warn(
144+
clippy::use_self,
145+
clippy::too_long_first_doc_paragraph,
146+
clippy::redundant_pub_crate
147+
)]
144148

145149
pub use binary_heap::BinaryHeap;
146150
pub use deque::Deque;

src/sealed.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
#[allow(dead_code, path_statements, clippy::no_effect)]
2-
pub(crate) const fn smaller_than<const N: usize, const MAX: usize>() {
2+
pub const fn smaller_than<const N: usize, const MAX: usize>() {
33
Assert::<N, MAX>::LESS;
44
}
55

66
#[allow(dead_code, path_statements, clippy::no_effect)]
7-
pub(crate) const fn greater_than_eq<const N: usize, const MIN: usize>() {
7+
pub const fn greater_than_eq<const N: usize, const MIN: usize>() {
88
Assert::<N, MIN>::GREATER_EQ;
99
}
1010

1111
#[allow(dead_code, path_statements, clippy::no_effect)]
12-
pub(crate) const fn greater_than_eq_0<const N: usize>() {
12+
pub const fn greater_than_eq_0<const N: usize>() {
1313
Assert::<N, 0>::GREATER_EQ;
1414
}
1515

1616
#[allow(dead_code, path_statements, clippy::no_effect)]
17-
pub(crate) const fn greater_than_0<const N: usize>() {
17+
pub const fn greater_than_0<const N: usize>() {
1818
Assert::<N, 0>::GREATER;
1919
}
2020

2121
#[allow(dead_code, path_statements, clippy::no_effect)]
22-
pub(crate) const fn greater_than_1<const N: usize>() {
22+
pub const fn greater_than_1<const N: usize>() {
2323
Assert::<N, 1>::GREATER;
2424
}
2525

2626
#[allow(dead_code, path_statements, clippy::no_effect)]
27-
pub(crate) const fn power_of_two<const N: usize>() {
27+
pub const fn power_of_two<const N: usize>() {
2828
Assert::<N, 0>::GREATER;
2929
Assert::<N, 0>::POWER_OF_TWO;
3030
}

0 commit comments

Comments
 (0)