diff -r ed95ccc94333 -r fbc373b7cbc3 rust/rhg/src/error.rs --- a/rust/rhg/src/error.rs Tue Aug 04 16:11:23 2020 +0200 +++ b/rust/rhg/src/error.rs Thu Aug 13 16:36:42 2020 +0200 @@ -69,7 +69,7 @@ impl CommandError { /// Exist the process with the corresponding exit code. - pub fn exit(&self) -> () { + pub fn exit(&self) { std::process::exit(self.kind.get_exit_code()) }