File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 steps :
1010 - name : Pull source
1111 uses : actions/checkout@v2
12+ - run : sudo apt -y install pkg-config libssl-dev liblzma-dev
1213 - name : Run cargo test
1314 run : cargo test
1415 env :
3031 steps :
3132 - name : Pull source
3233 uses : actions/checkout@v2
34+ - run : sudo apt -y install pkg-config libssl-dev liblzma-dev
3335 - name : Run cargo clippy
3436 run : cargo clippy
3537 env :
Original file line number Diff line number Diff line change 1+ use std:: io:: BufReader ;
12use std:: io:: Read ;
23use std:: path:: Path ;
34
@@ -15,8 +16,7 @@ pub type Result<T> = std::result::Result<T, Error>;
1516
1617/// Is the binary at `path` an ELF?
1718pub fn is_elf ( path : & Path ) -> Result < bool > {
18- Ok ( File :: open ( path)
19- . context ( OpenSnafu ) ?
19+ Ok ( BufReader :: new ( File :: open ( path) . context ( OpenSnafu ) ?)
2020 . bytes ( )
2121 . take ( 4 )
2222 . collect :: < std:: io:: Result < Vec < u8 > > > ( )
You can’t perform that action at this time.
0 commit comments