Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
joveian committed Oct 30, 2023
1 parent dbe7867 commit 0e3d89e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cli/hdcanvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl Canvas {
let p_bottom = self.pixel(2 * i_div_2 + 1, j);

match (p_top, p_bottom) {
(Some(top), Some(bottom)) =>
(Some(top), Some(bottom)) => {
if top == bottom {
write!(
out,
Expand All @@ -98,7 +98,8 @@ impl Canvas {
"{}",
self.brush.paint("▀", top.ansi_style().on(bottom))
)?
},
}
}
(Some(top), None) => write!(out, "{}", self.brush.paint("▀", top))?,
(None, Some(bottom)) => write!(out, "{}", self.brush.paint("▄", bottom))?,
(None, None) => write!(out, " ")?,
Expand Down

0 comments on commit 0e3d89e

Please sign in to comment.