Mercurial > public > mercurial-scm > hg
view rust/rhg/src/commands.rs @ 46134:cc6faec62cb7
rust: change &PathBuf parameters to &Path
This is just as useful in function bodies, and a less strict requirement for callers.
Differential Revision: https://phab.mercurial-scm.org/D9594
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 14 Dec 2020 13:47:44 +0100 |
parents | ead435aa5294 |
children | a6e4e4650bac |
line wrap: on
line source
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>; }