summaryrefslogtreecommitdiff
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
commit40d7df373d9f55f96942f238dea4edaf78e6e96f (patch)
treef320cf26525851acdb9fb8cc9d4cdd70e9f1f018
parent5bb115f0b2021b0f7a58e064d66e0a6ad67c5654 (diff)
downloadnitrocli-40d7df373d9f55f96942f238dea4edaf78e6e96f.tar.gz
nitrocli-40d7df373d9f55f96942f238dea4edaf78e6e96f.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 = ();