spi: run clippy --fix
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
parent
bf67559313
commit
27535e3ffd
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue