From 1f70e20c1767ce38b9d64cc196e09a1fe5925552 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Fri, 5 Sep 2025 09:21:15 +0200 Subject: [PATCH] misc: vhost_user_block: drop `extern crate`, use modern rust This commit is part of a series of similar commits. Signed-off-by: Philipp Schuster On-behalf-of: SAP philipp.schuster@sap.com --- vhost_user_block/src/lib.rs | 2 +- vhost_user_block/src/main.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/vhost_user_block/src/lib.rs b/vhost_user_block/src/lib.rs index 0123ac204..5ad48608e 100644 --- a/vhost_user_block/src/lib.rs +++ b/vhost_user_block/src/lib.rs @@ -21,7 +21,7 @@ use std::{convert, io, process, result}; use block::qcow::{self, ImageType, QcowFile}; use block::{Request, VirtioBlockConfig, build_serial}; use libc::EFD_NONBLOCK; -use log::*; +use log::{debug, error, info}; use option_parser::{OptionParser, OptionParserError, Toggle}; use thiserror::Error; use vhost::vhost_user::Listener; diff --git a/vhost_user_block/src/main.rs b/vhost_user_block/src/main.rs index 101d7131f..9d962e44b 100644 --- a/vhost_user_block/src/main.rs +++ b/vhost_user_block/src/main.rs @@ -8,8 +8,6 @@ // // SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause) -extern crate vhost_user_block; - use clap::{Arg, Command}; use vhost_user_block::start_block_backend;