Skip to content

Commit 655b77b

Browse files
committed
chore: create rustfmt.toml, update CI to use nightly for fmt job
1 parent 54ba258 commit 655b77b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ of the PR were done in a specific way -->
2020

2121
* [ ] I've signed all my commits
2222
* [ ] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
23-
* [ ] I ran `cargo fmt` and `cargo clippy` before committing
23+
* [ ] I ran `cargo +nightly fmt` and `cargo clippy` before committing
2424

2525
#### New Features:
2626

.github/workflows/cont_integration.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ jobs:
126126
run: cargo check --target wasm32-unknown-unknown --no-default-features --features bdk_core/hashbrown,async
127127

128128
fmt:
129-
needs: prepare
130129
name: Rust fmt
131130
runs-on: ubuntu-latest
132131
steps:
@@ -137,12 +136,12 @@ jobs:
137136
- name: Install Rust toolchain
138137
uses: actions-rs/toolchain@v1
139138
with:
140-
toolchain: ${{ needs.prepare.outputs.rust_version }}
139+
toolchain: nightly
141140
override: true
142141
profile: minimal
143142
components: rustfmt
144143
- name: Check fmt
145-
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check
144+
run: cargo fmt --all --check
146145

147146
clippy_check:
148147
needs: prepare

rustfmt.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
comment_width = 100
2+
format_code_in_doc_comments = true
3+
wrap_comments = true

0 commit comments

Comments
 (0)