From 877410cd1949f37017b2f0cb7060cceaf25039ea Mon Sep 17 00:00:00 2001 From: qwjyh Date: Mon, 2 Dec 2024 13:07:40 +0900 Subject: [PATCH] fix: some clippy warnings --- src/storages.rs | 4 ++-- src/storages/online_storage.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storages.rs b/src/storages.rs index d4b9dd4..69bdcfa 100644 --- a/src/storages.rs +++ b/src/storages.rs @@ -7,7 +7,7 @@ use crate::storages::{ }; use anyhow::{anyhow, Context, Result}; use clap::ValueEnum; -use console::{style, Style, StyledObject}; +use console::Style; use core::panic; use serde::{Deserialize, Serialize}; use std::{collections::BTreeMap, fmt, fs, io, path}; @@ -156,7 +156,7 @@ pub trait StorageExt { ) -> Result<()>; /// Get parent - fn parent<'a>(&'a self, storages: &'a Storages) -> Option<&Storage>; + fn parent<'a>(&'a self, storages: &'a Storages) -> Option<&'a Storage>; } pub mod directory; diff --git a/src/storages/online_storage.rs b/src/storages/online_storage.rs index 6c4d62c..afedf16 100644 --- a/src/storages/online_storage.rs +++ b/src/storages/online_storage.rs @@ -1,6 +1,6 @@ //! Online storage which is not a children of any physical drive. -use anyhow::{Context, Result}; +use anyhow::Result; use byte_unit::Byte; use byte_unit::UnitType; use serde::{Deserialize, Serialize};