Skip to content

Commit

Permalink
Fix a number of lint warnings
Browse files Browse the repository at this point in the history
* `blacklist_type` is deprecated in favour of `blocklist_type`
* `input` was already a reference, no need to take another reference
* `pub_enum_variant_names` lint was deprecated

Signed-off-by: Ionut Mihalcea <[email protected]>
  • Loading branch information
ionut-arm committed Feb 15, 2022
1 parent 6148335 commit f1f7012
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion psa-crypto-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ mod common {
.clang_arg(format!("-I{}", mbed_include_dir))
.rustfmt_bindings(true)
.header("src/c/shim.h")
.blacklist_type("max_align_t")
.blocklist_type("max_align_t")
.generate_comments(false)
.size_t_is_usize(true)
.generate()
Expand Down
2 changes: 0 additions & 2 deletions psa-crypto/src/types/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ impl Mac {

/// Enumeration of symmetric encryption algorithms supported.
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize, Zeroize)]
// StreamCipher contains "Cipher" to differentiate with the other ones that are block cipher modes.
#[allow(clippy::pub_enum_variant_names)]
pub enum Cipher {
/// The stream cipher mode of a stream cipher algorithm.
StreamCipher,
Expand Down
2 changes: 1 addition & 1 deletion psa-crypto/src/types/key_derivation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl Inputs<'_> {
) -> Result<()> {
match secret {
InputSecret::Input(input) => {
Inputs::apply_input_step_to_op(op, DerivationStep::Secret, &input)
Inputs::apply_input_step_to_op(op, DerivationStep::Secret, input)
}
InputSecret::KeyAgreement {
private_key,
Expand Down

0 comments on commit f1f7012

Please sign in to comment.