comparison rust/hg-core/src/utils/files.rs @ 52760: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 66e34bc44280
children 6183949219b2
comparison
equal deleted inserted replaced
52759:36d39726c0af 52760:94e2547e6f3d
10 //! Functions for fiddling with files. 10 //! Functions for fiddling with files.
11 11
12 use crate::utils::{ 12 use crate::utils::{
13 hg_path::{path_to_hg_path_buf, HgPath, HgPathBuf, HgPathError}, 13 hg_path::{path_to_hg_path_buf, HgPath, HgPathBuf, HgPathError},
14 path_auditor::PathAuditor, 14 path_auditor::PathAuditor,
15 replace_slice, 15 strings::replace_slice,
16 }; 16 };
17 use lazy_static::lazy_static; 17 use lazy_static::lazy_static;
18 use same_file::is_same_file; 18 use same_file::is_same_file;
19 use std::ffi::{OsStr, OsString}; 19 use std::ffi::{OsStr, OsString};
20 use std::iter::FusedIterator; 20 use std::iter::FusedIterator;