Skip to content

Commit a4dbbac

Browse files
committed
Use default constructor for Date::new_empty
Signed-off-by: Ionut Mihalcea <[email protected]>
1 parent a190b02 commit a4dbbac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cryptoki/src/types.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ impl Date {
6060
/// newer implementations of `Cryptoki`).
6161
pub fn new_empty() -> Self {
6262
let date = CK_DATE {
63-
year: Default::default(),
64-
month: Default::default(),
65-
day: Default::default(),
63+
..Default::default()
6664
};
6765
Self { date }
6866
}

0 commit comments

Comments
 (0)