Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpasmantier committed Oct 15, 2024
1 parent e36f0d4 commit 597838d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/television/ui/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ impl Layout {

/// TODO: add diagram
#[allow(dead_code)]
pub(crate) fn all_panes_centered(dimensions: Dimensions, area: Rect) -> Self {
pub(crate) fn all_panes_centered(
dimensions: Dimensions,
area: Rect,
) -> Self {
let main_block = centered_rect(dimensions.x, dimensions.y, area);
// split the main block into two vertical chunks
let chunks = layout::Layout::default()
Expand Down Expand Up @@ -75,7 +78,10 @@ impl Layout {

/// TODO: add diagram
#[allow(dead_code)]
pub(crate) fn results_only_centered(dimensions: Dimensions, area: Rect) -> Self {
pub(crate) fn results_only_centered(
dimensions: Dimensions,
area: Rect,
) -> Self {
let main_block = centered_rect(dimensions.x, dimensions.y, area);
// split the main block into two vertical chunks
let chunks = layout::Layout::default()
Expand Down

0 comments on commit 597838d

Please sign in to comment.