Skip to content

Commit d6e0e9c

Browse files
committed
chore: fmt
1 parent 16104c7 commit d6e0e9c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

vmm/src/app/qemu.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub struct State {
7070
fn create_hd(
7171
image_file: impl AsRef<Path>,
7272
backing_file: Option<impl AsRef<Path>>,
73-
size: &str
73+
size: &str,
7474
) -> Result<()> {
7575
let mut command = Command::new("qemu-img");
7676
command.arg("create").arg("-f").arg("qcow2");
@@ -341,11 +341,7 @@ impl VmConfig {
341341
let disk_size = format!("{}G", self.manifest.disk_size);
342342
let hda_path = workdir.hda_path();
343343
if !hda_path.exists() {
344-
create_hd(
345-
&hda_path,
346-
self.image.hda.as_ref(),
347-
&disk_size
348-
)?;
344+
create_hd(&hda_path, self.image.hda.as_ref(), &disk_size)?;
349345
}
350346
if !cfg.user.is_empty() {
351347
fs_err::set_permissions(&hda_path, Permissions::from_mode(0o660))?;

0 commit comments

Comments
 (0)