Mercurial > public > mercurial-scm > hg-stable
diff rust/rhg/src/error.rs @ 49987:58074252db3c
rust: run `cargo clippy`
These automatic fixes are good to have because they make the code
more idiomatic and less surprising.
The transform from `sort` -> `sort_unstable` is questionable, but this is
only in a test, so it doesn't matter in our case.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 09 Jan 2023 17:40:03 +0100 |
parents | 8076298b795a |
children | 750409505286 |
line wrap: on
line diff
--- a/rust/rhg/src/error.rs Fri Jan 06 18:52:04 2023 +0100 +++ b/rust/rhg/src/error.rs Mon Jan 09 17:40:03 2023 +0100 @@ -50,7 +50,7 @@ // of error messages to handle non-UTF-8 filenames etc: // https://www.mercurial-scm.org/wiki/EncodingStrategy#Mixing_output message: utf8_to_local(message.as_ref()).into(), - detailed_exit_code: detailed_exit_code, + detailed_exit_code, hint: None, } }