Mercurial > public > mercurial-scm > hg-stable
view rust/hg-core/src/operations/mod.rs @ 46502:3e2d539d0d1a
rust: remove `FooError` structs with only `kind: FooErrorKind` enum field
Use the enum directly as `FooError` instead.
Differential Revision: https://phab.mercurial-scm.org/D9874
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 26 Jan 2021 19:07:24 +0100 |
parents | dca9cb99971c |
children | b274aa2f20fd |
line wrap: on
line source
//! A distinction is made between operations and commands. //! An operation is what can be done whereas a command is what is exposed by //! the cli. A single command can use several operations to achieve its goal. mod cat; mod debugdata; mod dirstate_status; mod find_root; mod list_tracked_files; pub use cat::{cat, CatRevError}; pub use debugdata::{debug_data, DebugDataError, DebugDataKind}; pub use find_root::{find_root, find_root_from_path, FindRootError}; pub use list_tracked_files::{ list_rev_tracked_files, FilesForRev, ListRevTrackedFilesError, }; pub use list_tracked_files::{Dirstate, ListDirstateTrackedFilesError};