Mercurial > public > mercurial-scm > hg
diff rust/rhg/src/ui.rs @ 48734:3e2b4bb286e7
rhg: Colorize `rhg status` output when appropriate
Differential Revision: https://phab.mercurial-scm.org/D12168
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 08 Feb 2022 14:20:58 +0100 |
parents | 39c447e03dbc |
children | f19be290756a |
line wrap: on
line diff
--- a/rust/rhg/src/ui.rs Thu Feb 10 12:59:32 2022 +0100 +++ b/rust/rhg/src/ui.rs Tue Feb 08 14:20:58 2022 +0100 @@ -57,11 +57,6 @@ /// Write bytes to stdout pub fn write_stdout(&self, bytes: &[u8]) -> Result<(), UiError> { - // Hack to silence "unused" warnings - if false { - return self.write_stdout_labelled(bytes, ""); - } - let mut stdout = self.stdout.lock(); stdout.write_all(bytes).or_else(handle_stdout_error)?;