Skip to content

Commit c02bdb9

Browse files
authored
Fix clippy needless-borrow lint
``` error: this expression borrows a reference (`&Extent`) that is immediately dereferenced by the compiler --> mp4parse/src/lib.rs:907:51 | 907 | if let Some(slice) = mdat.get(&extent) { | ^^^^^^^ help: change this to: `extent` | = note: `-D clippy::needless-borrow` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow ```
1 parent 2832710 commit c02bdb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mp4parse/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ impl AvifContext {
902902
match &item.image_data {
903903
IsobmffItem::Location(extent) => {
904904
for mdat in &self.item_storage {
905-
if let Some(slice) = mdat.get(&extent) {
905+
if let Some(slice) = mdat.get(extent) {
906906
return slice;
907907
}
908908
}

0 commit comments

Comments
 (0)