From 5bc550418d18c1321b37b8d1945ba7f162bbea92 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Mon, 7 Sep 2020 11:39:49 -0700 Subject: fixup! Refactor connection handling --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index f718571..3a245e5 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -140,7 +140,7 @@ where if let nitrokey::DeviceWrapper::Storage(storage) = device { op(ctx, storage) } else { - panic!("connect returned a wrong model: {:?}", device) + panic!("connect returned a wrong model: {}", device.get_model()) } } -- cgit v1.2.1