Skip to content

Commit

Permalink
build(repo): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 27, 2024
1 parent 3da850e commit 9768abe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/fuel-data-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ impl DataParser {
///
/// A `Result` containing either the deserialized data structure,
/// or an `Error` if deserialization fails.
pub fn deserialize<'a, T: DeserializeOwned>(
pub fn deserialize<T: DeserializeOwned>(
&self,
raw_data: &'a [u8],
raw_data: &[u8],
) -> Result<T, DataParserError> {
match self.serialization_type {
#[cfg(feature = "bincode")]
Expand All @@ -397,9 +397,9 @@ impl DataParser {
}

#[cfg(feature = "json")]
fn deserialize_json<'a, T: DeserializeOwned>(
fn deserialize_json<T: DeserializeOwned>(
&self,
raw_data: &'a [u8],
raw_data: &[u8],
) -> Result<T, DataParserError> {
serde_json::from_slice(raw_data)
.map_err(|e| DataParserError::DecodeJson(SerdeError::Json(e)))
Expand Down

0 comments on commit 9768abe

Please sign in to comment.