Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaedus committed Jun 7, 2023
1 parent c823145 commit 30c200d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api_models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ impl TryFrom<Album> for SongBatch {
type Error = ();

fn try_from(mut album: Album) -> Result<Self, Self::Error> {
let tracks = std::mem::replace(&mut album.tracks, None).ok_or(())?;
let tracks = album.tracks.take().ok_or(())?;
Ok((tracks, &album).into())
}
}
Expand Down

0 comments on commit 30c200d

Please sign in to comment.