Clean up warnings

This commit is contained in:
Heiko Schaefer 2022-01-07 13:18:26 +01:00
parent 29c7d5c550
commit 65e192d728
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D
2 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,7 @@
//! Wrapping of cards for tests. Open a list of cards, based on a
//! TestConfig configuration file
use anyhow::{anyhow, Result};
use anyhow::Result;
use serde_derive::Deserialize;
use std::collections::BTreeMap;

View file

@ -8,7 +8,7 @@ use std::string::FromUtf8Error;
use thiserror;
use sequoia_openpgp::parse::Parse;
use sequoia_openpgp::policy::{NullPolicy, StandardPolicy};
use sequoia_openpgp::policy::StandardPolicy;
use sequoia_openpgp::serialize::SerializeInto;
use sequoia_openpgp::Cert;
@ -356,7 +356,7 @@ pub fn test_private_data(
ca: &mut CardApp,
_param: &[&str],
) -> Result<TestOutput, TestError> {
let mut out = vec![];
let out = vec![];
println!();
@ -449,7 +449,7 @@ pub fn test_pw_status(
ca: &mut CardApp,
_param: &[&str],
) -> Result<TestOutput, TestError> {
let mut out = vec![];
let out = vec![];
let ard = ca.application_related_data()?;
let mut pws = ard.pw_status_bytes()?;
@ -543,7 +543,7 @@ pub fn test_change_pw(
ca: &mut CardApp,
_param: &[&str],
) -> Result<TestOutput, TestError> {
let mut out = vec![];
let out = vec![];
// first do admin-less pw1 on gnuk
// (NOTE: Gnuk requires a key to be loaded before allowing pw changes!)
@ -601,7 +601,7 @@ pub fn test_reset_retry_counter(
ca: &mut CardApp,
_param: &[&str],
) -> Result<TestOutput, TestError> {
let mut out = vec![];
let out = vec![];
// set pw3, then pw1 (to bring gnuk into non-admin mode)
println!("set pw3");