diff --git a/src/tui/app/machine/browse.rs b/src/tui/app/machine/browse.rs index 7f87803..770cca4 100644 --- a/src/tui/app/machine/browse.rs +++ b/src/tui/app/machine/browse.rs @@ -336,9 +336,9 @@ mod tests { seq: &mut Sequence, arid: &Mbid, album: &AlbumMeta, - matches: &Vec>, + matches: &[Match], ) { - let result = Ok(matches.clone()); + let result = Ok(matches.to_owned()); api.expect_search_release_group() .with(predicate::eq(arid.clone()), predicate::eq(album.clone())) .times(1) @@ -401,9 +401,9 @@ mod tests { api: &mut MockIMusicBrainz, seq: &mut Sequence, artist: &ArtistMeta, - matches: &Vec>, + matches: &[Match], ) { - let result = Ok(matches.clone()); + let result = Ok(matches.to_owned()); api.expect_search_artist() .with(predicate::eq(artist.clone())) .times(1) diff --git a/src/tui/ui/minibuffer.rs b/src/tui/ui/minibuffer.rs index 2e482a8..1d92c40 100644 --- a/src/tui/ui/minibuffer.rs +++ b/src/tui/ui/minibuffer.rs @@ -57,10 +57,7 @@ impl Minibuffer<'_> { columns, }, AppState::Fetch(()) => Minibuffer { - paragraphs: vec![ - Paragraph::new(format!("fetching...")), - Paragraph::new(format!("q: abort")), - ], + paragraphs: vec![Paragraph::new("fetching..."), Paragraph::new("q: abort")], columns: 2, }, AppState::Matches(public) => Minibuffer {