openpgp-card: optimize use of iter/collect to use to_vec

This commit is contained in:
RyanSquared 2024-01-07 21:51:21 -05:00
parent 00491e8de8
commit 799d077d55
No known key found for this signature in database
GPG key ID: 8E401478A3FBEF72

View file

@ -1205,12 +1205,7 @@ impl<'a> Transaction<'a> {
log::info!("OpenPgpTransaction: set_creation_time");
// Timestamp update
let time_value: Vec<u8> = time
.get()
.to_be_bytes()
.iter()
.copied()
.collect();
let time_value: Vec<u8> = time.get().to_be_bytes().to_vec();
let cmd = commands::put_data(key_type.timestamp_put_tag(), time_value);