Skip to content

Commit 1adfb30

Browse files
committed
Run rustfmt check on CI
1 parent dd86c6c commit 1adfb30

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@ jobs:
2222
rustup set profile minimal
2323
rustup override set ${{ matrix.version }}
2424
25+
- name: Rustfmt check
26+
if: matrix.version == '1.46.0'
27+
run: |
28+
rustup component add rustfmt
29+
cargo fmt --all -- --check
30+
2531
- name: Run `cargo test` on workspace
2632
run: cargo test --workspace
2733

2834
- name: phf_macros UI test
29-
if: matrix.version == '1.40.0'
35+
if: matrix.version == '1.46.0'
3036
working-directory: phf_macros
3137
run: cargo test --features=unicase -- --ignored --test-threads=1
3238

phf_macros/tests/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[test]
2-
#[ignore] // compiler error message format is different between 1.32.0 and nightly
2+
#[ignore] // diagnostics may be different between stable and nightly.
33
fn compile_test_unicase() {
44
let t = trybuild::TestCases::new();
55
t.compile_fail("tests/compile-fail-unicase/*.rs");

0 commit comments

Comments
 (0)