diff rust/rhg/src/error.rs @ 52301:79e8118cd846

rust-lib: move `Dirstate*Error` to the `dirstate` module That's where they belong and should always have been there.
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 04 Nov 2024 11:18:36 +0100
parents 04b9a56c2d25
children f33b87b46135
line wrap: on
line diff
--- a/rust/rhg/src/error.rs	Mon Nov 04 11:13:05 2024 +0100
+++ b/rust/rhg/src/error.rs	Mon Nov 04 11:18:36 2024 +0100
@@ -5,6 +5,8 @@
 use hg::config::{ConfigError, ConfigParseError, ConfigValueParseError};
 use hg::dirstate::on_disk::DirstateV2ParseError;
 use hg::dirstate::status::StatusError;
+use hg::dirstate::DirstateError;
+use hg::dirstate::DirstateMapError;
 use hg::errors::HgError;
 use hg::exit_codes;
 use hg::repo::RepoError;
@@ -12,7 +14,7 @@
 use hg::sparse::SparseConfigError;
 use hg::utils::files::get_bytes_from_path;
 use hg::utils::hg_path::HgPathError;
-use hg::{DirstateError, DirstateMapError, PatternError};
+use hg::PatternError;
 use std::convert::From;
 
 /// The kind of command error