Skip to content

Commit

Permalink
clippy: deny overflow_check_conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jul 10, 2024
1 parent db45478 commit 5beb5a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ needless-if = "allow"
unnecessary_unwrap = "allow"
explicit_auto_deref = "allow"
borrow_deref_ref = "allow"
overflow_check_conditional = "allow"
needless-match = "allow"
match-single-binding = "allow"

Expand Down
1 change: 0 additions & 1 deletion chips/sam4l/src/flashcalw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,6 @@ impl FLASHCALW {
// Check that address makes sense and buffer has room.
if address > (self.get_flash_size() as usize)
|| address + size > (self.get_flash_size() as usize)
|| address + size < size
|| buffer.len() < size
{
// invalid flash address
Expand Down

0 comments on commit 5beb5a0

Please sign in to comment.