Skip to content

Commit

Permalink
Fix rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten committed Oct 18, 2024
1 parent 693fb52 commit 58a195a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/sui-graphql-client/src/query_types/dynamic_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ 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) => mo.contents.as_ref().map(|o| (o.__typename.clone(), o.bcs.0.clone().into())),
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 58a195a

Please sign in to comment.