Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/utils/hg_path.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 | de317a87ea6a |
children |
comparison
equal
deleted
inserted
replaced
52759:36d39726c0af | 52760:94e2547e6f3d |
---|---|
4 // | 4 // |
5 // This software may be used and distributed according to the terms of the | 5 // This software may be used and distributed according to the terms of the |
6 // GNU General Public License version 2 or any later version. | 6 // GNU General Public License version 2 or any later version. |
7 | 7 |
8 use crate::errors::HgError; | 8 use crate::errors::HgError; |
9 use crate::utils::SliceExt; | 9 use crate::utils::strings::SliceExt; |
10 use std::borrow::Borrow; | 10 use std::borrow::Borrow; |
11 use std::borrow::Cow; | 11 use std::borrow::Cow; |
12 use std::ffi::{OsStr, OsString}; | 12 use std::ffi::{OsStr, OsString}; |
13 use std::fmt; | 13 use std::fmt; |
14 use std::ops::Deref; | 14 use std::ops::Deref; |