mirror of
https://github.com/figsoda/mmtc
synced 2024-11-22 07:03:05 +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>,
|
||||
size: Rect,
|
||||
widget: &Widget,
|
||||
queue: &Vec<Track>,
|
||||
queue: &[Track],
|
||||
status: &Status,
|
||||
selected: usize,
|
||||
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;
|
||||
for add_style in styles {
|
||||
match add_style {
|
||||
|
|
Loading…
Reference in a new issue