Skip to content

Commit

Permalink
chore: format code with cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ckaznable committed Oct 1, 2024
1 parent 42b6b0a commit 0602413
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/widget/profile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ impl PokemonProfileWidget {
&& body.height.saturating_sub(param.ansi_height) < Self::SPACE_WITHOUT_ANSI_V
{
self.get_only_ansi_areas(body)
} else if body.height.saturating_sub(param.ansi_height) < Self::SPACE_WITHOUT_ANSI_V && body.height.saturating_sub(12) < Self::SPACE_WITHOUT_ANSI_V {
} else if body.height.saturating_sub(param.ansi_height) < Self::SPACE_WITHOUT_ANSI_V
&& body.height.saturating_sub(12) < Self::SPACE_WITHOUT_ANSI_V
{
self.get_h_rect_areas(body, param)
} else if body.width.saturating_sub(param.ansi_width) < Self::SPACE_WITHOUT_ANSI_H {
self.get_v_rect_areas(body, param)
Expand Down

0 comments on commit 0602413

Please sign in to comment.