Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
joveian authored and sharkdp committed Nov 2, 2023
1 parent f08cc80 commit c8766e1
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 c8766e1

Please sign in to comment.