File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub const EMPTY: u8 = 0xff;
2222pub trait Removables {
2323 /// Get removable ranges relative to the start of a section or directory.
2424 /// The respective section/directory needs to know its own offset.
25- fn removables ( & self , retention_list : & Vec < String > ) -> Vec < core:: ops:: Range < usize > > ;
25+ fn removables ( & self , retention_list : & [ String ] ) -> Vec < core:: ops:: Range < usize > > ;
2626}
2727
2828#[ derive( Serialize , Deserialize , Clone , Debug ) ]
@@ -34,7 +34,7 @@ pub struct Firmware {
3434
3535impl Firmware {
3636 pub fn parse ( data : & [ u8 ] , debug : bool ) -> Self {
37- let ifd = IFD :: parse ( & data) ;
37+ let ifd = IFD :: parse ( data) ;
3838 let me = match & ifd {
3939 Ok ( ifd) => {
4040 let me_region = ifd. regions . me_range ( ) ;
@@ -52,9 +52,9 @@ impl Firmware {
5252 }
5353
5454 pub fn scan ( data : & [ u8 ] , debug : bool ) -> Self {
55- let ifd = IFD :: parse ( & data) ;
56- let me = ME :: scan ( & data, debug) ;
57- let fit = Fit :: new ( & data) ;
55+ let ifd = IFD :: parse ( data) ;
56+ let me = ME :: scan ( data, debug) ;
57+ let fit = Fit :: new ( data) ;
5858 Self { ifd, me, fit }
5959 }
6060}
You can’t perform that action at this time.
0 commit comments