Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
is-it-ayush committed Feb 26, 2024
1 parent a814b09 commit 4fba035
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
pub mod deserializer;
pub mod error;
pub mod serializer;
pub mod deserializer;

#[cfg(test)]
mod tests {
use crate::{deserializer, serializer};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use crate::{serializer, deserializer};

#[derive(Debug, Serialize, Deserialize, PartialEq)]
struct Primitives {
Expand Down Expand Up @@ -91,8 +91,7 @@ mod tests {
let bytes = serializer::to_bytes(&compound_types).unwrap();

// Deserialize
let deserialized_compound_types =
deserializer::from_bytes::<CompundTypes>(&bytes).unwrap();
let deserialized_compound_types = deserializer::from_bytes::<CompundTypes>(&bytes).unwrap();
assert_eq!(compound_types, deserialized_compound_types);
}

Expand Down

0 comments on commit 4fba035

Please sign in to comment.