diff rust/rhg/src/commands.rs @ 45361:47997afadf08

rhg: ask the error message from `CommandError` Avoid repeating the display of the same error messages in different commands. Differential Revision: https://phab.mercurial-scm.org/D8865
author Antoine Cezar <antoine.cezar@octobus.net>
date Mon, 20 Jul 2020 18:14:52 +0200
parents 513b3ef277a3
children 5fe25f8ef5d9
line wrap: on
line diff
--- a/rust/rhg/src/commands.rs	Tue Jul 21 10:39:30 2020 +0200
+++ b/rust/rhg/src/commands.rs	Mon Jul 20 18:14:52 2020 +0200
@@ -4,6 +4,6 @@
 /// The common trait for rhg commands
 ///
 /// Normalize the interface of the commands provided by rhg
-pub trait Command {
+pub trait Command<'a> {
     fn run(&self) -> Result<(), CommandError>;
 }