Skip to content

Commit 90a7872

Browse files
Auto-format: cargo fmt --all
1 parent 77ffc79 commit 90a7872

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

crates/vm/src/stdlib/ctypes/base.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,15 +1485,11 @@ impl Constructor for PyCField {
14851485

14861486
if let Some(bs) = bit_size_val {
14871487
if bs < 0 {
1488-
return Err(
1489-
vm.new_value_error("number of bits invalid for bit field".to_string())
1490-
);
1488+
return Err(vm.new_value_error("number of bits invalid for bit field".to_string()));
14911489
}
14921490
let bo = bit_offset_val.unwrap_or(0);
14931491
if bo < 0 {
1494-
return Err(
1495-
vm.new_value_error("bit_offset must be >= 0".to_string())
1496-
);
1492+
return Err(vm.new_value_error("bit_offset must be >= 0".to_string()));
14971493
}
14981494
let type_bits = byte_size * 8;
14991495
if bo + bs > type_bits {

0 commit comments

Comments
 (0)