summaryrefslogtreecommitdiffstats
path: root/vendor/gix/src/commit.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:42 +0000
commit837b550238aa671a591ccf282dddeab29cadb206 (patch)
tree914b6b8862bace72bd3245ca184d374b08d8a672 /vendor/gix/src/commit.rs
parentAdding debian version 1.70.0+dfsg2-1. (diff)
downloadrustc-837b550238aa671a591ccf282dddeab29cadb206.tar.xz
rustc-837b550238aa671a591ccf282dddeab29cadb206.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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,