diff rust/hg-core/src/matchers.rs @ 52304: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 b2e90465daf6
children f33b87b46135
line wrap: on
line diff
--- a/rust/hg-core/src/matchers.rs	Mon Nov 04 11:07:05 2024 +0100
+++ b/rust/hg-core/src/matchers.rs	Mon Nov 04 11:13:05 2024 +0100
@@ -11,7 +11,7 @@
 use once_cell::sync::OnceCell;
 
 use crate::{
-    dirstate::dirs_multiset::DirsChildrenMultiset,
+    dirstate::dirs_multiset::{DirsChildrenMultiset, DirsMultiset},
     filepatterns::{
         build_single_regex, filter_subincludes, get_patterns_from_file,
         PatternFileWarning, PatternResult,
@@ -21,7 +21,7 @@
         hg_path::{HgPath, HgPathBuf, HgPathError},
         Escaped,
     },
-    DirsMultiset, FastHashMap, IgnorePattern, PatternError, PatternSyntax,
+    FastHashMap, IgnorePattern, PatternError, PatternSyntax,
 };
 
 use crate::dirstate::status::IgnoreFnType;