comparison rust/hg-core/src/dirstate/status.rs @ 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 d880805d5442
children e62052d0f377
comparison
equal deleted inserted replaced
44561:368f85c5dfc0 44562:ece43c79333e
621 .flatten() 621 .flatten()
622 .map(|(filename, dispatch)| (Cow::Borrowed(filename), dispatch)), 622 .map(|(filename, dispatch)| (Cow::Borrowed(filename), dispatch)),
623 ); 623 );
624 } 624 }
625 625
626 #[derive(Debug)]
626 pub struct DirstateStatus<'a> { 627 pub struct DirstateStatus<'a> {
627 pub modified: Vec<Cow<'a, HgPath>>, 628 pub modified: Vec<Cow<'a, HgPath>>,
628 pub added: Vec<Cow<'a, HgPath>>, 629 pub added: Vec<Cow<'a, HgPath>>,
629 pub removed: Vec<Cow<'a, HgPath>>, 630 pub removed: Vec<Cow<'a, HgPath>>,
630 pub deleted: Vec<Cow<'a, HgPath>>, 631 pub deleted: Vec<Cow<'a, HgPath>>,
677 bad, 678 bad,
678 }, 679 },
679 ) 680 )
680 } 681 }
681 682
683 #[derive(Debug)]
682 pub enum StatusError { 684 pub enum StatusError {
683 IO(std::io::Error), 685 IO(std::io::Error),
684 Path(HgPathError), 686 Path(HgPathError),
685 Pattern(PatternError), 687 Pattern(PatternError),
686 } 688 }