Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Sep 9, 2024
1 parent bbff24a commit 65e8391
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkcs11/src/backend/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn encrypt_data(
return Error::InvalidData;
}
}
err.into()
err
})?;

Ok(Base64::decode_vec(&output.entity.encrypted)?)
Expand Down
2 changes: 1 addition & 1 deletion pkcs11/src/backend/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ fn fetch_one_key(
) {
return Ok(vec![]);
}
return Err(err.into());
return Err(err);
}
};

Expand Down
1 change: 1 addition & 0 deletions pkcs11/src/backend/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ fn get_user_api_config(
) -> Option<nethsm_sdk_rs::apis::configuration::Configuration> {
let user = user?;

#[allow(clippy::question_mark)]
if user.password.is_none() {
return None;
}
Expand Down

0 comments on commit 65e8391

Please sign in to comment.