Mercurial > public > mercurial-scm > hg
diff rust/rhg/src/error.rs @ 45439:fbc373b7cbc3
rhg: fix `clippy` warnings
Differential Revision: https://phab.mercurial-scm.org/D8955
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Thu, 13 Aug 2020 16:36:42 +0200 |
parents | 5fe25f8ef5d9 |
children | 33ded2d3f4fc |
line wrap: on
line diff
--- 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()) }