From 5376d0b36954ababc9172e0d6291d20954a6a31d Mon Sep 17 00:00:00 2001 From: Shun Sakai Date: Fri, 28 Jun 2024 21:22:27 +0900 Subject: [PATCH] Fix clippy warnings --- crates/capi/src/encrypt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/capi/src/encrypt.rs b/crates/capi/src/encrypt.rs index e57b029b..a820f38c 100644 --- a/crates/capi/src/encrypt.rs +++ b/crates/capi/src/encrypt.rs @@ -240,7 +240,7 @@ mod tests { #[test] fn minimum_output_length() { - let mut plaintext = [u8::default(); 0]; + let mut plaintext = []; let mut passphrase: [u8; PASSPHRASE.len()] = PASSPHRASE.as_bytes().try_into().unwrap(); let mut ciphertext = [u8::default(); HEADER_SIZE + TAG_SIZE]; let code = unsafe {