Mercurial > hg
comparison rust/hg-core/src/dirstate/dirs_multiset.rs @ 52305:79e8118cd846
rust-lib: move `Dirstate*Error` to the `dirstate` module
That's where they belong and should always have been there.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Mon, 04 Nov 2024 11:18:36 +0100 |
parents | b422acba55f1 |
children |
comparison
equal
deleted
inserted
replaced
52304:04b9a56c2d25 | 52305:79e8118cd846 |
---|---|
12 use crate::{ | 12 use crate::{ |
13 utils::{ | 13 utils::{ |
14 files, | 14 files, |
15 hg_path::{HgPath, HgPathBuf, HgPathError}, | 15 hg_path::{HgPath, HgPathBuf, HgPathError}, |
16 }, | 16 }, |
17 DirstateError, DirstateMapError, FastHashMap, | 17 FastHashMap, |
18 }; | 18 }; |
19 use std::collections::{hash_map, hash_map::Entry, HashMap, HashSet}; | 19 use std::collections::{hash_map, hash_map::Entry, HashMap, HashSet}; |
20 | 20 |
21 use super::entry::DirstateEntry; | 21 use super::entry::DirstateEntry; |
22 use super::{DirstateError, DirstateMapError}; | |
22 | 23 |
23 // could be encapsulated if we care API stability more seriously | 24 // could be encapsulated if we care API stability more seriously |
24 pub type DirsMultisetIter<'a> = hash_map::Keys<'a, HgPathBuf, u32>; | 25 pub type DirsMultisetIter<'a> = hash_map::Keys<'a, HgPathBuf, u32>; |
25 | 26 |
26 #[derive(PartialEq, Debug)] | 27 #[derive(PartialEq, Debug)] |