##// END OF EJS Templates
rhg: Do not return error when when we really mean ok in commands...
rhg: Do not return error when when we really mean ok in commands Before when a command was successfull `Err(CommandErrorKind::Ok.into())` was returned which is an oxymoron. Using `Ok(())` when everything is ok seems more appropriate. Differential Revision: https://phab.mercurial-scm.org/D8864

File last commit:

r45570:afecc7f7 default
r45919:227281e7 default
Show More
commands.rs
9 lines | 218 B | application/rls-services+xml | RustLexer
pub mod root;
use crate::error::CommandError;
/// The common trait for rhg commands
///
/// Normalize the interface of the commands provided by rhg
pub trait Command {
fn run(&self) -> Result<(), CommandError>;
}