comparison rust/hg-core/src/sparse.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 22d24f6d6411
children 42f78c859dd1
comparison
equal deleted inserted replaced
52773:36d39726c0af 52774:94e2547e6f3d
15 }, 15 },
16 narrow::VALID_PREFIXES, 16 narrow::VALID_PREFIXES,
17 operations::cat, 17 operations::cat,
18 repo::Repo, 18 repo::Repo,
19 requirements::SPARSE_REQUIREMENT, 19 requirements::SPARSE_REQUIREMENT,
20 utils::{hg_path::HgPath, SliceExt}, 20 utils::{hg_path::HgPath, strings::SliceExt},
21 Revision, NULL_REVISION, 21 Revision, NULL_REVISION,
22 }; 22 };
23 23
24 /// Command which is triggering the config read 24 /// Command which is triggering the config read
25 #[derive(Copy, Clone, Debug)] 25 #[derive(Copy, Clone, Debug)]