From 5a9980cb6b53ef1f2c77e1ef3f769de540174d2f Mon Sep 17 00:00:00 2001 From: MattJackson <1085847+MattJackson@users.noreply.github.com> Date: Wed, 15 Apr 2026 01:56:57 +0000 Subject: [PATCH] Fix unused variable warning from handshake fix --- src/disc/encrypt.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/disc/encrypt.rs b/src/disc/encrypt.rs index f1a3a92..22724b9 100644 --- a/src/disc/encrypt.rs +++ b/src/disc/encrypt.rs @@ -25,7 +25,6 @@ impl Disc { let keydb_path = opts.resolve_keydb()?; let keydb = KeyDb::load(&keydb_path).ok()?; - let mut last_error = None; for hc in &keydb.host_certs { match aacs::handshake::aacs_authenticate(session, &hc.private_key, &hc.certificate) { Ok(mut auth) => { @@ -41,9 +40,7 @@ impl Disc { read_data_key, }); } - Err(e) => { - // Try next host cert - last_error = Some(e); + Err(_) => { continue; } }