clippy++ and report internal error types from tools
This commit is contained in:
+10
-10
@@ -9,21 +9,21 @@ pub struct BandcampQueryArgs {
|
||||
pub query: String
|
||||
}
|
||||
|
||||
impl Into<Artifact> for bandcamp::Artist {
|
||||
fn into(self) -> Artifact {
|
||||
ArtifactBuilder::new(SourceID::Bandcamp).contents(Artist { name: self.name, bio: self.bio, location: self.location }).build()
|
||||
impl From<bandcamp::Artist> for Artifact {
|
||||
fn from(val: bandcamp::Artist) -> Self {
|
||||
ArtifactBuilder::new(SourceID::Bandcamp).contents(Artist { name: val.name, bio: val.bio, location: val.location }).build()
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<Artifact> for bandcamp::Album {
|
||||
fn into(self) -> Artifact {
|
||||
impl From<bandcamp::Album> for Artifact {
|
||||
fn from(val: bandcamp::Album) -> Self {
|
||||
ArtifactBuilder::new(SourceID::Bandcamp)
|
||||
.contents(Album {
|
||||
about: self.about,
|
||||
title: self.title,
|
||||
artist: self.band.name,
|
||||
credits: self.credits,
|
||||
release_date: Some(self.release_date)
|
||||
about: val.about,
|
||||
title: val.title,
|
||||
artist: val.band.name,
|
||||
credits: val.credits,
|
||||
release_date: Some(val.release_date)
|
||||
}).build()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user