File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 28
28
- name : Show Active Rust Toolchain
29
29
run : rustup show active-toolchain
30
30
31
+ - name : Install flatc dependency
32
+ run : sudo apt-get install -y flatbuffers-compiler
33
+
31
34
- name : Run cargo test
32
35
run : cargo test --verbose --workspace
33
36
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ impl Flatc {
201
201
. stdin ( process:: Stdio :: null ( ) )
202
202
. stdout ( process:: Stdio :: piped ( ) )
203
203
. stderr ( process:: Stdio :: piped ( ) )
204
- . args ( & [ "--version" ] ) ,
204
+ . args ( [ "--version" ] ) ,
205
205
) ?;
206
206
207
207
let output = child. wait_with_output ( ) ?;
@@ -222,7 +222,7 @@ impl Flatc {
222
222
. chars ( )
223
223
. next ( )
224
224
. ok_or_else ( || err_other ( "version is empty" ) ) ?;
225
- if !first_char. is_digit ( 10 ) {
225
+ if !first_char. is_ascii_digit ( ) {
226
226
return Err ( err_other ( "version does not start with digit" ) ) ;
227
227
}
228
228
Ok ( Version {
You can’t perform that action at this time.
0 commit comments