Skip to content

Commit 4e4a7c6

Browse files
Don't format generated files
1 parent b8519e9 commit 4e4a7c6

File tree

5 files changed

+3406
-8022
lines changed

5 files changed

+3406
-8022
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
- name: Rustfmt
3333
run: cargo fmt --all --check
3434
- name: Verify regenerated files
35-
run: ./scripts/unicode.py && rustfmt tables.rs && diff tables.rs src/tables.rs
35+
run: ./scripts/unicode.py && diff tables.rs src/tables.rs
3636
- name: Verify regenerated tests
37-
run: ./scripts/unicode_gen_breaktests.py && rustfmt testdata.rs && diff testdata.rs tests/testdata/mod.rs
37+
run: ./scripts/unicode_gen_breaktests.py && diff testdata.rs tests/testdata/mod.rs

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ pub use word::{UWordBoundIndices, UWordBounds, UnicodeWordIndices, UnicodeWords}
6464

6565
mod grapheme;
6666
mod sentence;
67+
#[rustfmt::skip]
6768
mod tables;
6869
mod word;
6970

0 commit comments

Comments
 (0)