From 772123f4197aded2a99efc5170978dd0bfbc091f Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Fri, 11 Jan 2019 10:38:18 -0800 Subject: Remove unused fmt::Display implementation for PinType The implementation of the fmt::Display trait for the PinType is seemingly unused. Remove it. --- nitrocli/src/pinentry.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/nitrocli/src/pinentry.rs b/nitrocli/src/pinentry.rs index 232bff9..d54a182 100644 --- a/nitrocli/src/pinentry.rs +++ b/nitrocli/src/pinentry.rs @@ -17,7 +17,6 @@ // * along with this program. If not, see . * // ************************************************************************* -use std::fmt; use std::process; use std::str; @@ -35,19 +34,6 @@ pub enum PinType { User, } -impl fmt::Display for PinType { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!( - f, - "{}", - match *self { - PinType::Admin => "admin", - PinType::User => "user", - } - ) - } -} - impl str::FromStr for PinType { type Err = (); -- cgit v1.2.3