Skip to content

Commit 5b5524f

Browse files
committed
cargo fmt: Fix formatting
1 parent cfd22dd commit 5b5524f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/vmm/src/lib.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -747,16 +747,13 @@ mod tests {
747747
use linux_loader::elf::Elf64_Ehdr;
748748
#[cfg(target_arch = "x86_64")]
749749
use linux_loader::loader::{self, bootparam::setup_header, elf::PvhBootCapability};
750+
use std::fs::write;
750751
use std::io::ErrorKind;
751752
#[cfg(target_arch = "x86_64")]
752753
use std::path::Path;
753754
use std::path::PathBuf;
754-
use std::fs::write;
755755
#[cfg(target_arch = "x86_64")]
756-
use vm_memory::{
757-
bytes::ByteValued,
758-
Address, GuestAddress, GuestMemory,
759-
};
756+
use vm_memory::{bytes::ByteValued, Address, GuestAddress, GuestMemory};
760757

761758
use vmm_sys_util::{tempdir::TempDir, tempfile::TempFile};
762759

@@ -1206,7 +1203,9 @@ mod tests {
12061203
.with_rtc(0x40001000, 0x1000)
12071204
.create_fdt()
12081205
.unwrap();
1209-
assert!(fdt.write_to_mem(vmm.guest_memory.as_ref(), fdt_offset).is_err());
1206+
assert!(fdt
1207+
.write_to_mem(vmm.guest_memory.as_ref(), fdt_offset)
1208+
.is_err());
12101209
}
12111210
}
12121211
#[test]

0 commit comments

Comments
 (0)