spi: run clippy --fix

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
Manos Pitsidianakis 2025-07-08 11:27:15 +03:00 committed by Stefano Garzarella
parent bf67559313
commit 27535e3ffd
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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)
}
}