Skip to content

Commit

Permalink
Simplify deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT committed Dec 6, 2024
1 parent 2630cdc commit e1760c3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions fuel-tx/src/transaction/policies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,17 +323,6 @@ impl<'de> serde::Deserialize<'de> for Policies {
formatter.write_str("field identifier")
}

fn visit_u64<E>(self, value: u64) -> Result<Self::Value, E>
where
E: serde::de::Error,
{
match value {
0 => Ok(Field::Bits),
1 => Ok(Field::Values),
_ => Ok(Field::Ignore),
}
}

fn visit_str<E>(self, value: &str) -> Result<Self::Value, E>
where
E: serde::de::Error,
Expand Down

0 comments on commit e1760c3

Please sign in to comment.