[INFO] cloning repository https://github.com/michaelhenkel/agent-rs2
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/michaelhenkel/agent-rs2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmichaelhenkel%2Fagent-rs2", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmichaelhenkel%2Fagent-rs2'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] bb8c7ad62dc53084ced03337e86fd3440c448fc4
[INFO] checking michaelhenkel/agent-rs2 against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmichaelhenkel%2Fagent-rs2" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/michaelhenkel/agent-rs2
[INFO] finished tweaking git repo https://github.com/michaelhenkel/agent-rs2
[INFO] tweaked toml for git repo https://github.com/michaelhenkel/agent-rs2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/michaelhenkel/agent-rs2 on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/michaelhenkel/agent-rs2 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: unused manifest key: target.x86_64-unknown-linux-gnu.linker
[INFO] [stderr] warning: unused manifest key: target.x86_64-unknown-linux-musl.linker
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded clap_derive v3.2.5
[INFO] [stderr]   Downloaded crossbeam v0.8.1
[INFO] [stderr]   Downloaded clap_lex v0.2.2
[INFO] [stderr]   Downloaded lru v0.7.6
[INFO] [stderr]   Downloaded clap v3.2.5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 69c2661bbbdcedce5a37136a020881d459dccb8f197e0247e872656af57fc226
[INFO] running `Command { std: "docker" "start" "-a" "69c2661bbbdcedce5a37136a020881d459dccb8f197e0247e872656af57fc226", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "69c2661bbbdcedce5a37136a020881d459dccb8f197e0247e872656af57fc226", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "69c2661bbbdcedce5a37136a020881d459dccb8f197e0247e872656af57fc226", kill_on_drop: false }`
[INFO] [stdout] 69c2661bbbdcedce5a37136a020881d459dccb8f197e0247e872656af57fc226
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6bb21ee76013fac0c2e40116cc56735c34311b2caa5ee99006064b43fe358165
[INFO] running `Command { std: "docker" "start" "-a" "6bb21ee76013fac0c2e40116cc56735c34311b2caa5ee99006064b43fe358165", kill_on_drop: false }`
[INFO] [stderr] warning: unused manifest key: target.x86_64-unknown-linux-gnu.linker
[INFO] [stderr] warning: unused manifest key: target.x86_64-unknown-linux-musl.linker
[INFO] [stderr]    Compiling proc-macro2 v1.0.39
[INFO] [stderr]    Compiling ahash v0.7.6
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]    Compiling indexmap v1.8.2
[INFO] [stderr]    Compiling crossbeam-queue v0.3.5
[INFO] [stderr]     Checking os_str_bytes v6.1.0
[INFO] [stderr]     Checking crossbeam-deque v0.8.1
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking clap_lex v0.2.2
[INFO] [stderr]     Checking futures-channel v0.3.21
[INFO] [stderr]     Checking crossbeam v0.8.1
[INFO] [stderr]     Checking hashbrown v0.11.2
[INFO] [stderr]    Compiling quote v1.0.18
[INFO] [stderr]     Checking lru v0.7.6
[INFO] [stderr]    Compiling syn v1.0.96
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling futures-macro v0.3.21
[INFO] [stderr]    Compiling serde_derive v1.0.137
[INFO] [stderr]    Compiling clap_derive v3.2.5
[INFO] [stderr]    Compiling tokio-macros v1.8.0
[INFO] [stderr]     Checking tokio v1.19.2
[INFO] [stderr]     Checking futures-util v0.3.21
[INFO] [stderr]     Checking clap v3.2.5
[INFO] [stderr]     Checking serde v1.0.137
[INFO] [stderr]     Checking futures-executor v0.3.21
[INFO] [stderr]     Checking futures v0.3.21
[INFO] [stderr]     Checking ipnet v2.5.0
[INFO] [stderr]     Checking agent-rs2 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `ipnet`
[INFO] [stdout]  --> src/flow/flow.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use ipnet;
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/flow/flow.rs:37:63
[INFO] [stdout]    |
[INFO] [stdout] 37 |             flow_partition_sender.send(Action::Get(Get::Flows((action_sender))));
[INFO] [stdout]    |                                                               ^             ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 37 -             flow_partition_sender.send(Action::Get(Get::Flows((action_sender))));
[INFO] [stdout] 37 +             flow_partition_sender.send(Action::Get(Get::Flows(action_sender )));
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/flow/flow.rs:52:72
[INFO] [stdout]    |
[INFO] [stdout] 52 |             flow_partition_sender.send(Action::Get(Get::FlowTableStats((action_sender))));
[INFO] [stdout]    |                                                                        ^             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 52 -             flow_partition_sender.send(Action::Get(Get::FlowTableStats((action_sender))));
[INFO] [stdout] 52 +             flow_partition_sender.send(Action::Get(Get::FlowTableStats(action_sender )));
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Add`
[INFO] [stdout]  --> src/packet/packet.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::agent::agent::{Action,Add,Get,calculate_hash, n_mod_m};
[INFO] [stdout]   |                                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ipnet::IpAddrRange`
[INFO] [stdout]  --> src/packet/packet.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use ipnet::IpAddrRange;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::num`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use core::num;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::RwLock`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::sync::RwLock;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `fmt::format`
[INFO] [stdout]   --> src/main.rs:13:26
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::{thread::sleep, fmt::format};
[INFO] [stdout]    |                          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]   --> src/main.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::env;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `IpAddrRange` and `Ipv4AddrRange`
[INFO] [stdout]   --> src/main.rs:20:19
[INFO] [stdout]    |
[INFO] [stdout] 20 | use ipnet::{self, IpAddrRange, Ipv4AddrRange};
[INFO] [stdout]    |                   ^^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Ipv4Addr`
[INFO] [stdout]   --> src/main.rs:21:23
[INFO] [stdout]    |
[INFO] [stdout] 21 | use std::net::{IpAddr,Ipv4Addr};
[INFO] [stdout]    |                       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ipnet`
[INFO] [stdout]  --> src/flow/flow.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use ipnet;
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/flow/flow.rs:37:63
[INFO] [stdout]    |
[INFO] [stdout] 37 |             flow_partition_sender.send(Action::Get(Get::Flows((action_sender))));
[INFO] [stdout]    |                                                               ^             ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 37 -             flow_partition_sender.send(Action::Get(Get::Flows((action_sender))));
[INFO] [stdout] 37 +             flow_partition_sender.send(Action::Get(Get::Flows(action_sender )));
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/flow/flow.rs:52:72
[INFO] [stdout]    |
[INFO] [stdout] 52 |             flow_partition_sender.send(Action::Get(Get::FlowTableStats((action_sender))));
[INFO] [stdout]    |                                                                        ^             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 52 -             flow_partition_sender.send(Action::Get(Get::FlowTableStats((action_sender))));
[INFO] [stdout] 52 +             flow_partition_sender.send(Action::Get(Get::FlowTableStats(action_sender )));
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Add`
[INFO] [stdout]  --> src/packet/packet.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::agent::agent::{Action,Add,Get,calculate_hash, n_mod_m};
[INFO] [stdout]   |                                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ipnet::IpAddrRange`
[INFO] [stdout]  --> src/packet/packet.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use ipnet::IpAddrRange;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::num`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use core::num;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::RwLock`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::sync::RwLock;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `fmt::format`
[INFO] [stdout]   --> src/main.rs:13:26
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::{thread::sleep, fmt::format};
[INFO] [stdout]    |                          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]   --> src/main.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::env;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `IpAddrRange` and `Ipv4AddrRange`
[INFO] [stdout]   --> src/main.rs:20:19
[INFO] [stdout]    |
[INFO] [stdout] 20 | use ipnet::{self, IpAddrRange, Ipv4AddrRange};
[INFO] [stdout]    |                   ^^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Ipv4Addr`
[INFO] [stdout]   --> src/main.rs:21:23
[INFO] [stdout]    |
[INFO] [stdout] 21 | use std::net::{IpAddr,Ipv4Addr};
[INFO] [stdout]    |                       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/agent/agent.rs:150:33
[INFO] [stdout]     |
[INFO] [stdout] 150 | ...                   let mut remote_rt = self.remote_route_table.write().unwrap();
[INFO] [stdout]     |                           ----^^^^^^^^^
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/agent/agent.rs:186:33
[INFO] [stdout]     |
[INFO] [stdout] 186 | ...                   let mut local_rt = self.local_route_table.write().unwrap();
[INFO] [stdout]     |                           ----^^^^^^^^
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/agent/agent.rs:150:33
[INFO] [stdout]     |
[INFO] [stdout] 150 | ...                   let mut remote_rt = self.remote_route_table.write().unwrap();
[INFO] [stdout]     |                           ----^^^^^^^^^
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/agent/agent.rs:186:33
[INFO] [stdout]     |
[INFO] [stdout] 186 | ...                   let mut local_rt = self.local_route_table.write().unwrap();
[INFO] [stdout]     |                           ----^^^^^^^^
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:185:5
[INFO] [stdout]     |
[INFO] [stdout] 184 |     exit(0);
[INFO] [stdout]     |     ------- any code following this expression is unreachable
[INFO] [stdout] 185 |     futures::future::join_all(join_handlers).await;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nh`
[INFO] [stdout]    --> src/agent/agent.rs:187:39
[INFO] [stdout]     |
[INFO] [stdout] 187 | ...                   for (dst, nh) in local_rt.clone() {
[INFO] [stdout]     |                                 ^^ help: if this is intentional, prefix it with an underscore: `_nh`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/flow/flow.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut flow_partition_sender_list = self.flow_partition_sender_list.write().unwrap();
[INFO] [stdout]    |             ----^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `part`
[INFO] [stdout]   --> src/flow/flow.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 |         for (part, flow_partition_sender) in flow_partition_sender_list.clone(){
[INFO] [stdout]    |              ^^^^ help: if this is intentional, prefix it with an underscore: `_part`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/flow/flow.rs:46:13
[INFO] [stdout]    |
[INFO] [stdout] 46 |         let mut flow_partition_sender_list = self.flow_partition_sender_list.write().unwrap();
[INFO] [stdout]    |             ----^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `part`
[INFO] [stdout]   --> src/flow/flow.rs:50:14
[INFO] [stdout]    |
[INFO] [stdout] 50 |         for (part, flow_partition_sender) in flow_partition_sender_list.clone(){
[INFO] [stdout]    |              ^^^^ help: if this is intentional, prefix it with an underscore: `_part`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `partitions`
[INFO] [stdout]   --> src/flow/flow.rs:60:13
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let partitions = flow_partition_sender_list.len();
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partitions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/main.rs:185:5
[INFO] [stdout]     |
[INFO] [stdout] 184 |     exit(0);
[INFO] [stdout]     |     ------- any code following this expression is unreachable
[INFO] [stdout] 185 |     futures::future::join_all(join_handlers).await;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/flow/flow.rs:190:13
[INFO] [stdout]     |
[INFO] [stdout] 190 |         let mut duration = self.duration.write().unwrap();
[INFO] [stdout]     |             ----^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/flow/flow.rs:191:13
[INFO] [stdout]     |
[INFO] [stdout] 191 |         let mut counter = self.flow_counter.write().unwrap();
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nh`
[INFO] [stdout]    --> src/agent/agent.rs:187:39
[INFO] [stdout]     |
[INFO] [stdout] 187 | ...                   for (dst, nh) in local_rt.clone() {
[INFO] [stdout]     |                                 ^^ help: if this is intentional, prefix it with an underscore: `_nh`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/control/control.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         let mut route_table = self.route_table.write().unwrap();
[INFO] [stdout]    |             ----^^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `agent`
[INFO] [stdout]   --> src/control/control.rs:48:30
[INFO] [stdout]    |
[INFO] [stdout] 48 |                         for (agent, sender) in sender_map.clone(){
[INFO] [stdout]    |                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/flow/flow.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut flow_partition_sender_list = self.flow_partition_sender_list.write().unwrap();
[INFO] [stdout]    |             ----^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `part`
[INFO] [stdout]   --> src/flow/flow.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 |         for (part, flow_partition_sender) in flow_partition_sender_list.clone(){
[INFO] [stdout]    |              ^^^^ help: if this is intentional, prefix it with an underscore: `_part`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/flow/flow.rs:46:13
[INFO] [stdout]    |
[INFO] [stdout] 46 |         let mut flow_partition_sender_list = self.flow_partition_sender_list.write().unwrap();
[INFO] [stdout]    |             ----^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `part`
[INFO] [stdout]   --> src/flow/flow.rs:50:14
[INFO] [stdout]    |
[INFO] [stdout] 50 |         for (part, flow_partition_sender) in flow_partition_sender_list.clone(){
[INFO] [stdout]    |              ^^^^ help: if this is intentional, prefix it with an underscore: `_part`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `partitions`
[INFO] [stdout]   --> src/flow/flow.rs:60:13
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let partitions = flow_partition_sender_list.len();
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partitions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/packet/packet.rs:33:23
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub fn get_packet(mut self) -> Result<Packet, Box<dyn std::error::Error>> {
[INFO] [stdout]    |                       ----^^^^
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/packet/packet.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |             ----^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/packet/packet.rs:35:13
[INFO] [stdout]    |
[INFO] [stdout] 35 |         let mut src_ip_res: Ipv4Addr;
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/packet/packet.rs:36:13
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let mut dst_ip_res: Ipv4Addr;
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rng`
[INFO] [stdout]   --> src/packet/packet.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/packet/packet.rs:78:13
[INFO] [stdout]    |
[INFO] [stdout] 78 |         for p in 1..num_of_packets{
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `flow`
[INFO] [stdout]   --> src/packet/packet.rs:98:13
[INFO] [stdout]    |
[INFO] [stdout] 98 |         let flow = action_receiver.recv().unwrap();
[INFO] [stdout]    |             ^^^^ help: if this is intentional, prefix it with an underscore: `_flow`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/packet/packet.rs:106:13
[INFO] [stdout]     |
[INFO] [stdout] 106 |         let mut hit_flow_counter = self.hit_flow_counter.write().unwrap();
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/flow/flow.rs:190:13
[INFO] [stdout]     |
[INFO] [stdout] 190 |         let mut duration = self.duration.write().unwrap();
[INFO] [stdout]     |             ----^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/flow/flow.rs:191:13
[INFO] [stdout]     |
[INFO] [stdout] 191 |         let mut counter = self.flow_counter.write().unwrap();
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/control/control.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         let mut route_table = self.route_table.write().unwrap();
[INFO] [stdout]    |             ----^^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `agent`
[INFO] [stdout]   --> src/control/control.rs:48:30
[INFO] [stdout]    |
[INFO] [stdout] 48 |                         for (agent, sender) in sender_map.clone(){
[INFO] [stdout]    |                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/packet/packet.rs:33:23
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub fn get_packet(mut self) -> Result<Packet, Box<dyn std::error::Error>> {
[INFO] [stdout]    |                       ----^^^^
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/packet/packet.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |             ----^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/packet/packet.rs:35:13
[INFO] [stdout]    |
[INFO] [stdout] 35 |         let mut src_ip_res: Ipv4Addr;
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/packet/packet.rs:36:13
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let mut dst_ip_res: Ipv4Addr;
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rng`
[INFO] [stdout]   --> src/packet/packet.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut rng = rand::thread_rng();
[INFO] [stdout]    |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/packet/packet.rs:78:13
[INFO] [stdout]    |
[INFO] [stdout] 78 |         for p in 1..num_of_packets{
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `flow`
[INFO] [stdout]   --> src/packet/packet.rs:98:13
[INFO] [stdout]    |
[INFO] [stdout] 98 |         let flow = action_receiver.recv().unwrap();
[INFO] [stdout]    |             ^^^^ help: if this is intentional, prefix it with an underscore: `_flow`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/packet/packet.rs:106:13
[INFO] [stdout]     |
[INFO] [stdout] 106 |         let mut hit_flow_counter = self.hit_flow_counter.write().unwrap();
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout]    --> src/main.rs:175:14
[INFO] [stdout]     |
[INFO] [stdout] 175 |         for (name, dp) in datapath_list.clone(){
[INFO] [stdout]     |              ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32_le` is never used
[INFO] [stdout]   --> src/main.rs:55:4
[INFO] [stdout]    |
[INFO] [stdout] 55 | fn as_u32_le(array: &[u8;4]) -> u32 {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `partition_ready_sender` is never read
[INFO] [stdout]   --> src/agent/agent.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct Agent{
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 36 |     partition_ready_sender: crossbeam_channel::Sender<bool>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Agent` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_route_tables` is never used
[INFO] [stdout]    --> src/agent/agent.rs:236:12
[INFO] [stdout]     |
[INFO] [stdout]  47 | impl Agent {
[INFO] [stdout]     | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 236 |     pub fn get_route_tables(self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `name` is never read
[INFO] [stdout]    --> src/flow/flow.rs:110:5
[INFO] [stdout]     |
[INFO] [stdout] 107 | pub struct FlowTablePartition{
[INFO] [stdout]     |            ------------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 110 |     name: String,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `FlowTablePartition` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_stats` is never used
[INFO] [stdout]    --> src/flow/flow.rs:189:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl FlowTablePartition {
[INFO] [stdout]     | ----------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 189 |     pub fn get_stats(self) -> Result<(u128, u32, i16), Box<dyn std::error::Error + Send> >{
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `join_parallel` is never used
[INFO] [stdout]    --> src/flow/flow.rs:199:10
[INFO] [stdout]     |
[INFO] [stdout] 199 | async fn join_parallel<T: Send + 'static>(
[INFO] [stdout]     |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `name` is never read
[INFO] [stdout]   --> src/packet/packet.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Datapath{
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     pub name: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Datapath` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `src_port` and `dst_port` are never read
[INFO] [stdout]    --> src/packet/packet.rs:115:5
[INFO] [stdout]     |
[INFO] [stdout] 112 | pub struct Packet{
[INFO] [stdout]     |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 115 |     src_port: u16,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 116 |     dst_port: u16,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Packet` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout]    --> src/main.rs:175:14
[INFO] [stdout]     |
[INFO] [stdout] 175 |         for (name, dp) in datapath_list.clone(){
[INFO] [stdout]     |              ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/agent/agent.rs:102:25
[INFO] [stdout]     |
[INFO] [stdout] 102 | /                         self.route_sender.send(Add::Route(Route{
[INFO] [stdout] 103 | |                             dst: vmi.ip,
[INFO] [stdout] 104 | |                             nh: vmi.agent,
[INFO] [stdout] 105 | |                         }));
[INFO] [stdout]     | |___________________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 102 |                         let _ = self.route_sender.send(Add::Route(Route{
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/flow/flow.rs:37:13
[INFO] [stdout]    |
[INFO] [stdout] 37 |             flow_partition_sender.send(Action::Get(Get::Flows((action_sender))));
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 37 |             let _ = flow_partition_sender.send(Action::Get(Get::Flows((action_sender))));
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/flow/flow.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 |             flow_partition_sender.send(Action::Get(Get::FlowTableStats((action_sender))));
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 52 |             let _ = flow_partition_sender.send(Action::Get(Get::FlowTableStats((action_sender))));
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/flow/flow.rs:90:17
[INFO] [stdout]    |
[INFO] [stdout] 90 |                 self.partition_ready_sender.send(true);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 90 |                 let _ = self.partition_ready_sender.send(true);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/flow/flow.rs:102:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         p.send(Action::Add(Add::Flow(flow)));
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 102 |         let _ = p.send(Action::Add(Add::Flow(flow)));
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/flow/flow.rs:131:9
[INFO] [stdout]     |
[INFO] [stdout] 131 |         partition_count_sender.send(1);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 131 |         let _ = partition_count_sender.send(1);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/flow/flow.rs:153:21
[INFO] [stdout]     |
[INFO] [stdout] 153 | /                     flow_table_stats_sender.send(FlowTableStats{
[INFO] [stdout] 154 | |                         duration: *duration,
[INFO] [stdout] 155 | |                         counter: *counter,
[INFO] [stdout] 156 | |                         partition: self.partition,
[INFO] [stdout] 157 | |                     });
[INFO] [stdout]     | |______________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 153 |                     let _ = flow_table_stats_sender.send(FlowTableStats{
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/flow/flow.rs:168:21
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     flow_table_stats_sender.send(flow_list);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     let _ = flow_table_stats_sender.send(flow_list);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `as_u32_le` is never used
[INFO] [stdout]   --> src/main.rs:55:4
[INFO] [stdout]    |
[INFO] [stdout] 55 | fn as_u32_le(array: &[u8;4]) -> u32 {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/flow/flow.rs:175:29
[INFO] [stdout]     |
[INFO] [stdout] 175 | / ...                   flow_table_stats_sender.send(Flow { 
[INFO] [stdout] 176 | | ...                       flow_key: flow_key.clone(),
[INFO] [stdout] 177 | | ...                       nh: nh.clone(),
[INFO] [stdout] 178 | | ...                    });
[INFO] [stdout]     | |_________________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 175 |                             let _ = flow_table_stats_sender.send(Flow { 
[INFO] [stdout]     |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/config/config.rs:36:17
[INFO] [stdout]    |
[INFO] [stdout] 36 |                 sender.send(Add::Vmi(vmi));
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 36 |                 let _ = sender.send(Add::Vmi(vmi));
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `partition_ready_sender` is never read
[INFO] [stdout]   --> src/agent/agent.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct Agent{
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 36 |     partition_ready_sender: crossbeam_channel::Sender<bool>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Agent` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/control/control.rs:31:13
[INFO] [stdout]    |
[INFO] [stdout] 31 | /             add_route_sender.send(Add::Route(Route{
[INFO] [stdout] 32 | |                 dst: route,
[INFO] [stdout] 33 | |                 nh: nh,
[INFO] [stdout] 34 | |             }));
[INFO] [stdout]    | |_______________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 31 |             let _ = add_route_sender.send(Add::Route(Route{
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_route_tables` is never used
[INFO] [stdout]    --> src/agent/agent.rs:236:12
[INFO] [stdout]     |
[INFO] [stdout]  47 | impl Agent {
[INFO] [stdout]     | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 236 |     pub fn get_route_tables(self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/control/control.rs:50:29
[INFO] [stdout]    |
[INFO] [stdout] 50 | ...                   sender.send(Add::Route(route.clone()));
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 50 |                             let _ = sender.send(Add::Route(route.clone()));
[INFO] [stdout]    |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `name` is never read
[INFO] [stdout]    --> src/flow/flow.rs:110:5
[INFO] [stdout]     |
[INFO] [stdout] 107 | pub struct FlowTablePartition{
[INFO] [stdout]     |            ------------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 110 |     name: String,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `FlowTablePartition` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_stats` is never used
[INFO] [stdout]    --> src/flow/flow.rs:189:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl FlowTablePartition {
[INFO] [stdout]     | ----------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 189 |     pub fn get_stats(self) -> Result<(u128, u32, i16), Box<dyn std::error::Error + Send> >{
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/control/control.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 |         res.await;
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let _ = res.await;
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `join_parallel` is never used
[INFO] [stdout]    --> src/flow/flow.rs:199:10
[INFO] [stdout]     |
[INFO] [stdout] 199 | async fn join_parallel<T: Send + 'static>(
[INFO] [stdout]     |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `name` is never read
[INFO] [stdout]   --> src/packet/packet.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Datapath{
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     pub name: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Datapath` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/packet/packet.rs:97:9
[INFO] [stdout]    |
[INFO] [stdout] 97 |         partition_sender.send(Action::Get(Get::MatchFlow(flow_key, action_sender)));
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 97 |         let _ = partition_sender.send(Action::Get(Get::MatchFlow(flow_key, action_sender)));
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `src_port` and `dst_port` are never read
[INFO] [stdout]    --> src/packet/packet.rs:115:5
[INFO] [stdout]     |
[INFO] [stdout] 112 | pub struct Packet{
[INFO] [stdout]     |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 115 |     src_port: u16,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 116 |     dst_port: u16,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Packet` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/agent/agent.rs:102:25
[INFO] [stdout]     |
[INFO] [stdout] 102 | /                         self.route_sender.send(Add::Route(Route{
[INFO] [stdout] 103 | |                             dst: vmi.ip,
[INFO] [stdout] 104 | |                             nh: vmi.agent,
[INFO] [stdout] 105 | |                         }));
[INFO] [stdout]     | |___________________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 102 |                         let _ = self.route_sender.send(Add::Route(Route{
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/flow/flow.rs:37:13
[INFO] [stdout]    |
[INFO] [stdout] 37 |             flow_partition_sender.send(Action::Get(Get::Flows((action_sender))));
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 37 |             let _ = flow_partition_sender.send(Action::Get(Get::Flows((action_sender))));
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/flow/flow.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 |             flow_partition_sender.send(Action::Get(Get::FlowTableStats((action_sender))));
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 52 |             let _ = flow_partition_sender.send(Action::Get(Get::FlowTableStats((action_sender))));
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/flow/flow.rs:90:17
[INFO] [stdout]    |
[INFO] [stdout] 90 |                 self.partition_ready_sender.send(true);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 90 |                 let _ = self.partition_ready_sender.send(true);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/flow/flow.rs:102:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         p.send(Action::Add(Add::Flow(flow)));
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 102 |         let _ = p.send(Action::Add(Add::Flow(flow)));
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/flow/flow.rs:131:9
[INFO] [stdout]     |
[INFO] [stdout] 131 |         partition_count_sender.send(1);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 131 |         let _ = partition_count_sender.send(1);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/flow/flow.rs:153:21
[INFO] [stdout]     |
[INFO] [stdout] 153 | /                     flow_table_stats_sender.send(FlowTableStats{
[INFO] [stdout] 154 | |                         duration: *duration,
[INFO] [stdout] 155 | |                         counter: *counter,
[INFO] [stdout] 156 | |                         partition: self.partition,
[INFO] [stdout] 157 | |                     });
[INFO] [stdout]     | |______________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 153 |                     let _ = flow_table_stats_sender.send(FlowTableStats{
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/flow/flow.rs:168:21
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     flow_table_stats_sender.send(flow_list);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     let _ = flow_table_stats_sender.send(flow_list);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/flow/flow.rs:175:29
[INFO] [stdout]     |
[INFO] [stdout] 175 | / ...                   flow_table_stats_sender.send(Flow { 
[INFO] [stdout] 176 | | ...                       flow_key: flow_key.clone(),
[INFO] [stdout] 177 | | ...                       nh: nh.clone(),
[INFO] [stdout] 178 | | ...                    });
[INFO] [stdout]     | |_________________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 175 |                             let _ = flow_table_stats_sender.send(Flow { 
[INFO] [stdout]     |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/config/config.rs:36:17
[INFO] [stdout]    |
[INFO] [stdout] 36 |                 sender.send(Add::Vmi(vmi));
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 36 |                 let _ = sender.send(Add::Vmi(vmi));
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/control/control.rs:31:13
[INFO] [stdout]    |
[INFO] [stdout] 31 | /             add_route_sender.send(Add::Route(Route{
[INFO] [stdout] 32 | |                 dst: route,
[INFO] [stdout] 33 | |                 nh: nh,
[INFO] [stdout] 34 | |             }));
[INFO] [stdout]    | |_______________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 31 |             let _ = add_route_sender.send(Add::Route(Route{
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/control/control.rs:50:29
[INFO] [stdout]    |
[INFO] [stdout] 50 | ...                   sender.send(Add::Route(route.clone()));
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 50 |                             let _ = sender.send(Add::Route(route.clone()));
[INFO] [stdout]    |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/control/control.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 |         res.await;
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let _ = res.await;
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/packet/packet.rs:97:9
[INFO] [stdout]    |
[INFO] [stdout] 97 |         partition_sender.send(Action::Get(Get::MatchFlow(flow_key, action_sender)));
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 97 |         let _ = partition_sender.send(Action::Get(Get::MatchFlow(flow_key, action_sender)));
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.54s
[INFO] running `Command { std: "docker" "inspect" "6bb21ee76013fac0c2e40116cc56735c34311b2caa5ee99006064b43fe358165", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6bb21ee76013fac0c2e40116cc56735c34311b2caa5ee99006064b43fe358165", kill_on_drop: false }`
[INFO] [stdout] 6bb21ee76013fac0c2e40116cc56735c34311b2caa5ee99006064b43fe358165
