From 4e710da32c45ee833b39061809a7260c8619e55f Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 20 Nov 2019 11:17:17 +0000 Subject: [PATCH] Remove ErrorKind::Ok --- src/error.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/error.rs b/src/error.rs index b867c98..9e23a0b 100644 --- a/src/error.rs +++ b/src/error.rs @@ -35,10 +35,6 @@ use std::fmt; /// Kinds of errors #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum ErrorKind { - /// OK - // TODO(tarcieri): replace this with proper result types - Ok, - /// Memory error MemoryError, @@ -95,7 +91,6 @@ impl ErrorKind { /// assist in web searches for relevant information for these errors. pub fn name(self) -> &'static str { match self { - ErrorKind::Ok => "YKPIV_OK", ErrorKind::MemoryError => "YKPIV_MEMORY_ERROR", ErrorKind::PcscError => "YKPIV_PCSC_ERROR", ErrorKind::SizeError => "YKPIV_SIZE_ERROR", @@ -118,7 +113,6 @@ impl ErrorKind { /// Error message pub fn msg(self) -> &'static str { match self { - ErrorKind::Ok => "OK", ErrorKind::MemoryError => "memory error", ErrorKind::PcscError => "PCSC error", ErrorKind::SizeError => "size error",