Skip to content

Commit

Permalink
replace as_ref with as_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
gregordecristoforo committed Feb 26, 2024
1 parent 1604dc7 commit 72277da
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 72277da

Please sign in to comment.