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 {