We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b946cc commit 0731b1bCopy full SHA for 0731b1b
build.rs
@@ -26,8 +26,7 @@ fn main() -> std::io::Result<()> {
26
.map(|e| e.unwrap())
27
.filter(|e| {
28
e.path()
29
- .extension()
30
- .map_or(false, |ext| ext.to_str().unwrap() == "proto")
+ .extension().is_some_and(|ext| ext.to_str().unwrap() == "proto")
31
})
32
{
33
let path = entry.path();
src/utils_internal.rs
@@ -420,6 +420,6 @@ mod tests {
420
let data = vec![0x00; 0x10000];
421
let serial_data = format_data_packet(data.into());
422
423
- assert_eq!(serial_data.is_err(), true);
+ assert!(serial_data.is_err());
424
}
425
0 commit comments