Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix some clippy lints #236

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading