diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-03-02 18:23:08 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-03-03 18:59:26 +0100 |
| commit | 7f5bdf3ccbe4fb1df28da205777cee476953a937 (patch) | |
| tree | 891705f2e4ab811174a9d7df129e12b403f10682 /src/bootstrap | |
| parent | 45660949132222ba7ec0905649b2affd68e0e13c (diff) | |
| download | rust-7f5bdf3ccbe4fb1df28da205777cee476953a937.tar.gz rust-7f5bdf3ccbe4fb1df28da205777cee476953a937.zip | |
Remove some dead code from toolstate.rs
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/toolstate.rs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/bootstrap/toolstate.rs b/src/bootstrap/toolstate.rs index 2394c5e020d..08d08158062 100644 --- a/src/bootstrap/toolstate.rs +++ b/src/bootstrap/toolstate.rs @@ -24,7 +24,7 @@ const OS: Option<&str> = None; type ToolstateData = HashMap<Box<str>, ToolState>; -#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq, PartialOrd)] +#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, PartialOrd)] #[serde(rename_all = "kebab-case")] /// Whether a tool can be compiled, tested or neither pub enum ToolState { @@ -50,13 +50,6 @@ impl fmt::Display for ToolState { } } -impl Default for ToolState { - fn default() -> Self { - // err on the safe side - ToolState::BuildFail - } -} - /// Number of days after the last promotion of beta. /// Its value is 41 on the Tuesday where "Promote master to beta (T-2)" happens. /// The Wednesday after this has value 0. @@ -466,13 +459,11 @@ fn publish_test_results(current_toolstate: &ToolstateData) { t!(fs::write(&history_path, file)); } -#[derive(Debug, Serialize, Deserialize)] +#[derive(Debug, Deserialize)] struct RepoState { tool: String, windows: ToolState, linux: ToolState, - commit: String, - datetime: String, } impl RepoState { |
