# HG changeset patch # User Raphaël Gomès # Date 1584056482 -3600 # Node ID ece43c79333e67a71e1e2a98709c51ff509e3be8 # Parent 368f85c5dfc07499abc6d4631d5b7c0e01695a40 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 diff -r 368f85c5dfc0 -r ece43c79333e rust/hg-core/src/dirstate/status.rs --- 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>, pub added: Vec>, @@ -679,6 +680,7 @@ ) } +#[derive(Debug)] pub enum StatusError { IO(std::io::Error), Path(HgPathError), diff -r 368f85c5dfc0 -r ece43c79333e rust/hg-core/src/lib.rs --- a/rust/hg-core/src/lib.rs Thu Dec 12 16:24:43 2019 -0800 +++ b/rust/hg-core/src/lib.rs Fri Mar 13 00:41:22 2020 +0100 @@ -103,6 +103,7 @@ } } +#[derive(Debug)] pub enum DirstateError { Parse(DirstateParseError), Pack(DirstatePackError),