Skip to content

Commit 229cb5b

Browse files
andreeaflorescujiangliu
authored andcommitted
update rust-vmm-ci
The new container is using Rust 1.39. Fixed the warning of unneeded unsafe block and updated coverage. Signed-off-by: Andreea Florescu <[email protected]>
1 parent ee9a81a commit 229cb5b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

coverage_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"coverage_score": 91.9,
2+
"coverage_score": 92.0,
33
"exclude_path": "",
44
"crate_features": ""
55
}

src/ioctls/vm.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,9 +1326,7 @@ mod tests {
13261326
let mut irqchip = kvm_irqchip::default();
13271327
irqchip.chip_id = KVM_IRQCHIP_PIC_MASTER;
13281328
// Set the irq_base to a non-default value to check that set & get work.
1329-
unsafe {
1330-
irqchip.chip.pic.irq_base = 10;
1331-
}
1329+
irqchip.chip.pic.irq_base = 10;
13321330
assert!(vm.set_irqchip(&irqchip).is_ok());
13331331

13341332
// We initialize a dummy irq chip (`other_irqchip`) in which the

0 commit comments

Comments
 (0)