Skip to content

Commit 0731b1b

Browse files
committed
Fixing linting issues
1 parent 8b946cc commit 0731b1b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ fn main() -> std::io::Result<()> {
2626
.map(|e| e.unwrap())
2727
.filter(|e| {
2828
e.path()
29-
.extension()
30-
.map_or(false, |ext| ext.to_str().unwrap() == "proto")
29+
.extension().is_some_and(|ext| ext.to_str().unwrap() == "proto")
3130
})
3231
{
3332
let path = entry.path();

src/utils_internal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,6 @@ mod tests {
420420
let data = vec![0x00; 0x10000];
421421
let serial_data = format_data_packet(data.into());
422422

423-
assert_eq!(serial_data.is_err(), true);
423+
assert!(serial_data.is_err());
424424
}
425425
}

0 commit comments

Comments
 (0)