Skip to content

Commit

Permalink
Happy Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed Aug 6, 2024
1 parent 042b97c commit 4b0b24b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions aws-lc-rs/src/rsa/encryption/oaep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,7 @@ fn configure_oaep_crypto_operation(
return Err(Unspecified);
};

let label = if let Some(label) = label {
label
} else {
&[0u8; 0]
};
let label = label.unwrap_or(&[0u8; 0]);

if label.is_empty() {
// Safety: Don't pass zero-length slice pointers to C code :)
Expand Down

0 comments on commit 4b0b24b

Please sign in to comment.