Skip to content

Commit b2c27d6

Browse files
committed
loader: Use dereferenced value
Signed-off-by: Akira Moroo <[email protected]>
1 parent 3ad7018 commit b2c27d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fn compare_entry(file_name: &[u8], pattern: &[u8]) -> Result<bool, Error> {
159159
}
160160
// TODO
161161
b'[' => todo!("patterns containing `[...]` sets are not supported"),
162-
_ if p != f => return Ok(false),
162+
_ if *p != *f => return Ok(false),
163163
_ => (),
164164
}
165165
name_iter.next().ok_or(Error::UnterminatedString)?;

0 commit comments

Comments
 (0)