aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-16 23:20:10 -0700
committerFuwn <[email protected]>2022-03-16 23:20:10 -0700
commit88a7bdac01cf8e4fd2aa526655cf0bec87213948 (patch)
tree45b872649b679ceaf7e7c0300cf2709eab23c315
parentdocs(readme): add senpy-ffi info (diff)
downloadsenpy-rs-88a7bdac01cf8e4fd2aa526655cf0bec87213948.tar.xz
senpy-rs-88a7bdac01cf8e4fd2aa526655cf0bec87213948.zip
refactor(src): use derive from serde
-rw-r--r--Cargo.toml3
-rw-r--r--src/lib.rs2
2 files changed, 2 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index e89b1f9..91edd53 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,5 +22,4 @@ reqwest = { version = "0.11.9", features = ["json", "blocking"] }
const_format = "0.2.22"
# Serialization
-serde = "1.0.136"
-serde_derive = "1.0.136"
+serde = { version = "1.0.136", features = ["derive"] }
diff --git a/src/lib.rs b/src/lib.rs
index 1288e4a..bc7fcaa 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -50,7 +50,7 @@ pub const SENPY_CLUB_API_URL: &str = const_format::formatcp!(
);
/// The response of the <https://api.senpy.club/v2/random> route
-#[derive(serde_derive::Serialize, serde_derive::Deserialize, Debug)]
+#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct Random {
pub language: String,
pub image: String,