Skip to content

Commit cd2913b

Browse files
committed
chore: create rustfmt.toml, update CI to use nightly for fmt job
1 parent b707586 commit cd2913b

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
@@ -124,7 +124,6 @@ jobs:
124124
run: cargo check --target wasm32-unknown-unknown --no-default-features --features bdk_core/hashbrown,async
125125

126126
fmt:
127-
needs: prepare
128127
name: Rust fmt
129128
runs-on: ubuntu-latest
130129
steps:
@@ -135,12 +134,12 @@ jobs:
135134
- name: Install Rust toolchain
136135
uses: actions-rs/toolchain@v1
137136
with:
138-
toolchain: ${{ needs.prepare.outputs.rust_version }}
137+
toolchain: nightly
139138
override: true
140139
profile: minimal
141140
components: rustfmt
142141
- name: Check fmt
143-
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check
142+
run: cargo fmt --all --check
144143

145144
clippy_check:
146145
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)