]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/channel.rs
Auto merge of #106034 - matthiaskrgr:rollup-2zpql33, r=matthiaskrgr
[rust.git] / src / bootstrap / channel.rs
index 258352a21a4ad76a2bc4582b4ed5dba919b64700..eae81b9fc69c83c91919804bf18858b1ca66baed 100644 (file)
 use crate::util::t;
 use crate::Build;
 
+#[derive(Clone, Default)]
 pub enum GitInfo {
     /// This is not a git repository.
+    #[default]
     Absent,
     /// This is a git repository.
     /// If the info should be used (`ignore_git` is false), this will be
@@ -25,6 +27,7 @@ pub enum GitInfo {
     RecordedForTarball(Info),
 }
 
+#[derive(Clone)]
 pub struct Info {
     pub commit_date: String,
     pub sha: String,