From 0b09d632ab1c602680511c85a316cfb269e7fc50 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 16 Feb 2025 16:39:23 +0100 Subject: [PATCH] examples: Remove unused imports --- src/example.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/example.rs b/src/example.rs index 0bbef3f..84a1025 100644 --- a/src/example.rs +++ b/src/example.rs @@ -1,8 +1,5 @@ // SPDX-License-Identifier: BSD-3-Clause -use ykoath2::constants::{HashAlgo, OathType, DEFAULT_PERIOD}; -use ykoath2::oath_credential::OathCredential; -use ykoath2::oath_credential_id::CredentialIDData; use ykoath2::OathSession; // use crate::args::Cli; @@ -33,7 +30,7 @@ fn main() { for yubikey in yubikeys { let device_label: &str = yubikey; println!("Found device with label {}", device_label); - let mut session = OathSession::new(yubikey).unwrap(); + let session = OathSession::new(yubikey).unwrap(); /* session.set_key(&session.derive_key("1234")).unwrap(); session.unlock_session(&session.derive_key("1234")).unwrap();