mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: clippy: add unnecessary_semicolon
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
06390342a6
commit
7cb73e9e56
@@ -223,7 +223,7 @@ impl BlockEpollHandler {
|
||||
queue.go_to_previous_position();
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
request.set_writeback(self.writeback.load(Ordering::Acquire));
|
||||
|
||||
@@ -124,7 +124,7 @@ impl EpollHelperHandler for NetCtrlEpollHandler {
|
||||
"Error getting notification state of control queue: {e}"
|
||||
)));
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
return Err(EpollHelperError::HandleEvent(anyhow!(
|
||||
|
||||
@@ -54,7 +54,7 @@ where
|
||||
thread_exit_evt.write(1).ok();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
})
|
||||
.map(|thread| epoll_threads.push(thread))
|
||||
.map_err(|e| {
|
||||
|
||||
@@ -1192,7 +1192,7 @@ impl PciDevice for VirtioPciDevice {
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
};
|
||||
}
|
||||
|
||||
// Try and activate the device if the driver status has changed
|
||||
if self.needs_activation() {
|
||||
|
||||
@@ -252,7 +252,7 @@ where
|
||||
self.last_fwd_cnt_to_peer = self.fwd_cnt;
|
||||
return Ok(());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// A credit update is basically a no-op, so we should only waste a perfectly fine RX
|
||||
@@ -380,7 +380,7 @@ where
|
||||
pkt.hdr()
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@@ -459,7 +459,7 @@ where
|
||||
// it does, so let's absorb it.
|
||||
}
|
||||
_ => self.kill(),
|
||||
};
|
||||
}
|
||||
0
|
||||
});
|
||||
self.fwd_cnt += Wrapping(flushed as u32);
|
||||
|
||||
@@ -753,7 +753,7 @@ impl VsockMuxer {
|
||||
conn.kill();
|
||||
warn!("vsock: unable to ack host connection: {err:?}");
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// If the connection wasn't previously scheduled for RX, add it to our RX queue.
|
||||
@@ -975,7 +975,7 @@ mod unit_tests {
|
||||
EpollListener::LocalStream(_) => local_lsn_count += 1,
|
||||
EpollListener::Connection { .. } => conn_lsn_count += 1,
|
||||
_ => (),
|
||||
};
|
||||
}
|
||||
}
|
||||
(local_lsn_count, conn_lsn_count)
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ impl MuxerRxQ {
|
||||
MuxerRx::ConnRx(_) => {
|
||||
self.synced = false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user