comparison rust/hg-core/src/filepatterns.rs @ 52774:94e2547e6f3d

rust: move code from utils to utils::strings This moves string-related functions in hg::utils into the recently added hg::utils::strings module.
author Mitchell Kember <mkember@janestreet.com>
date Thu, 16 Jan 2025 13:15:02 -0500
parents 1866119cbad7
children
comparison
equal deleted inserted replaced
52773:36d39726c0af 52774:94e2547e6f3d
10 use crate::{ 10 use crate::{
11 pre_regex::PreRegex, 11 pre_regex::PreRegex,
12 utils::{ 12 utils::{
13 files::{canonical_path, get_bytes_from_path, get_path_from_bytes}, 13 files::{canonical_path, get_bytes_from_path, get_path_from_bytes},
14 hg_path::{path_to_hg_path_buf, HgPathBuf, HgPathError}, 14 hg_path::{path_to_hg_path_buf, HgPathBuf, HgPathError},
15 SliceExt, 15 strings::SliceExt,
16 }, 16 },
17 FastHashMap, 17 FastHashMap,
18 }; 18 };
19 use lazy_static::lazy_static; 19 use lazy_static::lazy_static;
20 use regex::bytes::{NoExpand, Regex}; 20 use regex::bytes::{NoExpand, Regex};