diff rust/hg-core/src/lib.rs @ 51630:e4b9f8a74d5f

match: simplify the rust-side file pattern kind parsing There's no need to add the ':' characters if we're simply pattern matching against constants next.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Tue, 16 Apr 2024 17:21:37 +0100
parents c112cc9effdc
children 3ae7c43ad8aa
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs	Tue Apr 16 13:51:45 2024 +0100
+++ b/rust/hg-core/src/lib.rs	Tue Apr 16 17:21:37 2024 +0100
@@ -41,7 +41,7 @@
 
 use crate::utils::hg_path::{HgPathBuf, HgPathError};
 pub use filepatterns::{
-    parse_pattern_syntax, read_pattern_file, IgnorePattern,
+    parse_pattern_syntax_kind, read_pattern_file, IgnorePattern,
     PatternFileWarning, PatternSyntax,
 };
 use std::collections::HashMap;