Skip to content

Commit

Permalink
chore: Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
frol committed Feb 10, 2024
1 parent 55ff110 commit 7c634ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
- name: Show Active Rust Toolchain
run: rustup show active-toolchain

- name: Install flatc dependency
run: sudo apt-get install -y flatbuffers-compiler

- name: Run cargo test
run: cargo test --verbose --workspace

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl Flatc {
.stdin(process::Stdio::null())
.stdout(process::Stdio::piped())
.stderr(process::Stdio::piped())
.args(&["--version"]),
.args(["--version"]),
)?;

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

0 comments on commit 7c634ec

Please sign in to comment.