File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ pub struct State {
7070fn 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 ) ) ?;
You can’t perform that action at this time.
0 commit comments