mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: clippy: add manual_string_new
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
b4c62bf159
commit
fed010fcd1
@@ -4681,7 +4681,7 @@ mod unit_tests {
|
||||
// Test empty string serial (should be valid)
|
||||
let mut empty_serial_config = valid_config.clone();
|
||||
empty_serial_config.disks = Some(vec![DiskConfig {
|
||||
serial: Some("".to_string()),
|
||||
serial: Some(String::new()),
|
||||
..disk_fixture()
|
||||
}]);
|
||||
empty_serial_config.validate().unwrap();
|
||||
@@ -4755,7 +4755,7 @@ mod unit_tests {
|
||||
#[cfg(feature = "igvm")]
|
||||
igvm: None,
|
||||
#[cfg(feature = "sev_snp")]
|
||||
host_data: Some("".to_string()),
|
||||
host_data: Some(String::new()),
|
||||
#[cfg(feature = "fw_cfg")]
|
||||
fw_cfg_config: None,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user