mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: Automatically fix cargo clippy issues added in 1.65 (stable)
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
+7
-7
@@ -294,8 +294,8 @@ impl MultiThreadBase for GdbStub {
|
||||
});
|
||||
Ok(())
|
||||
}
|
||||
Ok(s) => Err(format!("Unexpected response for ActiveVcpus: {:?}", s)),
|
||||
Err(e) => Err(format!("Failed to request ActiveVcpus: {:?}", e)),
|
||||
Ok(s) => Err(format!("Unexpected response for ActiveVcpus: {s:?}")),
|
||||
Err(e) => Err(format!("Failed to request ActiveVcpus: {e:?}")),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ impl MultiThreadResume for GdbStub {
|
||||
fn resume(&mut self) -> Result<(), Self::Error> {
|
||||
match self.vm_request(GdbRequestPayload::Resume, 0) {
|
||||
Ok(_) => Ok(()),
|
||||
Err(e) => Err(format!("Failed to resume the target: {:?}", e)),
|
||||
Err(e) => Err(format!("Failed to resume the target: {e:?}")),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -320,7 +320,7 @@ impl MultiThreadResume for GdbStub {
|
||||
self.single_step = false;
|
||||
}
|
||||
Err(e) => {
|
||||
return Err(format!("Failed to request SetSingleStep: {:?}", e));
|
||||
return Err(format!("Failed to request SetSingleStep: {e:?}"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -337,7 +337,7 @@ impl MultiThreadResume for GdbStub {
|
||||
}
|
||||
match self.vm_request(GdbRequestPayload::Resume, tid_to_cpuid(tid)) {
|
||||
Ok(_) => Ok(()),
|
||||
Err(e) => Err(format!("Failed to resume the target: {:?}", e)),
|
||||
Err(e) => Err(format!("Failed to resume the target: {e:?}")),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -363,13 +363,13 @@ impl MultiThreadSingleStep for GdbStub {
|
||||
self.single_step = true;
|
||||
}
|
||||
Err(e) => {
|
||||
return Err(format!("Failed to request SetSingleStep: {:?}", e));
|
||||
return Err(format!("Failed to request SetSingleStep: {e:?}"));
|
||||
}
|
||||
}
|
||||
}
|
||||
match self.vm_request(GdbRequestPayload::Resume, tid_to_cpuid(tid)) {
|
||||
Ok(_) => Ok(()),
|
||||
Err(e) => Err(format!("Failed to resume the target: {:?}", e)),
|
||||
Err(e) => Err(format!("Failed to resume the target: {e:?}")),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user