Skip to content

Commit

Permalink
chore: bump version to 0.1.1
Browse files Browse the repository at this point in the history
- fix a ugly error.
  • Loading branch information
AndrielFR committed Jan 2, 2025
1 parent 4a3f9a3 commit 1308719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust-anilist"
version = "0.1.0"
version = "0.1.1"
authors = ["Andriel Ferreira <andrielkogama2@gmail.com>"]
license = "MTI"
description = """
Expand All @@ -13,7 +13,7 @@ categories = ["api-binding"]
edition = "2021"

[dependencies]
tokio = { version = "^1.40", features = ["macros", "rt-multi-thread"] }
serde = { version = "^1.0", features = ["derive"] }
reqwest = "^0.12"
serde_json = "^1.0"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
serde = { version = "1", features = ["derive"] }
reqwest = "*"
serde_json = "1"
4 changes: 1 addition & 3 deletions src/models/character.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ pub struct Character {
impl Character {
pub async fn load_full(self) -> Result<Self> {
if !self.is_full_loaded {
let mut character = Client::default()
.get_character(serde_json::json!({"id": self.id}))
.await?;
let mut character = Client::default().get_character(self.id).await?;
character.is_full_loaded = true;

Ok(character)
Expand Down

0 comments on commit 1308719

Please sign in to comment.