X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Fchannel.rs;h=eae81b9fc69c83c91919804bf18858b1ca66baed;hb=99d080dc3cddf85284ba4683b90da95e65b17ffc;hp=258352a21a4ad76a2bc4582b4ed5dba919b64700;hpb=73e7c3a4296fea6cedcd7c01d68d8cc9e5b625b2;p=rust.git diff --git a/src/bootstrap/channel.rs b/src/bootstrap/channel.rs index 258352a21a4..eae81b9fc69 100644 --- a/src/bootstrap/channel.rs +++ b/src/bootstrap/channel.rs @@ -13,8 +13,10 @@ 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,