Skip to content

Commit 312d13b

Browse files
committed
Enforce formatting in ci
1 parent de5ec67 commit 312d13b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- name: Run tests
2121
run: cargo nextest run --all-features
2222

23+
- name: Check formatting
24+
run: cargo fmt --all -- --check
25+
2326
- name: Check clippy
2427
run: cargo clippy --all-targets --all-features
2528

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,11 @@ impl Display for ParsingError {
374374
// `os_str_display` is stabilised in 1.87.0
375375
// https://github.com/rust-lang/rust/issues/120048
376376
// use `value.display()` if you don't care about rust <1.87.0
377-
write!(f, "leftover value: {}", String::from_utf8_lossy(value.as_bytes()))
377+
write!(
378+
f,
379+
"leftover value: {}",
380+
String::from_utf8_lossy(value.as_bytes())
381+
)
378382
}
379383

380384
Self::UnexpectedArg {

0 commit comments

Comments
 (0)