mirror of
https://github.com/qwjyh/xdbm
synced 2024-12-05 04:51:04 +09:00
fix: some clippy warnings
This commit is contained in:
parent
9240636e69
commit
877410cd19
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue