Skip to content

Commit 5688166

Browse files
authored
Merge pull request #3802 from joostjager/rustfmt-skip
Replace rustfmt_excluded_files with rustfmt_skip cfg attribute
2 parents 101aa6f + d257b8a commit 5688166

37 files changed

+66
-76
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ jobs:
305305
run: |
306306
rustup component add rustfmt
307307
- name: Run rustfmt checks
308-
run: ci/rustfmt.sh
308+
run: cargo fmt --check
309309

310310
incremental-mutants:
311311
runs-on: ubuntu-latest

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ display fine at any tab-length display setting. We use `rustfmt` to establish
124124
uniform coding standards throughout the codebase. Please run
125125

126126
```bash
127-
./contrib/run-rustfmt.sh
127+
cargo +1.63.0 fmt
128128
```
129129

130130
before committing and pushing any changes, as compliance will also be checked

ci/rustfmt.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

contrib/run-rustfmt.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

lightning/src/chain/chaininterface.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(rustfmt, rustfmt_skip)]
2+
13
// This file is Copyright its original authors, visible in version control
24
// history.
35
//

lightning/src/chain/chainmonitor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(rustfmt, rustfmt_skip)]
2+
13
// This file is Copyright its original authors, visible in version control
24
// history.
35
//

lightning/src/chain/channelmonitor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(rustfmt, rustfmt_skip)]
2+
13
// This file is Copyright its original authors, visible in version control
24
// history.
35
//

lightning/src/chain/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(rustfmt, rustfmt_skip)]
2+
13
// This file is Copyright its original authors, visible in version control
24
// history.
35
//

lightning/src/chain/onchaintx.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(rustfmt, rustfmt_skip)]
2+
13
// This file is Copyright its original authors, visible in version control
24
// history.
35
//

lightning/src/chain/package.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(rustfmt, rustfmt_skip)]
2+
13
// This file is Copyright its original authors, visible in version control
24
// history.
35
//

0 commit comments

Comments
 (0)