aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-09-07 11:39:49 -0700
committerDaniel Mueller <deso@posteo.net>2020-09-07 11:39:49 -0700
commit5bc550418d18c1321b37b8d1945ba7f162bbea92 (patch)
treed2c434ad9b852f7bb6e8788281419c56f6b58584 /src
parentfd7082b69228e41a19f05aa533511b6aa65c6ea2 (diff)
downloadnitrocli-5bc550418d18c1321b37b8d1945ba7f162bbea92.tar.gz
nitrocli-5bc550418d18c1321b37b8d1945ba7f162bbea92.tar.bz2
fixup! Refactor connection handling
Diffstat (limited to 'src')
-rw-r--r--src/commands.rs2
1 files changed, 1 insertions, 1 deletions
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())
}
}