diff options
| author | jakka <jakka@jakka.su> | 2025-09-08 16:53:52 +0300 |
|---|---|---|
| committer | jakka <jakka@jakka.su> | 2025-09-08 16:53:52 +0300 |
| commit | 4c56f91c88365a3c5ad890b02e8e9f52c314ea0c (patch) | |
| tree | 271e77228c6cd82ba1f5e940ef2df42f3bd59d63 /src/lib.rs | |
| parent | 2e261ac64cadf24b3edc679e58098951e56c1630 (diff) | |
in proccess of switching from serde to musli
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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") |
