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};