From 414a5b3a3a20300efbc12f982be71780506de331 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Mon, 2 Dec 2024 10:58:05 +0100 Subject: [PATCH] remove redundant imports Fixes the single_component_path_imports clippy lint: ``` warning: this import is redundant --> proxmox-file-restore/src/block_driver_qemu.rs:15:1 | 15 | use proxmox_systemd; | ^^^^^^^^^^^^^^^^^^^^ help: remove it entirely | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports = note: `#[warn(clippy::single_component_path_imports)]` on by default warning: this import is redundant --> proxmox-backup-client/src/mount.rs:19:1 | 19 | use proxmox_systemd; | ^^^^^^^^^^^^^^^^^^^^ help: remove it entirely | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports = note: `#[warn(clippy::single_component_path_imports)]` on by default ``` Signed-off-by: Maximiliano Sandoval --- proxmox-backup-client/src/mount.rs | 1 - proxmox-file-restore/src/block_driver_qemu.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/proxmox-backup-client/src/mount.rs b/proxmox-backup-client/src/mount.rs index 4929f5e5..a5fee832 100644 --- a/proxmox-backup-client/src/mount.rs +++ b/proxmox-backup-client/src/mount.rs @@ -16,7 +16,6 @@ use tokio::signal::unix::{signal, SignalKind}; use proxmox_router::{cli::*, ApiHandler, ApiMethod, RpcEnvironment}; use proxmox_schema::*; use proxmox_sortable_macro::sortable; -use proxmox_systemd; use pbs_api_types::{ArchiveType, BackupArchiveName, BackupNamespace}; use pbs_client::tools::key_source::get_encryption_key_password; diff --git a/proxmox-file-restore/src/block_driver_qemu.rs b/proxmox-file-restore/src/block_driver_qemu.rs index adc6ccc7..2e19d08e 100644 --- a/proxmox-file-restore/src/block_driver_qemu.rs +++ b/proxmox-file-restore/src/block_driver_qemu.rs @@ -12,7 +12,6 @@ use serde::{Deserialize, Serialize}; use serde_json::json; use proxmox_sys::fs::lock_file; -use proxmox_systemd; use pbs_api_types::{file_restore::FileRestoreFormat, BackupDir, BackupNamespace}; use pbs_client::{BackupRepository, VsockClient, DEFAULT_VSOCK_PORT};