Skip to content

Commit b73cdad

Browse files
committed
clippy
1 parent 833818e commit b73cdad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,11 +684,11 @@ pub fn overhead(cipher_meta: CipherMeta) -> usize {
684684

685685
/// Slit plaintext__and_tag__and_nonce in (plaintext, tag, nonce)
686686
fn split_plaintext_tag_nonce_mut(
687-
data: & mut [u8],
687+
data: &mut [u8],
688688
plaintext_len: usize,
689689
tag_len: usize,
690690
nonce_len: usize,
691-
) -> (& mut [u8], & mut [u8], & mut [u8]) {
691+
) -> (&mut [u8], &mut [u8], &mut [u8]) {
692692
let (plaintext, tag_and_nonce_and_free) = data.split_at_mut(plaintext_len);
693693
let (tag, nonce_and_free) = tag_and_nonce_and_free.split_at_mut(tag_len);
694694
let (nonce, _) = nonce_and_free.split_at_mut(nonce_len);
@@ -697,10 +697,10 @@ fn split_plaintext_tag_nonce_mut(
697697

698698
/// Slit plaintext__and_tag__and_nonce in (plaintext_and_tag, nonce)
699699
fn split_plaintext_and_tag_nonce_mut(
700-
data: & mut [u8],
700+
data: &mut [u8],
701701
plaintext_and_tag_and_nonce_len: usize,
702702
nonce_len: usize,
703-
) -> (& mut [u8], & mut [u8]) {
703+
) -> (&mut [u8], &mut [u8]) {
704704
let (plaintext_and_tag, nonce_and_free) =
705705
data.split_at_mut(plaintext_and_tag_and_nonce_len - nonce_len);
706706
let (nonce, _) = nonce_and_free.split_at_mut(nonce_len);

0 commit comments

Comments
 (0)