summaryrefslogtreecommitdiffstats
path: root/vendor/gix/src/commit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix/src/commit.rs')
-rw-r--r--vendor/gix/src/commit.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/vendor/gix/src/commit.rs b/vendor/gix/src/commit.rs
index 10fa6f675..a58954a36 100644
--- a/vendor/gix/src/commit.rs
+++ b/vendor/gix/src/commit.rs
@@ -62,9 +62,10 @@ pub mod describe {
}
/// A selector to choose what kind of references should contribute to names.
- #[derive(Debug, Clone, Copy, PartialOrd, PartialEq, Ord, Eq, Hash)]
+ #[derive(Default, Debug, Clone, Copy, PartialOrd, PartialEq, Ord, Eq, Hash)]
pub enum SelectRef {
/// Only use annotated tags for names.
+ #[default]
AnnotatedTags,
/// Use all tags for names, annotated or plain reference.
AllTags,
@@ -146,12 +147,6 @@ pub mod describe {
}
}
- impl Default for SelectRef {
- fn default() -> Self {
- SelectRef::AnnotatedTags
- }
- }
-
/// A support type to allow configuring a `git describe` operation
pub struct Platform<'repo> {
pub(crate) id: gix_hash::ObjectId,