# HG changeset patch # User Raphaël Gomès # Date 2020-03-12 23:41:22 # 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 --git a/rust/hg-core/src/dirstate/status.rs b/rust/hg-core/src/dirstate/status.rs --- a/rust/hg-core/src/dirstate/status.rs +++ b/rust/hg-core/src/dirstate/status.rs @@ -623,6 +623,7 @@ fn extend_from_dmap<'a>( ); } +#[derive(Debug)] pub struct DirstateStatus<'a> { pub modified: Vec>, pub added: Vec>, @@ -679,6 +680,7 @@ fn build_response<'a>( ) } +#[derive(Debug)] pub enum StatusError { IO(std::io::Error), Path(HgPathError), diff --git a/rust/hg-core/src/lib.rs b/rust/hg-core/src/lib.rs --- a/rust/hg-core/src/lib.rs +++ b/rust/hg-core/src/lib.rs @@ -103,6 +103,7 @@ impl ToString for DirstateMapError { } } +#[derive(Debug)] pub enum DirstateError { Parse(DirstateParseError), Pack(DirstatePackError),