##// END OF EJS Templates
engine: 'if not, else' -> 'if, else'...
engine: 'if not, else' -> 'if, else' I personally feel that ``` if x: pass else: pass ``` is easier to read and edit than ``` if not x: pass else: pass ``` Next patches will add one more if-else clause. Differential Revision: https://phab.mercurial-scm.org/D9931

File last commit:

r46535:ead435aa default
r47194:45c3a263 default
Show More
commands.rs
14 lines | 320 B | application/rls-services+xml | RustLexer
pub mod cat;
pub mod debugdata;
pub mod debugrequirements;
pub mod files;
pub mod root;
use crate::error::CommandError;
use crate::ui::Ui;
/// The common trait for rhg commands
///
/// Normalize the interface of the commands provided by rhg
pub trait Command {
fn run(&self, ui: &Ui) -> Result<(), CommandError>;
}