diff options
| author | Fuwn <[email protected]> | 2022-03-16 23:20:10 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-16 23:20:10 -0700 |
| commit | 88a7bdac01cf8e4fd2aa526655cf0bec87213948 (patch) | |
| tree | 45b872649b679ceaf7e7c0300cf2709eab23c315 | |
| parent | docs(readme): add senpy-ffi info (diff) | |
| download | senpy-rs-88a7bdac01cf8e4fd2aa526655cf0bec87213948.tar.xz senpy-rs-88a7bdac01cf8e4fd2aa526655cf0bec87213948.zip | |
refactor(src): use derive from serde
| -rw-r--r-- | Cargo.toml | 3 | ||||
| -rw-r--r-- | src/lib.rs | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -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"] } @@ -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, |