Skip to content

Commit 5b8a649

Browse files
committed
add fmt check
1 parent a122942 commit 5b8a649

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ env:
88
CARGO_TERM_COLOR: always
99

1010
jobs:
11+
fmt:
12+
name: fmt
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Install rustfmt from the rust stable toolchain
18+
uses: dtolnay/rust-toolchain@stable
19+
with:
20+
components: rustfmt
21+
- name: Rustfmt
22+
run: cargo fmt --all -- --check
1123
build_and_test:
1224
name: Sugondat - latest
1325
runs-on: self-hosted

sugondat-serde-util/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ pub mod bytes32_hex {
338338
],
339339
})
340340
.unwrap(),
341-
r#"{"bytes":"0x1234567812345678123456781234567812345678123456781234567812345678"}"#.to_string()
341+
r#"{"bytes":"0x1234567812345678123456781234567812345678123456781234567812345678"}"#
342+
.to_string()
342343
);
343344
}
344345
}

0 commit comments

Comments
 (0)