File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 25
25
- name : TOML fmt
26
26
run : taplo fmt --check
27
27
- name : Clippy
28
- run : cargo clippy --all
28
+ run : |
29
+ cargo clippy --all -- -D warnings
30
+ cargo clippy --all --all-features -- -D warnings
31
+ cargo clippy --all --no-default-features -- -D warnings
29
32
build :
30
33
runs-on : ubuntu-latest
31
34
steps :
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ edition = "2018"
6
6
description = " Fuzzer for EVM."
7
7
license = " Apache-2.0"
8
8
9
+ [lints .rust ]
10
+ unexpected_cfgs = { level = " warn" , check-cfg = [' cfg(fuzzing)' ] }
11
+
9
12
[dependencies ]
10
13
honggfuzz = " 0.5"
11
14
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ use evm_core::Machine;
2
2
use std:: rc:: Rc ;
3
3
4
4
fn find_subsequence ( haystack : & [ u8 ] , needle : & [ u8 ] ) -> Option < usize > {
5
- return haystack
5
+ haystack
6
6
. windows ( needle. len ( ) )
7
- . position ( |window| window == needle) ;
7
+ . position ( |window| window == needle)
8
8
}
9
9
10
10
fn split_at_delim ( sequence : & [ u8 ] , delim : & [ u8 ] ) -> ( Vec < u8 > , Vec < u8 > ) {
You can’t perform that action at this time.
0 commit comments