diff --git a/Cargo.toml b/Cargo.toml index 11e81db..84a3fec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "megamind" -version = "0.9.0" +version = "0.10.0" edition = "2021" description = "A library for interacting with the Genius API." authors = ["Robert Yin "] diff --git a/src/models/artist.rs b/src/models/artist.rs index 74ca724..fd87fa8 100644 --- a/src/models/artist.rs +++ b/src/models/artist.rs @@ -69,7 +69,7 @@ pub struct ArtistCoreNoMetadata { pub id: u32, /// Genius IQ. #[serde(skip_serializing_if = "Option::is_none")] - pub iq: Option, + pub iq: Option, /// Artist image URL. pub image_url: String, /// Whether the artist is meme verified. diff --git a/src/models/user.rs b/src/models/user.rs index 0788718..135091c 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -64,7 +64,7 @@ pub struct UserCore { /// Genius ID. pub id: u32, /// Genius IQ. - pub iq: u32, + pub iq: i32, /// User name (not sure why this is a dupe of [`UserCore::name`]). pub login: String, /// User name. diff --git a/tests/integration.rs b/tests/integration.rs index f0bc1b3..8ae2c1c 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -179,7 +179,7 @@ async fn test_search( #[tokio::test] async fn test_song( - #[values(8145634, 2177076, 7756301, 6691103, 7327436, 5444192, 99999, 99999999)] id: u32, + #[values(2379727, 8145634, 2177076, 7756301, 6691103, 7327436, 5444192, 99999, 99999999)] id: u32, client: Client, reqwest_client: ReqwestClient, ) {