Skip to content

Commit

Permalink
Fix lints, error on lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-L2L committed Feb 22, 2024
1 parent 1efb463 commit 788f073
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .cargo/config
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[target.'cfg(all())']
rustflags = [

"-Dclippy::all",
"-Dlet_underscore_drop",
"-Aclippy::assertions_on_result_states",
"-Aclippy::let_unit_value",
]
2 changes: 1 addition & 1 deletion app/src/gui/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Deposit {
.add_enabled(amount.is_ok() && fee.is_ok(), egui::Button::new("deposit"))
.clicked()
{
let _ = app.deposit(
let _result = app.deposit(
amount.expect("should not happen"),
fee.expect("should not happen"),
);
Expand Down
2 changes: 1 addition & 1 deletion app/src/gui/miner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Miner {
let best_hash = &format!("{best_hash}")[0..8];
ui.monospace(format!("{best_hash}..."));
if ui.button("mine").clicked() {
let _ = app.mine();
let _result = app.mine();
}
}
}
4 changes: 2 additions & 2 deletions lib/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ impl Node {
bundle
};
if let Some(bundle) = bundle {
let _ = self
let () = self
.drivechain
.broadcast_withdrawal_bundle(bundle.transaction)
.await;
.await?;
}
Ok(())
}
Expand Down

0 comments on commit 788f073

Please sign in to comment.