diff --git a/arch/src/serial.rs b/arch/src/serial.rs index 09bbf38555..bfd897ba96 100644 --- a/arch/src/serial.rs +++ b/arch/src/serial.rs @@ -291,16 +291,10 @@ mod tests { SerialParameters { type_: SerialType::Stdout, hardware: SerialHardware::VirtioConsole, - name: None, - path: None, - input: None, num: 1, console: true, - earlycon: false, stdin: true, - out_timestamp: false, - debugcon_port: 0, - pci_address: None, + ..Default::default() }, ); @@ -337,16 +331,10 @@ mod tests { SerialParameters { type_: SerialType::Stdout, hardware: SerialHardware::VirtioConsole, - name: None, - path: None, - input: None, num: 1, console: true, - earlycon: false, stdin: true, - out_timestamp: false, - debugcon_port: 0, - pci_address: None, + ..Default::default() }, ); @@ -356,16 +344,9 @@ mod tests { SerialParameters { type_: SerialType::Stdout, hardware: SerialHardware::Serial, - name: None, - path: None, - input: None, num: 1, - console: false, earlycon: true, - stdin: false, - out_timestamp: false, - debugcon_port: 0, - pci_address: None, + ..Default::default() }, ); @@ -403,16 +384,10 @@ mod tests { SerialParameters { type_: SerialType::Stdout, hardware: SerialHardware::VirtioConsole, - name: None, - path: None, - input: None, num: 1, - console: false, earlycon: true, stdin: true, - out_timestamp: false, - debugcon_port: 0, - pci_address: None, + ..Default::default() }, );