mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: clippy: add semicolon_if_nothing_returned
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
ea4f07d3bf
commit
b4c62bf159
@@ -26,9 +26,9 @@ impl BusDevice for FwDebugDevice {
|
||||
/// Upon read return the magic value to indicate that there is a debug port
|
||||
fn read(&mut self, _base: u64, _offset: u64, data: &mut [u8]) {
|
||||
if data.len() == 1 {
|
||||
data[0] = 0xe9
|
||||
data[0] = 0xe9;
|
||||
} else {
|
||||
error!("Invalid read size on debug port: {}", data.len())
|
||||
error!("Invalid read size on debug port: {}", data.len());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ impl BusDevice for FwDebugDevice {
|
||||
if data.len() == 1 {
|
||||
print!("{}", data[0] as char);
|
||||
} else {
|
||||
error!("Invalid write size on debug port: {}", data.len())
|
||||
error!("Invalid write size on debug port: {}", data.len());
|
||||
}
|
||||
|
||||
None
|
||||
|
||||
Reference in New Issue
Block a user