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
@@ -46,7 +46,7 @@ pub mod testing {
|
||||
|
||||
// Writes to the actual memory location.
|
||||
pub fn set(&self, val: T) {
|
||||
self.mem.write_obj(val, self.location).unwrap()
|
||||
self.mem.write_obj(val, self.location).unwrap();
|
||||
}
|
||||
|
||||
// This function returns a place in memory which holds a value of type U, and starts
|
||||
@@ -143,7 +143,7 @@ pub mod testing {
|
||||
|
||||
for _ in 1..qsize as usize {
|
||||
let x = ring.last().unwrap().next_place();
|
||||
ring.push(x)
|
||||
ring.push(x);
|
||||
}
|
||||
|
||||
let event = ring.last().unwrap().next_place();
|
||||
|
||||
Reference in New Issue
Block a user