Skip to content

Commit

Permalink
Fix checked_conversions lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jan 9, 2025
1 parent 59a43e1 commit 63b785d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
checked_conversions = "allow"
default_trait_access = "allow"
explicit_into_iter_loop = "allow"
flat_map_option = "allow"
Expand Down
3 changes: 1 addition & 2 deletions bindgen/ir/var.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ impl ClangSubItemParser for Var {
c as u8
}
CChar::Raw(c) => {
assert!(c <= u64::from(u8::MAX));
c as u8
u8::try_from(c).unwrap()
}
};

Expand Down

0 comments on commit 63b785d

Please sign in to comment.