summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorjakka <jakka@jakka.su>2025-09-08 16:53:52 +0300
committerjakka <jakka@jakka.su>2025-09-08 16:53:52 +0300
commit4c56f91c88365a3c5ad890b02e8e9f52c314ea0c (patch)
tree271e77228c6cd82ba1f5e940ef2df42f3bd59d63 /src/lib.rs
parent2e261ac64cadf24b3edc679e58098951e56c1630 (diff)
in proccess of switching from serde to musli
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 50e4c25..a377da0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,12 +1,9 @@
pub mod client;
+pub mod types;
#[cfg(test)]
mod tests {
- use serde_json::json;
-
- use crate::client::HydrusPermissions;
-
- use super::*;
+ use crate::types::*;
#[test]
fn correct_permissions_number() {
@@ -33,7 +30,7 @@ mod tests {
HydrusPermissions::ImportAndEditFiles,
HydrusPermissions::SeeLocalPaths,
];
- let json_string = serde_json::to_string(&json!(perms)).unwrap();
+ let json_string = musli::json::to_string(&perms).unwrap();
let encoded = urlencoding::encode(&json_string);
assert_eq!(encoded, "%5B0%2C1%2C13%5D")