diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-11 10:38:18 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-11 10:38:18 -0800 |
commit | 772123f4197aded2a99efc5170978dd0bfbc091f (patch) | |
tree | d01f40deaef2afa7a7ddf9aa6aebe7316fff7b5b | |
parent | 9d854fc5baad01d059acdb96fad82700042ef114 (diff) | |
download | nitrocli-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.rs | 14 |
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 = (); |