diff options
Diffstat (limited to 'vendor/gix-diff/src/tree/visit.rs')
-rw-r--r-- | vendor/gix-diff/src/tree/visit.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/vendor/gix-diff/src/tree/visit.rs b/vendor/gix-diff/src/tree/visit.rs index e94c432ae..82e38931d 100644 --- a/vendor/gix-diff/src/tree/visit.rs +++ b/vendor/gix-diff/src/tree/visit.rs @@ -59,20 +59,15 @@ impl Change { } /// What to do after a [Change] was [recorded][Visit::visit()]. -#[derive(Clone, Copy, PartialOrd, PartialEq, Ord, Eq, Hash)] +#[derive(Default, Clone, Copy, PartialOrd, PartialEq, Ord, Eq, Hash)] pub enum Action { /// Continue the traversal of changes. + #[default] Continue, /// Stop the traversal of changes, making this the last call to [visit(…)][Visit::visit()]. Cancel, } -impl Default for Action { - fn default() -> Self { - Action::Continue - } -} - impl Action { /// Returns true if this action means to stop the traversal. pub fn cancelled(&self) -> bool { |