Skip to content

Commit

Permalink
fix(data-parser): Rollback serialization to Postcard
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Oct 28, 2024
1 parent 3e5184d commit 322f6a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/fuel-data-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,20 @@ pub struct DataParser {

impl Default for DataParser {
/// Provides a default instance of `DataParser` with no compression strategy
/// and `SerializationType::Json`.
/// and `SerializationType::Postcard`.
///
/// # Examples
///
/// ```
/// use fuel_data_parser::{DataParser, SerializationType};
///
/// let parser = DataParser::default();
/// assert!(matches!(parser.serialization_type, SerializationType::Json));
/// assert!(matches!(parser.serialization_type, SerializationType::Postcard));
/// ```
fn default() -> Self {
Self {
compression_strategy: None,
serialization_type: SerializationType::Json,
serialization_type: SerializationType::Postcard,
}
}
}
Expand Down

0 comments on commit 322f6a9

Please sign in to comment.