Skip to content

Commit 1fa057b

Browse files
authored
Merge pull request #834 from wasmx/rust-fmt
circleci: Add check for "cargo +nightly fmt"
2 parents 2bd08ab + 23aec9b commit 1fa057b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

circle.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,12 +682,20 @@ jobs:
682682
steps:
683683
- rust_restore_cargo_cache
684684
- rust_install_system_dependencies
685+
- rust_install_nightly
685686
- checkout
686687
- run:
687688
name: Check formatting
688689
command: |
689690
rustfmt --version
690691
cargo fmt --all -- --check
692+
- run:
693+
name: Check formatting (nightly)
694+
command: |
695+
cd bindings/rust
696+
echo "format_code_in_doc_comments = true" > rustfmt.toml
697+
cargo +nightly fmt --all -- --check
698+
rm rustfmt.toml
691699
- install_wabt
692700
- run:
693701
name: Check wat2wasm4tests

0 commit comments

Comments
 (0)