From 71337dc8c7b51aba7102e2da9ca5bbe327a2f5f3 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 13 Jul 2024 07:56:33 -0400 Subject: [PATCH] Add clippy allow --- src/bot.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bot.rs b/src/bot.rs index fdb5175..f58ebc7 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -448,6 +448,7 @@ impl Bot { /// the trade. Coins are hard-coded to have a value of 1 each. /// /// The bot's trading logic is as follows: + /// /// 1. If the trade is empty, do nothing. /// 2. If my offer includes items I am not selling, remove those items unless they are coins. /// 3. If their offer includes items I am not buying, remove those items unless they are coins. @@ -458,6 +459,7 @@ impl Bot { /// 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. /// 2. If I am not offering coins, add theirs to balance. + #[allow(clippy::comparison_chain)] fn handle_trade(&mut self, trade: PendingTrade) -> Result<(), String> { if trade.is_empty_trade() { return Ok(());