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.
checked_conversions
1 parent 59a43e1 commit 63b785dCopy full SHA for 63b785d
Cargo.toml
@@ -57,7 +57,6 @@ cast_possible_truncation = "allow"
57
cast_possible_wrap = "allow"
58
cast_precision_loss = "allow"
59
cast_sign_loss = "allow"
60
-checked_conversions = "allow"
61
default_trait_access = "allow"
62
explicit_into_iter_loop = "allow"
63
flat_map_option = "allow"
bindgen/ir/var.rs
@@ -235,8 +235,7 @@ impl ClangSubItemParser for Var {
235
c as u8
236
}
237
CChar::Raw(c) => {
238
- assert!(c <= u64::from(u8::MAX));
239
- c as u8
+ u8::try_from(c).unwrap()
240
241
};
242
0 commit comments