@@ -420,27 +420,27 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
420420 // QEMU by defaults enables a ton of devices which slow down boot.
421421 cmd. arg ( "-nodefaults" ) ;
422422
423- cmd. args ( & [ "-device" , "virtio-rng-pci" ] ) ;
423+ cmd. args ( [ "-device" , "virtio-rng-pci" ] ) ;
424424
425425 match arch {
426426 UefiArch :: AArch64 => {
427427 // Use a generic ARM environment. Sadly qemu can't emulate a
428428 // RPi 4 like machine though.
429- cmd. args ( & [ "-machine" , "virt" ] ) ;
429+ cmd. args ( [ "-machine" , "virt" ] ) ;
430430
431431 // A72 is a very generic 64-bit ARM CPU in the wild.
432- cmd. args ( & [ "-cpu" , "cortex-a72" ] ) ;
432+ cmd. args ( [ "-cpu" , "cortex-a72" ] ) ;
433433 }
434434 UefiArch :: IA32 => { }
435435 UefiArch :: X86_64 => {
436436 // Use a modern machine.
437- cmd. args ( & [ "-machine" , "q35" ] ) ;
437+ cmd. args ( [ "-machine" , "q35" ] ) ;
438438
439439 // Multi-processor services protocol test needs exactly 4 CPUs.
440- cmd. args ( & [ "-smp" , "4" ] ) ;
440+ cmd. args ( [ "-smp" , "4" ] ) ;
441441
442442 // Allocate some memory.
443- cmd. args ( & [ "-m" , "256M" ] ) ;
443+ cmd. args ( [ "-m" , "256M" ] ) ;
444444
445445 // Enable hardware-accelerated virtualization if possible.
446446 if platform:: is_linux ( ) && !opt. disable_kvm && !opt. ci {
@@ -453,11 +453,11 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
453453 }
454454
455455 // Map the QEMU exit signal to port f4.
456- cmd. args ( & [ "-device" , "isa-debug-exit,iobase=0xf4,iosize=0x04" ] ) ;
456+ cmd. args ( [ "-device" , "isa-debug-exit,iobase=0xf4,iosize=0x04" ] ) ;
457457
458458 // OVMF debug builds can output information to a serial `debugcon`.
459459 // Only enable when debugging UEFI boot.
460- // cmd.args(& [
460+ // cmd.args([
461461 // "-debugcon",
462462 // "file:debug.log",
463463 // "-global",
@@ -489,9 +489,9 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
489489
490490 // When running in headless mode we don't have video, but we can still have
491491 // QEMU emulate a display and take screenshots from it.
492- cmd. args ( & [ "-vga" , "std" ] ) ;
492+ cmd. args ( [ "-vga" , "std" ] ) ;
493493 if opt. headless {
494- cmd. args ( & [ "-display" , "none" ] ) ;
494+ cmd. args ( [ "-display" , "none" ] ) ;
495495 }
496496
497497 let test_disk = tmp_dir. join ( "test_disk.fat.img" ) ;
@@ -511,14 +511,14 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
511511 // and send the response. That second will also receive logs up
512512 // until the test runner opens the handle in exclusive mode, but we
513513 // can just read and ignore those lines.
514- cmd. args ( & [ "-serial" , "stdio" ] ) ;
515- cmd. args ( & [ "-serial" , serial_pipe. qemu_arg ( ) ] ) ;
514+ cmd. args ( [ "-serial" , "stdio" ] ) ;
515+ cmd. args ( [ "-serial" , serial_pipe. qemu_arg ( ) ] ) ;
516516
517517 // Map the QEMU monitor to a pair of named pipes
518- cmd. args ( & [ "-qmp" , qemu_monitor_pipe. qemu_arg ( ) ] ) ;
518+ cmd. args ( [ "-qmp" , qemu_monitor_pipe. qemu_arg ( ) ] ) ;
519519
520520 // Attach network device with DHCP configured for PXE
521- cmd. args ( & [
521+ cmd. args ( [
522522 "-nic" ,
523523 "user,model=e1000,net=192.168.17.0/24,tftp=uefi-test-runner/tftp/,bootfile=fake-boot-file" ,
524524 ] ) ;
0 commit comments