rust/rhg/src/error.rs
changeset 45360 227281e76c22
parent 45049 513b3ef277a3
child 45361 47997afadf08
--- a/rust/rhg/src/error.rs	Sat Aug 08 12:52:39 2020 -0700
+++ b/rust/rhg/src/error.rs	Tue Jul 21 10:39:30 2020 +0200
@@ -5,8 +5,6 @@
 /// The kind of command error
 #[derive(Debug, PartialEq)]
 pub enum CommandErrorKind {
-    /// The command finished without error
-    Ok,
     /// The root of the repository cannot be found
     RootNotFound,
     /// The current directory cannot be found
@@ -20,7 +18,6 @@
 impl CommandErrorKind {
     pub fn get_exit_code(&self) -> exitcode::ExitCode {
         match self {
-            CommandErrorKind::Ok => exitcode::OK,
             CommandErrorKind::RootNotFound => exitcode::ABORT,
             CommandErrorKind::CurrentDirNotFound => exitcode::ABORT,
             CommandErrorKind::StdoutError => exitcode::ABORT,