Skip to content

Commit 7c634ec

Browse files
committed
chore: Fixed CI
1 parent 55ff110 commit 7c634ec

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Show Active Rust Toolchain
2929
run: rustup show active-toolchain
3030

31+
- name: Install flatc dependency
32+
run: sudo apt-get install -y flatbuffers-compiler
33+
3134
- name: Run cargo test
3235
run: cargo test --verbose --workspace
3336

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl Flatc {
201201
.stdin(process::Stdio::null())
202202
.stdout(process::Stdio::piped())
203203
.stderr(process::Stdio::piped())
204-
.args(&["--version"]),
204+
.args(["--version"]),
205205
)?;
206206

207207
let output = child.wait_with_output()?;
@@ -222,7 +222,7 @@ impl Flatc {
222222
.chars()
223223
.next()
224224
.ok_or_else(|| err_other("version is empty"))?;
225-
if !first_char.is_digit(10) {
225+
if !first_char.is_ascii_digit() {
226226
return Err(err_other("version does not start with digit"));
227227
}
228228
Ok(Version {

0 commit comments

Comments
 (0)