refactor(draw_blocks.rs): remove unnecessary .as_ref() calls on constraints method to improve code readability
refactor(mod.rs): remove unnecessary .as_ref() calls on constraints method to improve code readability chore(draw_blocks.rs): format code using rustfmt to improve code readability chore(draw_blocks.rs): remove unnecessary indentation in NAME_TEXT constant to improve code readability chore(draw_blocks.rs): remove unnecessary fmt skip directive Signed-off-by: Daniel Boll <danielboll.academico@gmail.com>
This commit is contained in:
@@ -444,7 +444,7 @@ pub fn heading_bar(
|
||||
|
||||
let split_bar = Layout::default()
|
||||
.direction(Direction::Horizontal)
|
||||
.constraints(splits.as_ref())
|
||||
.constraints(splits)
|
||||
.split(area);
|
||||
if has_containers {
|
||||
// Draw loading icon, or not, and a prefix with a single space
|
||||
@@ -457,7 +457,7 @@ pub fn heading_bar(
|
||||
let container_splits = header_data.iter().map(|i| i.2).collect::<Vec<_>>();
|
||||
let headers_section = Layout::default()
|
||||
.direction(Direction::Horizontal)
|
||||
.constraints(container_splits.as_ref())
|
||||
.constraints(container_splits)
|
||||
.split(split_bar[1]);
|
||||
|
||||
// draw the actual header blocks
|
||||
|
||||
Reference in New Issue
Block a user