openpgp-card: optimize use of iter/collect to use to_vec
This commit is contained in:
parent
00491e8de8
commit
799d077d55
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue