When executing the command cargo run --release --features debug, I encounter several warnings.
The first warning pertains to an assigned value that is never read:
warning: value assigned to `weth_inventory` is never read
--> crates/strategy/src/bot/mod.rs:70:17
|
70 | let mut weth_inventory = self.sando_state_manager.get_weth_inventory();
| ^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
= note: `#[warn(unused_assignments)]` on by default
The second warning highlights that a variable does not need to be mutable:
warning: variable does not need to be mutable
--> crates/strategy/src/bot/mod.rs:174:13
|
174 | let mut sando_bundles = vec![];
| ----^^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
Test Plan
Follow these steps to reproduce the warnings:
Clone the repository: git clone https://github.com/mouseless-eth/rusty-sando.git
Navigate to the contract directory: cd contract
Install dependencies: forge install
Change to the bot directory: cd ../bot
Copy the example environment file: cp .env.example .env
Run the integration tests using the command: cargo test -p strategy --release --features debug
Summary
When executing the command
cargo run --release --features debug
, I encounter several warnings.The first warning pertains to an assigned value that is never read:
The second warning highlights that a variable does not need to be mutable:
Test Plan
Follow these steps to reproduce the warnings:
git clone https://github.com/mouseless-eth/rusty-sando.git
cd contract
forge install
cd ../bot
cp .env.example .env
cargo test -p strategy --release --features debug