From c8a742e8d05b73cf52579f2e829fa5282af9df10 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Fri, 16 Jul 2021 16:45:57 +0200 Subject: [PATCH] Imports cleanup; comment --- openpgp-card/src/key_upload.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openpgp-card/src/key_upload.rs b/openpgp-card/src/key_upload.rs index 76c080c..c24099c 100644 --- a/openpgp-card/src/key_upload.rs +++ b/openpgp-card/src/key_upload.rs @@ -3,7 +3,8 @@ use anyhow::{anyhow, Result}; -use crate::apdu::{command::Command, commands}; +use crate::apdu::command::Command; +use crate::apdu::commands; use crate::card_app::CardApp; use crate::errors::OpenpgpCardError; use crate::parse::algo_attrs::{Algo, RsaAttrs}; @@ -386,6 +387,7 @@ fn copy_key_to_card( .copied() .collect(); + // Generation date/time let time_cmd = commands::put_data(&[key_type.get_timestamp_put_tag()], time_value);