Skip to content

Commit

Permalink
chore: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed May 28, 2024
1 parent 347ecb9 commit 76a2277
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ impl RgbArgs {
eprint!("Loading stock ... ");
}

Stock::load(&stock_path).map_err(WalletError::from).or_else(|err| {
Stock::load(stock_path).map_err(WalletError::from).or_else(|err| {
if matches!(err, WalletError::Deserialize(DeserializeError::Decode(DecodeError::Io(ref err))) if err.kind() == ErrorKind::NotFound) {
if self.verbose > 1 {
eprint!("stock file is absent, creating a new one ... ");
}
let stock = Stock::default();
fs::create_dir_all(&stock_path)?;
stock.store(&stock_path)?;
fs::create_dir_all(stock_path)?;
stock.store(stock_path)?;
if self.verbose > 1 {
eprintln!("success");
}
Expand Down

0 comments on commit 76a2277

Please sign in to comment.