mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-01 04:11:20 +00:00
spi: run clippy --fix
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
parent
bf67559313
commit
27535e3ffd
@ -131,7 +131,7 @@ fn start_backend<D: 'static + SpiDevice + Send + Sync>(args: SpiArgs) -> Result<
|
||||
let (senders, receiver) = std::sync::mpsc::channel();
|
||||
|
||||
for (thread_id, socket) in config.generate_socket_paths().into_iter().enumerate() {
|
||||
let name = format!("vhu-vsock-spi-{:?}", thread_id);
|
||||
let name = format!("vhu-vsock-spi-{thread_id:?}");
|
||||
|
||||
let sender = senders.clone();
|
||||
|
||||
|
||||
@ -66,7 +66,7 @@ pub(crate) enum Error {
|
||||
|
||||
impl From<Error> for io::Error {
|
||||
fn from(e: Error) -> Self {
|
||||
io::Error::new(io::ErrorKind::Other, e)
|
||||
io::Error::other(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user