Skip to content

Commit

Permalink
doctor: Fix some emoji width display issues
Browse files Browse the repository at this point in the history
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
  • Loading branch information
lann committed May 8, 2023
1 parent 2c946e2 commit f675e1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/doctor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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(())
}
Expand All @@ -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());
}
Expand Down

0 comments on commit f675e1b

Please sign in to comment.