Skip to content

Commit

Permalink
fix: fix some clippy lints
Browse files Browse the repository at this point in the history
Signed-off-by: Hugues de Valon <hugues.de-valon@einride.tech>
  • Loading branch information
hug-dev committed Dec 20, 2024
1 parent 29cb6f3 commit 339393e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cryptoki/src/mechanism/elliptic_curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub struct EcKdf<'a> {
shared_data: Option<&'a [u8]>,
}

impl<'a> EcKdf<'a> {
impl EcKdf<'_> {
/// The null transformation. The derived key value is produced by
/// taking bytes from the left of the agreed value. The new key
/// size is limited to the size of the agreed value.
Expand Down
4 changes: 2 additions & 2 deletions cryptoki/src/session/object_management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl<'a> ObjectHandleIterator<'a> {
// and index to cache_size. That allows to jump directly to the C_FindObjects call
// and start filling the cache.

impl<'a> Iterator for ObjectHandleIterator<'a> {
impl Iterator for ObjectHandleIterator<'_> {
type Item = Result<ObjectHandle>;

fn next(&mut self) -> Option<Self::Item> {
Expand Down Expand Up @@ -272,7 +272,7 @@ impl Session {
/// # See also
///
/// * [`Session::iter_objects`] for a way to specify the cache size
///
/// # Example
///
/// ```rust
Expand Down

0 comments on commit 339393e

Please sign in to comment.