Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Nov 5, 2024
1 parent 69de38d commit ba3c117
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions crates/dojo/bindgen/src/plugins/unity/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,15 +344,18 @@ public class {}_{} : ModelInstance {{
true,
enum_variant,
)],
CompositeType::Unknown if t.type_name() == "U256" => vec![(
format!("new FieldElement({}.high).Inner", arg_name),
false,
enum_variant.clone(),
), (
format!("new FieldElement({}.low).Inner", arg_name),
false,
enum_variant,
)],
CompositeType::Unknown if t.type_name() == "U256" => vec![
(
format!("new FieldElement({}.high).Inner", arg_name),
false,
enum_variant.clone(),
),
(
format!("new FieldElement({}.low).Inner", arg_name),
false,
enum_variant,
),
],

Check warning on line 358 in crates/dojo/bindgen/src/plugins/unity/mod.rs

View check run for this annotation

Codecov / codecov/patch

crates/dojo/bindgen/src/plugins/unity/mod.rs#L347-L358

Added lines #L347 - L358 were not covered by tests
CompositeType::Struct => {
let mut tokens = vec![];
t.inners.iter().for_each(|f| {
Expand Down

0 comments on commit ba3c117

Please sign in to comment.