Fix imports
All checks were successful
Cargo CI / Lint (pull_request) Successful in 1m5s
Cargo CI / Build and Test (pull_request) Successful in 1m59s

This commit is contained in:
Wojciech Kozlowski 2025-01-02 15:18:25 +01:00
parent 38fa7f82c6
commit ba0519d250
4 changed files with 7 additions and 11 deletions

View File

@ -1,17 +1,14 @@
use std::{
collections::HashMap,
fmt::{self, Debug, Display},
mem,
};
use crate::core::collection::{
album::Album,
album::{Album, AlbumLibId},
merge::{Merge, MergeId},
musicbrainz::{MbArtistRef, MbRefOption},
};
use super::album::AlbumLibId;
/// An artist.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Artist {

View File

@ -14,12 +14,10 @@ use crate::{
Collection, Error as CollectionError,
},
external::database::serde::common::{
AlbumLibIdDef, SerdeAlbumPrimaryType, SerdeAlbumSecondaryType,
AlbumLibIdDef, MbRefOptionDef, SerdeAlbumPrimaryType, SerdeAlbumSecondaryType,
},
};
use super::common::MbRefOptionDef;
#[derive(Debug, Deserialize)]
pub enum DeserializeDatabase {
V20250101(Vec<DeserializeArtist>),

View File

@ -4,13 +4,14 @@ use url::form_urlencoded;
use crate::{
collection::musicbrainz::Mbid,
external::musicbrainz::{
api::{Error, MusicBrainzClient, MB_BASE_URL},
api::{
Error, MbArtistMeta, MbReleaseGroupMeta, MusicBrainzClient, SerdeMbArtistMeta,
SerdeMbReleaseGroupMeta, MB_BASE_URL,
},
IMusicBrainzHttp,
},
};
use super::{MbArtistMeta, MbReleaseGroupMeta, SerdeMbArtistMeta, SerdeMbReleaseGroupMeta};
impl<Http: IMusicBrainzHttp> MusicBrainzClient<Http> {
pub fn lookup_artist(
&mut self,

View File

@ -3,7 +3,7 @@ use std::collections::HashMap;
use musichoard::collection::{album::Album, artist::Artist};
use ratatui::widgets::{ListState, Paragraph};
use super::display::UiDisplay;
use crate::tui::ui::display::UiDisplay;
struct InfoOverlay;