diff rust/rhg/src/ui.rs @ 46591:21d3b40b4c0e

rhg: Remove error message on unsupported CLI arguments Like in other "unsupported" cases that return a specific exit code Differential Revision: https://phab.mercurial-scm.org/D10002
author Simon Sapin <simon.sapin@octobus.net>
date Fri, 12 Feb 2021 16:54:30 +0100
parents fada33872b5b
children 38deb65d4441
line wrap: on
line diff
--- a/rust/rhg/src/ui.rs	Tue Jan 05 21:46:21 2021 +0100
+++ b/rust/rhg/src/ui.rs	Fri Feb 12 16:54:30 2021 +0100
@@ -49,11 +49,6 @@
 
         stderr.flush().or_else(handle_stderr_error)
     }
-
-    /// Write string line to stderr
-    pub fn writeln_stderr_str(&self, s: &str) -> Result<(), UiError> {
-        self.write_stderr(&format!("{}\n", s).as_bytes())
-    }
 }
 
 /// A buffered stdout writer for faster batch printing operations.