fix(contracts): apply rustfmt and fix conditional rsx actions #155
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mapps-179-contracts-fmt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI run #576 failed cargo fmt --check on src/pages/contracts.rs at lines 2036 and 2166. Running cargo fmt applies the rustfmt formatting (multi-line method chain and let-else block) to satisfy the check.
Once fmt passed, the subsequent CI steps (wasm check, clippy) revealed a latent compile error in the same file: the RateCardItemsCard
actions:attribute fedrsx! {...}/rsx! {}into aCardprop typedOption<Element>through an if/else, which the rsx! macro could not parse ("Expected an expression" at the rsx! block). Wrapping the branches asSome(rsx! {...})/Nonematches the prop type and compiles. fmt failed first in CI so this never surfaced on the original run, but it blocks the full check suite from going green.Cargo.lock is synced from 0.2.0 to 0.3.0 to match the package version in Cargo.toml (refreshed automatically by the build).
All four CI checks pass locally: cargo fmt --all --check, cargo clippy --all-targets -- -D warnings, cargo check --target wasm32-unknown-unknown, cargo test --lib (80 passed).
#MAPPS-179