Skip to content

Commit 50b8f28

Browse files
committed
chore: roll out lint to rest of crates
1 parent f1e29c6 commit 50b8f28

25 files changed

Lines changed: 58 additions & 41 deletions

File tree

ascon-hash/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
)]
77
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
88
#![warn(missing_docs)]
9+
#![warn(unreachable_pub)]
910

1011
use core::marker::PhantomData;
1112

belt-hash/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
)]
77
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
88
#![warn(missing_docs)]
9+
#![warn(unreachable_pub)]
910
#![forbid(unsafe_code)]
1011

1112
pub use digest::{self, Digest};

fsb/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
88
#![forbid(unsafe_code)]
99
#![warn(missing_docs)]
10+
#![warn(unreachable_pub)]
1011
#![allow(non_snake_case)]
1112

1213
pub use digest::{self, Digest};

gost94/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
)]
77
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
88
#![warn(missing_docs)]
9+
#![warn(unreachable_pub)]
910
#![forbid(unsafe_code)]
1011

1112
pub use digest::{self, Digest};

groestl/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
88
#![forbid(unsafe_code)]
99
#![warn(missing_docs)]
10+
#![warn(unreachable_pub)]
1011

1112
pub use digest::{self, Digest};
1213

jh/src/compressor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ union X2Bytes<M: Machine> {
9595

9696
#[inline(always)]
9797
#[doc(hidden)]
98-
pub fn f8_impl<M: Machine>(mach: M, state: &mut [vec128_storage; 8], data: *const u8) {
98+
fn f8_impl<M: Machine>(mach: M, state: &mut [vec128_storage; 8], data: *const u8) {
9999
#[allow(clippy::cast_ptr_alignment)]
100100
let data: *const M::u128x1 = data.cast();
101101
let mut y = X8::<M>(

jh/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
)]
77
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
88
#![warn(missing_docs)]
9+
#![warn(unreachable_pub)]
910

1011
pub use digest::{self, Digest};
1112

k12/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
88
#![forbid(unsafe_code)]
99
#![warn(missing_docs)]
10+
#![warn(unreachable_pub)]
1011

1112
pub use digest;
1213

kupyna/src/consts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pub const MDS_MATRIX: [u64; 8] = [
1+
pub(crate) const MDS_MATRIX: [u64; 8] = [
22
0x0101050108060704,
33
0x0401010501080607,
44
0x0704010105010806,
@@ -9,7 +9,7 @@ pub const MDS_MATRIX: [u64; 8] = [
99
0x0105010806070401,
1010
];
1111

12-
pub const SBOXES: [[u8; 256]; 4] = [
12+
pub(crate) const SBOXES: [[u8; 256]; 4] = [
1313
[
1414
0xa8, 0x43, 0x5f, 0x06, 0x6b, 0x75, 0x6c, 0x59, 0x71, 0xdf, 0x87, 0x95, 0x17, 0xf0, 0xd8,
1515
0x09, 0x6d, 0xf3, 0x1d, 0xcb, 0xc9, 0x4d, 0x2c, 0xaf, 0x79, 0xe0, 0x97, 0xfd, 0x6f, 0x4b,

kupyna/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
88
#![forbid(unsafe_code)]
99
#![warn(missing_docs)]
10+
#![warn(unreachable_pub)]
1011

1112
pub use digest::{self, Digest};
1213

0 commit comments

Comments
 (0)