Skip to content

Commit

Permalink
Add missing JSON feature gate (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenclaw900 authored Apr 25, 2022
1 parent 3ea5460 commit 57ede85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ impl Serializer {
{
#[allow(unreachable_patterns)]
match self.ser_method {
#[cfg(feature = "json")]
SerializationMethod::Json => self.json_serializer.deserialize_data(ser_data),
#[cfg(feature = "bincode")]
SerializationMethod::Bin => self.bincode_serializer.deserialize_data(ser_data),
Expand Down

0 comments on commit 57ede85

Please sign in to comment.