Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/lib.rs @ 51602: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 |
comparison
equal
deleted
inserted
replaced
51601:32ba01b5669d | 51602:e4b9f8a74d5f |
---|---|
39 pub mod utils; | 39 pub mod utils; |
40 pub mod vfs; | 40 pub mod vfs; |
41 | 41 |
42 use crate::utils::hg_path::{HgPathBuf, HgPathError}; | 42 use crate::utils::hg_path::{HgPathBuf, HgPathError}; |
43 pub use filepatterns::{ | 43 pub use filepatterns::{ |
44 parse_pattern_syntax, read_pattern_file, IgnorePattern, | 44 parse_pattern_syntax_kind, read_pattern_file, IgnorePattern, |
45 PatternFileWarning, PatternSyntax, | 45 PatternFileWarning, PatternSyntax, |
46 }; | 46 }; |
47 use std::collections::HashMap; | 47 use std::collections::HashMap; |
48 use std::fmt; | 48 use std::fmt; |
49 use twox_hash::RandomXxHashBuilder64; | 49 use twox_hash::RandomXxHashBuilder64; |