Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/matchers.rs @ 52339:22d24f6d6411
rust-lib: remove exports for not too common pattern-related types
This only muddies the lib and makes the imports more confusing.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 04 Nov 2024 11:26:41 +0100 |
parents | f33b87b46135 |
children | a876ab6c3fd5 |
line wrap: on
line diff
--- a/rust/hg-core/src/matchers.rs Mon Nov 04 11:21:43 2024 +0100 +++ b/rust/hg-core/src/matchers.rs Mon Nov 04 11:26:41 2024 +0100 @@ -14,14 +14,15 @@ dirstate::dirs_multiset::{DirsChildrenMultiset, DirsMultiset}, filepatterns::{ build_single_regex, filter_subincludes, get_patterns_from_file, - PatternError, PatternFileWarning, PatternResult, + IgnorePattern, PatternError, PatternFileWarning, PatternResult, + PatternSyntax, }, utils::{ files::{dir_ancestors, find_dirs}, hg_path::{HgPath, HgPathBuf, HgPathError}, Escaped, }, - FastHashMap, IgnorePattern, PatternSyntax, + FastHashMap, }; use crate::dirstate::status::IgnoreFnType; @@ -265,8 +266,7 @@ /// ``` /// use hg::{ /// matchers::{PatternMatcher, Matcher}, -/// IgnorePattern, -/// PatternSyntax, +/// filepatterns::{IgnorePattern, PatternSyntax}, /// utils::hg_path::{HgPath, HgPathBuf} /// }; /// use std::collections::HashSet; @@ -387,8 +387,7 @@ /// ``` /// use hg::{ /// matchers::{IncludeMatcher, Matcher}, -/// IgnorePattern, -/// PatternSyntax, +/// filepatterns::{IgnorePattern, PatternSyntax}, /// utils::hg_path::HgPath /// }; /// use std::path::Path;