changeset 47335 | ed1583a845d2 |
parent 47101 | 5d62243c7732 |
child 47407 | 6e49769b7f97 |
--- a/rust/hg-core/src/lib.rs Wed May 19 13:15:00 2021 +0200 +++ b/rust/hg-core/src/lib.rs Wed May 19 13:15:00 2021 +0200 @@ -83,6 +83,15 @@ Common(errors::HgError), } +impl fmt::Display for DirstateError { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + match self { + DirstateError::Map(error) => error.fmt(f), + DirstateError::Common(error) => error.fmt(f), + } + } +} + #[derive(Debug, derive_more::From)] pub enum PatternError { #[from]