aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-11 10:38:18 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-11 10:38:18 -0800
commit772123f4197aded2a99efc5170978dd0bfbc091f (patch)
treed01f40deaef2afa7a7ddf9aa6aebe7316fff7b5b
parent9d854fc5baad01d059acdb96fad82700042ef114 (diff)
downloadnitrocli-772123f4197aded2a99efc5170978dd0bfbc091f.tar.gz
nitrocli-772123f4197aded2a99efc5170978dd0bfbc091f.tar.bz2
Remove unused fmt::Display implementation for PinType
The implementation of the fmt::Display trait for the PinType is seemingly unused. Remove it.
-rw-r--r--nitrocli/src/pinentry.rs14
1 files changed, 0 insertions, 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 <http://www.gnu.org/licenses/>. *
// *************************************************************************
-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 = ();