Skip to content

Commit 282cbdf

Browse files
committed
refactor: derive Default for EddsaParams
1 parent 8d4fca9 commit 282cbdf

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

cryptoki/src/mechanism/eddsa.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use std::marker::PhantomData;
2626
/// | Ed448ph | Required | True | Optional |
2727
///
2828
/// This structure wraps a `CK_EDDSA_PARAMS` structure.
29-
#[derive(Copy, Debug, Clone)]
29+
#[derive(Copy, Debug, Clone, Default)]
3030
#[repr(transparent)]
3131
pub struct EddsaParams<'a> {
3232
inner: CK_EDDSA_PARAMS,
@@ -46,16 +46,3 @@ impl EddsaParams<'_> {
4646
}
4747
}
4848
}
49-
50-
impl Default for EddsaParams<'_> {
51-
/// Provide a default instance of `EddsaParams`.
52-
///
53-
/// This initializes `EddsaParams` with the default value
54-
/// of the `CK_EDDSA_PARAMS` structure.
55-
fn default() -> Self {
56-
Self {
57-
inner: CK_EDDSA_PARAMS::default(),
58-
_marker: PhantomData,
59-
}
60-
}
61-
}

0 commit comments

Comments
 (0)