Mercurial > public > mercurial-scm > hg
diff rust/rhg/src/error.rs @ 52300:04b9a56c2d25
rust-lib: only export very common types to the top of the crate
This was done very early in the Rust project's lifecycle and I had very little
Rust experience. Let's keep the `DirstateParents` since they'll pop up in
all higher-level code and make the rest more explicit imports to make the
imports less confusing and the lib less cluttered.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 04 Nov 2024 11:13:05 +0100 |
parents | db065b33fa56 |
children | 79e8118cd846 |
line wrap: on
line diff
--- a/rust/rhg/src/error.rs Mon Nov 04 11:07:05 2024 +0100 +++ b/rust/rhg/src/error.rs Mon Nov 04 11:13:05 2024 +0100 @@ -4,6 +4,7 @@ use format_bytes::format_bytes; use hg::config::{ConfigError, ConfigParseError, ConfigValueParseError}; use hg::dirstate::on_disk::DirstateV2ParseError; +use hg::dirstate::status::StatusError; use hg::errors::HgError; use hg::exit_codes; use hg::repo::RepoError; @@ -11,7 +12,7 @@ use hg::sparse::SparseConfigError; use hg::utils::files::get_bytes_from_path; use hg::utils::hg_path::HgPathError; -use hg::{DirstateError, DirstateMapError, PatternError, StatusError}; +use hg::{DirstateError, DirstateMapError, PatternError}; use std::convert::From; /// The kind of command error