Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten committed Oct 18, 2024
1 parent c9cecb8 commit 693fb52
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/sui-graphql-client/src/query_types/dynamic_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ impl DynamicFieldValue {
/// Return the typename and bcs of this dynamic field value.
pub fn type_bcs(&self) -> Option<(String, Vec<u8>)> {
match self {
DynamicFieldValue::MoveObject(mo) => match mo.contents.as_ref() {
Some(o) => Some((o.__typename.clone(), o.bcs.0.clone().into())),
None => None,
},
DynamicFieldValue::MoveObject(mo) => mo.contents.as_ref().map(|o| (o.__typename.clone(), o.bcs.0.clone().into())),
DynamicFieldValue::MoveValue(mv) => {
Some((mv.__typename.clone(), mv.bcs.0.clone().into()))
}
Expand Down

0 comments on commit 693fb52

Please sign in to comment.