diff --git a/cryptoki/src/mechanism/elliptic_curve.rs b/cryptoki/src/mechanism/elliptic_curve.rs index 9c362872..e044fe60 100644 --- a/cryptoki/src/mechanism/elliptic_curve.rs +++ b/cryptoki/src/mechanism/elliptic_curve.rs @@ -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. diff --git a/cryptoki/src/session/object_management.rs b/cryptoki/src/session/object_management.rs index 9c56eca4..4c676ded 100644 --- a/cryptoki/src/session/object_management.rs +++ b/cryptoki/src/session/object_management.rs @@ -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; fn next(&mut self) -> Option { @@ -272,7 +272,7 @@ impl Session { /// # See also /// /// * [`Session::iter_objects`] for a way to specify the cache size - + /// /// # Example /// /// ```rust