Remove map_err
and use ?
This commit is contained in:
parent
e8d9941fee
commit
804313009d
1 changed files with 1 additions and 2 deletions
|
@ -46,8 +46,7 @@ impl RunCommand for Export {
|
|||
Format::BitWarden => {
|
||||
serde_json::to_string(&BitWardenPasswords::from(password_manager))
|
||||
}
|
||||
}
|
||||
.map_err(LprsError::from)?;
|
||||
}?;
|
||||
|
||||
fs::write(&self.path, exported_data).map_err(LprsError::from)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue