Skip to content

Commit de85d5c

Browse files
Samuelsillsclaude
andcommitted
Fix formatting to match CI rustfmt expectations
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 89e1b92 commit de85d5c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

library/alloc/src/vec/mod.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4562,15 +4562,19 @@ mod verify {
45624562
let arr: [i32; ARRAY_LEN] = kani::Arbitrary::any_array();
45634563
let mut v = Vec::from(&arr);
45644564
let n: usize = kani::any_where(|&x: &usize| x <= ARRAY_LEN);
4565-
unsafe { v.set_len(n); }
4565+
unsafe {
4566+
v.set_len(n);
4567+
}
45664568
assert!(v.len() == n);
45674569
}
45684570

45694571
#[kani::proof]
45704572
pub fn verify_append_elements() {
45714573
let mut v = Vec::from(&[1i32, 2]);
45724574
let other = [3i32, 4];
4573-
unsafe { v.append_elements(&other as *const [i32]); }
4575+
unsafe {
4576+
v.append_elements(&other as *const [i32]);
4577+
}
45744578
assert!(v.len() == 4);
45754579
}
45764580

@@ -4579,9 +4583,7 @@ mod verify {
45794583
let arr: [i32; ARRAY_LEN] = kani::Arbitrary::any_array();
45804584
let mut v = Vec::from(&arr);
45814585
v.reserve(2);
4582-
let (init, spare, len_ref) = unsafe {
4583-
v.split_at_spare_mut_with_len()
4584-
};
4586+
let (init, spare, len_ref) = unsafe { v.split_at_spare_mut_with_len() };
45854587
assert!(init.len() == ARRAY_LEN);
45864588
assert!(spare.len() >= 2);
45874589
assert!(*len_ref == ARRAY_LEN);

0 commit comments

Comments
 (0)