mirror of
https://github.com/figsoda/mmtc
synced 2025-02-16 21:38:38 +00:00
replace referenced Vecs with referenced slices
This commit is contained in:
parent
901dbcdb83
commit
e2dfdeb615
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ pub fn render(
|
||||||
frame: &mut Frame<impl Backend>,
|
frame: &mut Frame<impl Backend>,
|
||||||
size: Rect,
|
size: Rect,
|
||||||
widget: &Widget,
|
widget: &Widget,
|
||||||
queue: &Vec<Track>,
|
queue: &[Track],
|
||||||
status: &Status,
|
status: &Status,
|
||||||
selected: usize,
|
selected: usize,
|
||||||
liststate: &mut ListState,
|
liststate: &mut ListState,
|
||||||
|
@ -370,7 +370,7 @@ fn flatten(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn patch_style(style: Style, styles: &Vec<AddStyle>) -> Style {
|
fn patch_style(style: Style, styles: &[AddStyle]) -> Style {
|
||||||
let mut style = style;
|
let mut style = style;
|
||||||
for add_style in styles {
|
for add_style in styles {
|
||||||
match add_style {
|
match add_style {
|
||||||
|
|
Loading…
Add table
Reference in a new issue