aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-09-29 19:07:05 +0200
committerDaniel Mueller <deso@posteo.net>2020-10-11 15:02:49 -0700
commit6be92c8425dd5285c16a1722aa95683ea146cf46 (patch)
treebde45ef3463b8666037ced80be6668f1dfcda4d6 /src
parent23f455ab2e36a019ec62450c5b40949663395963 (diff)
downloadnitrocli-6be92c8425dd5285c16a1722aa95683ea146cf46.tar.gz
nitrocli-6be92c8425dd5285c16a1722aa95683ea146cf46.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.
Diffstat (limited to 'src')
-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 {