chore: Fix lints errors
All checks were successful
Rust CI / Rust CI (pull_request) Successful in 1m15s
All checks were successful
Rust CI / Rust CI (pull_request) Successful in 1m15s
This commit is contained in:
parent
cf5dca2111
commit
b4b467bdfc
2 changed files with 11 additions and 10 deletions
|
@ -44,10 +44,8 @@ impl RunCommand for Import {
|
||||||
{
|
{
|
||||||
let imported_passwords_len = match self.format {
|
let imported_passwords_len = match self.format {
|
||||||
Format::Lprs => {
|
Format::Lprs => {
|
||||||
let vaults = Vaults::try_reload(
|
let vaults =
|
||||||
self.path.to_path_buf(),
|
Vaults::try_reload(self.path, vault_manager.master_password.to_vec())?;
|
||||||
vault_manager.master_password.to_vec(),
|
|
||||||
)?;
|
|
||||||
let vaults_len = vaults.vaults.len();
|
let vaults_len = vaults.vaults.len();
|
||||||
|
|
||||||
vault_manager.vaults.extend(vaults.vaults);
|
vault_manager.vaults.extend(vaults.vaults);
|
||||||
|
|
|
@ -187,11 +187,14 @@ impl Vaults<Plain> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ToString for Format {
|
impl std::fmt::Display for Format {
|
||||||
fn to_string(&self) -> String {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
self.to_possible_value()
|
write!(
|
||||||
.expect("There is no skiped values")
|
f,
|
||||||
.get_name()
|
"{}",
|
||||||
.to_owned()
|
self.to_possible_value()
|
||||||
|
.expect("There is no skiped values")
|
||||||
|
.get_name()
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue