We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77ffc79 commit 90a7872Copy full SHA for 90a7872
crates/vm/src/stdlib/ctypes/base.rs
@@ -1485,15 +1485,11 @@ impl Constructor for PyCField {
1485
1486
if let Some(bs) = bit_size_val {
1487
if bs < 0 {
1488
- return Err(
1489
- vm.new_value_error("number of bits invalid for bit field".to_string())
1490
- );
+ return Err(vm.new_value_error("number of bits invalid for bit field".to_string()));
1491
}
1492
let bo = bit_offset_val.unwrap_or(0);
1493
if bo < 0 {
1494
1495
- vm.new_value_error("bit_offset must be >= 0".to_string())
1496
+ return Err(vm.new_value_error("bit_offset must be >= 0".to_string()));
1497
1498
let type_bits = byte_size * 8;
1499
if bo + bs > type_bits {
0 commit comments