Skip to content

Commit 4a28d6d

Browse files
committed
nonzero
1 parent 5d7f869 commit 4a28d6d

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/aead/gcm/clmul_x86.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use super::{
1919
UpdateBlock, UpdateBlocks, Xi,
2020
};
2121
use crate::cpu;
22-
use core::{mem::MaybeUninit, slice};
22+
use core::{mem::MaybeUninit, num::NonZero, slice};
2323

2424
#[derive(Clone)]
2525
#[repr(transparent)]

src/aead/poly1305/arm_neon.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,8 @@ impl fe1305x2 {
192192
// need to read the assembly code and see what assumptions it makes on the
193193
// layout of its inputs. We've already made `fe1305x2` 16-byte aligned and that
194194
// might be all we need.
195-
//
196-
// XXX/TODO(MSRV): change to `pub(super)`.
197195
#[repr(C, align(16))]
198-
pub(in super::super) struct State {
196+
pub(super) struct State {
199197
r: fe1305x2,
200198
h: fe1305x2,
201199
c: fe1305x2,

src/aead/poly1305/fallback.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ const _5: W32 = Wrapping(5);
4848
#[allow(non_upper_case_globals)]
4949
const _0x3ffffff: W32 = Wrapping(0x3ffffff);
5050

51-
// XXX/TODO(MSRV): change to `pub(super)`.
5251
#[repr(align(64))]
53-
pub(in super::super) struct State {
52+
pub(super) struct State {
5453
r0: W32,
5554
r1: W32,
5655
r2: W32,

0 commit comments

Comments
 (0)