Mercurial > hg
changeset 44562:ece43c79333e
rust-core: add missing `Debug` traits
Turns out you need them when trying to use `hg-core` as a library. Who knew.
Differential Revision: https://phab.mercurial-scm.org/D8278
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Fri, 13 Mar 2020 00:41:22 +0100 |
parents | 368f85c5dfc0 |
children | 1922694d638f |
files | rust/hg-core/src/dirstate/status.rs rust/hg-core/src/lib.rs |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/status.rs Thu Dec 12 16:24:43 2019 -0800 +++ b/rust/hg-core/src/dirstate/status.rs Fri Mar 13 00:41:22 2020 +0100 @@ -623,6 +623,7 @@ ); } +#[derive(Debug)] pub struct DirstateStatus<'a> { pub modified: Vec<Cow<'a, HgPath>>, pub added: Vec<Cow<'a, HgPath>>, @@ -679,6 +680,7 @@ ) } +#[derive(Debug)] pub enum StatusError { IO(std::io::Error), Path(HgPathError),