Add clippy allow
This commit is contained in:
parent
92f1d2ad0f
commit
c80f8d8a53
@ -458,6 +458,7 @@ impl Bot {
|
|||||||
/// 6. If the total value of my offer is greater than the total value of their offer:
|
/// 6. If the total value of my offer is greater than the total value of their offer:
|
||||||
/// 1. If I am offering coins, remove some to balance.
|
/// 1. If I am offering coins, remove some to balance.
|
||||||
/// 2. If I am not offering coins, add theirs to balance.
|
/// 2. If I am not offering coins, add theirs to balance.
|
||||||
|
#[allow(clippy::comparison_chain)]
|
||||||
fn handle_trade(&mut self, trade: PendingTrade) -> Result<(), String> {
|
fn handle_trade(&mut self, trade: PendingTrade) -> Result<(), String> {
|
||||||
if trade.is_empty_trade() {
|
if trade.is_empty_trade() {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
Loading…
Reference in New Issue
Block a user