Clippy
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 2m35s
Cargo CI / Lint (pull_request) Successful in 1m5s

This commit is contained in:
Wojciech Kozlowski 2024-09-07 23:38:12 +02:00
parent b1e764ffb9
commit 66681a7ea9
2 changed files with 5 additions and 8 deletions

View File

@ -336,9 +336,9 @@ mod tests {
seq: &mut Sequence,
arid: &Mbid,
album: &AlbumMeta,
matches: &Vec<Match<AlbumMeta>>,
matches: &[Match<AlbumMeta>],
) {
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<Match<ArtistMeta>>,
matches: &[Match<ArtistMeta>],
) {
let result = Ok(matches.clone());
let result = Ok(matches.to_owned());
api.expect_search_artist()
.with(predicate::eq(artist.clone()))
.times(1)

View File

@ -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 {