Skip to content

Commit

Permalink
Merge pull request #7 from gregordecristoforo/main
Browse files Browse the repository at this point in the history
replace as_ref with as_slice to make code compile
  • Loading branch information
bast authored Feb 27, 2024
2 parents 1604dc7 + 72277da commit 4378b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ fn ui<B: Backend>(

let chunks = Layout::default()
.direction(Direction::Vertical)
.constraints(constraints_vec.as_ref())
.constraints(constraints_vec.as_slice())
.split(main_chunks[1]);

let mut hostnames = data.keys().collect::<Vec<_>>();
Expand Down

0 comments on commit 4378b03

Please sign in to comment.