fix: some clippy warnings

This commit is contained in:
qwjyh 2024-12-02 13:07:40 +09:00
parent 9240636e69
commit 877410cd19
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ use crate::storages::{
}; };
use anyhow::{anyhow, Context, Result}; use anyhow::{anyhow, Context, Result};
use clap::ValueEnum; use clap::ValueEnum;
use console::{style, Style, StyledObject}; use console::Style;
use core::panic; use core::panic;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::{collections::BTreeMap, fmt, fs, io, path}; use std::{collections::BTreeMap, fmt, fs, io, path};
@ -156,7 +156,7 @@ pub trait StorageExt {
) -> Result<()>; ) -> Result<()>;
/// Get parent /// 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; pub mod directory;

View file

@ -1,6 +1,6 @@
//! Online storage which is not a children of any physical drive. //! 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::Byte;
use byte_unit::UnitType; use byte_unit::UnitType;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};