doctor: Fix some emoji width display issues

Signed-off-by: Lann Martin <lann.martin@fermyon.com>
This commit is contained in:
Lann Martin 2023-05-08 10:42:09 -04:00
parent a9063f6765
commit c28707ef16
No known key found for this signature in database
GPG Key ID: A30EEE9905396642
1 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ impl DoctorCommand {
if should_treat {
match treatment.treat(patient).await {
Ok(()) => {
println!("{icon}Treatment applied!", icon = Emoji(" ", ""));
println!("{icon}Treatment applied!", icon = Emoji(" ", ""));
}
Err(err) => {
show_error("Treatment failed: ", err);
@ -61,7 +61,7 @@ impl DoctorCommand {
})
.await?;
if count == 0 {
println!("{icon}No problems found.", icon = Emoji(" ", ""));
println!("{icon}No problems found.", icon = Emoji(" ", ""));
}
Ok(())
}
@ -71,7 +71,7 @@ fn show_diagnosis(diagnosis: &dyn Diagnosis) {
let icon = if diagnosis.is_critical() {
Emoji("", "")
} else {
Emoji(" ", "")
Emoji(" ", "")
};
println!("\n{icon}Diagnosis: {}", diagnosis.description());
}