Skip to content

Commit f648004

Browse files
committed
lib: fix Clippy warnings
Signed-off-by: Daniel Maslowski <info@orangecms.org>
1 parent e385fe4 commit f648004

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub const EMPTY: u8 = 0xff;
2222
pub 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

3535
impl 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
}

0 commit comments

Comments
 (0)