diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c16cc49..057ddcd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/src/lib.rs b/src/lib.rs index dbb6b5b..49c25f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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()?; @@ -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 {