mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: Automatic beta clippy fixes
e.g. cargo clippy --all --tests --all-targets --fix --features=.. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -415,7 +415,7 @@ impl Vmm {
|
||||
}
|
||||
|
||||
fn setup_signal_handler(&mut self) -> Result<()> {
|
||||
let signals = Signals::new(&Self::HANDLED_SIGNALS);
|
||||
let signals = Signals::new(Self::HANDLED_SIGNALS);
|
||||
match signals {
|
||||
Ok(signals) => {
|
||||
self.signals = Some(signals.handle());
|
||||
|
||||
@@ -282,9 +282,9 @@ impl Aml for PciDsmMethod {
|
||||
let uuid = Uuid::parse_str("E5C937D0-3553-4D7A-9117-EA4D19C3434D").unwrap();
|
||||
let (uuid_d1, uuid_d2, uuid_d3, uuid_d4) = uuid.as_fields();
|
||||
let mut uuid_buf = vec![];
|
||||
uuid_buf.extend(&uuid_d1.to_le_bytes());
|
||||
uuid_buf.extend(&uuid_d2.to_le_bytes());
|
||||
uuid_buf.extend(&uuid_d3.to_le_bytes());
|
||||
uuid_buf.extend(uuid_d1.to_le_bytes());
|
||||
uuid_buf.extend(uuid_d2.to_le_bytes());
|
||||
uuid_buf.extend(uuid_d3.to_le_bytes());
|
||||
uuid_buf.extend(uuid_d4);
|
||||
aml::Method::new(
|
||||
"_DSM".into(),
|
||||
|
||||
@@ -2078,7 +2078,7 @@ impl Vm {
|
||||
|
||||
fn setup_signal_handler(&mut self) -> Result<()> {
|
||||
let console = self.device_manager.lock().unwrap().console().clone();
|
||||
let signals = Signals::new(&Vm::HANDLED_SIGNALS);
|
||||
let signals = Signals::new(Vm::HANDLED_SIGNALS);
|
||||
match signals {
|
||||
Ok(signals) => {
|
||||
self.signals = Some(signals.handle());
|
||||
@@ -2938,7 +2938,7 @@ impl Transportable for Vm {
|
||||
self.memory_manager
|
||||
.lock()
|
||||
.unwrap()
|
||||
.send(&*memory_manager_snapshot.clone(), destination_url)?;
|
||||
.send(&memory_manager_snapshot.clone(), destination_url)?;
|
||||
} else {
|
||||
return Err(MigratableError::Restore(anyhow!(
|
||||
"Missing memory manager snapshot"
|
||||
|
||||
Reference in New Issue
Block a user