Skip to content

Commit

Permalink
Fixing linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
clayrosenthal committed Jan 16, 2025
1 parent 8b946cc commit 0731b1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ fn main() -> std::io::Result<()> {
.map(|e| e.unwrap())
.filter(|e| {
e.path()
.extension()
.map_or(false, |ext| ext.to_str().unwrap() == "proto")
.extension().is_some_and(|ext| ext.to_str().unwrap() == "proto")
})
{
let path = entry.path();
Expand Down
2 changes: 1 addition & 1 deletion src/utils_internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,6 @@ mod tests {
let data = vec![0x00; 0x10000];
let serial_data = format_data_packet(data.into());

assert_eq!(serial_data.is_err(), true);
assert!(serial_data.is_err());
}
}

0 comments on commit 0731b1b

Please sign in to comment.