aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-09-29 19:07:05 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-10-02 11:54:48 +0200
commit458d87d2a7fb31beea3e965bd77d7d0ce25eb4b4 (patch)
treebdfca73e456072d54bb8fe38e88df3ea02b1c4e7
parentc7c5e94f1e3d90e6ce85a7c6adb7fdbc31a29645 (diff)
downloadnitrocli-458d87d2a7fb31beea3e965bd77d7d0ce25eb4b4.tar.gz
nitrocli-458d87d2a7fb31beea3e965bd77d7d0ce25eb4b4.tar.bz2
Remove DeviceModel::as_user_facing_str
This patch removes the unused DeviceModel::as_user_facing_str method. The device model is only used for the argument handling. When printing messages for the user, we always use nitrokey::Model. Its Display implementation already prints the model in an appropriate format.
-rw-r--r--src/args.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/args.rs b/src/args.rs
index 3bb1225..a38ca6a 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -44,16 +44,6 @@ Enum! {
]
}
-impl DeviceModel {
- pub fn as_user_facing_str(&self) -> &str {
- match self {
- DeviceModel::Librem => "Librem",
- DeviceModel::Pro => "Pro",
- DeviceModel::Storage => "Storage",
- }
- }
-}
-
impl From<DeviceModel> for nitrokey::Model {
fn from(model: DeviceModel) -> nitrokey::Model {
match model {