Skip to content

Commit

Permalink
Merge pull request #17 from bobertoyin/allow-negative-iq
Browse files Browse the repository at this point in the history
allow numeric IQ fields to be negative
  • Loading branch information
bobertoyin authored Oct 12, 2023
2 parents 05c754c + 5c97505 commit 6132dff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <bobertoyin@gmail.com>"]
Expand Down
2 changes: 1 addition & 1 deletion src/models/artist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub struct ArtistCoreNoMetadata {
pub id: u32,
/// Genius IQ.
#[serde(skip_serializing_if = "Option::is_none")]
pub iq: Option<u32>,
pub iq: Option<i32>,
/// Artist image URL.
pub image_url: String,
/// Whether the artist is meme verified.
Expand Down
2 changes: 1 addition & 1 deletion src/models/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub struct UserCore<M> {
/// 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.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
Expand Down

0 comments on commit 6132dff

Please sign in to comment.