diff rust/hg-core/src/sparse.rs @ 52338:f33b87b46135

rust-lib: move `PatternError` to the `filepatterns` module This is where it belongs
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 04 Nov 2024 11:21:43 +0100
parents ae1ab6d71f4a
children 22d24f6d6411
line wrap: on
line diff
--- a/rust/hg-core/src/sparse.rs	Mon Nov 04 11:18:36 2024 +0100
+++ b/rust/hg-core/src/sparse.rs	Mon Nov 04 11:21:43 2024 +0100
@@ -5,7 +5,7 @@
 use crate::{
     errors::HgError,
     exit_codes::STATE_ERROR,
-    filepatterns::parse_pattern_file_contents,
+    filepatterns::{PatternError, parse_pattern_file_contents},
     matchers::{
         AlwaysMatcher, DifferenceMatcher, IncludeMatcher, Matcher,
         UnionMatcher,
@@ -15,7 +15,7 @@
     repo::Repo,
     requirements::SPARSE_REQUIREMENT,
     utils::{hg_path::HgPath, SliceExt},
-    IgnorePattern, PatternError, PatternFileWarning, PatternSyntax, Revision,
+    IgnorePattern, PatternFileWarning, PatternSyntax, Revision,
     NULL_REVISION,
 };