Compare commits

..

No commits in common. "1d0b6920286266ca6b8143d2e8226289d34eaff0" and "561d57d9a2f74fd902abab482de868d9cb062239" have entirely different histories.

2 changed files with 3 additions and 28 deletions

View file

@ -86,23 +86,8 @@ impl Component for Progress {
&result, &text
);
if let Some(line) = self.lines.last_mut() {
let old_result = line.result.clone();
match (old_result, result.clone()) {
(DiagResult::Pass, _) => {
line.result = result;
line.text = text;
}
(DiagResult::Warn, DiagResult::Pass | DiagResult::Warn) => {
line.text = String::from("Unknown");
}
(DiagResult::Warn, DiagResult::Fail) => {
line.result = DiagResult::Fail;
line.text = String::from("Unknown");
}
(DiagResult::Fail, _) => {
line.text = String::from("Unknown");
}
};
line.result = result;
line.text = text;
}
}
Action::DiagLineEnd { text } => {

View file

@ -425,17 +425,7 @@ pub fn parse_registry_hives(
diag_group.result = String::from("OK");
diag_group.logs.push(Log {
label: String::from("Registry"),
summary: if hive.is_some() {
vec![DVLine {
line_parts: vec![
format!("Registry ({}): ", hive.unwrap()),
String::from("OK"),
],
line_colors: vec![Color::Reset, Color::Green],
}]
} else {
Vec::new()
},
summary: Vec::new(),
raw: output_text,
});
} else {