From patchwork Tue Mar 17 03:22:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D8278: rust-core: add missing `Debug` traits From: phabricator X-Patchwork-Id: 45805 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Tue, 17 Mar 2020 03:22:38 +0000 Closed by commit rHGece43c79333e: rust-core: add missing `Debug` traits (authored by Alphare). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D8278?vs=20762&id=20807 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D8278/new/ REVISION DETAIL https://phab.mercurial-scm.org/D8278 AFFECTED FILES rust/hg-core/src/dirstate/status.rs rust/hg-core/src/lib.rs CHANGE DETAILS To: Alphare, #hg-reviewers, marmoute Cc: mercurial-devel 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 @@ } } +#[derive(Debug)] pub enum DirstateError { Parse(DirstateParseError), Pack(DirstatePackError), 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 @@ ); } +#[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),