diff --git a/openpgp-card/src/lib.rs b/openpgp-card/src/lib.rs index 82081f1..e34e86a 100644 --- a/openpgp-card/src/lib.rs +++ b/openpgp-card/src/lib.rs @@ -1205,12 +1205,7 @@ impl<'a> Transaction<'a> { log::info!("OpenPgpTransaction: set_creation_time"); // Timestamp update - let time_value: Vec = time - .get() - .to_be_bytes() - .iter() - .copied() - .collect(); + let time_value: Vec = time.get().to_be_bytes().to_vec(); let cmd = commands::put_data(key_type.timestamp_put_tag(), time_value);