[INFO] cloning repository https://github.com/abhishekshinde2104/LLDPA
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/abhishekshinde2104/LLDPA" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabhishekshinde2104%2FLLDPA", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabhishekshinde2104%2FLLDPA'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e5090fdc2e3828d93b4bc935aafba68578ebcedb
[INFO] checking abhishekshinde2104/LLDPA against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabhishekshinde2104%2FLLDPA" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] [stderr] Updating files:  35% (874/2478)
Updating files:  36% (893/2478)
Updating files:  37% (917/2478)
Updating files:  38% (942/2478)
Updating files:  39% (967/2478)
Updating files:  40% (992/2478)
Updating files:  41% (1016/2478)
Updating files:  42% (1041/2478)
Updating files:  43% (1066/2478)
Updating files:  44% (1091/2478)
Updating files:  45% (1116/2478)
Updating files:  46% (1140/2478)
Updating files:  46% (1150/2478)
Updating files:  47% (1165/2478)
Updating files:  48% (1190/2478)
Updating files:  49% (1215/2478)
Updating files:  50% (1239/2478)
Updating files:  51% (1264/2478)
Updating files:  51% (1266/2478)
Updating files:  52% (1289/2478)
Updating files:  52% (1300/2478)
Updating files:  53% (1314/2478)
Updating files:  54% (1339/2478)
Updating files:  55% (1363/2478)
Updating files:  56% (1388/2478)
Updating files:  57% (1413/2478)
Updating files:  58% (1438/2478)
Updating files:  59% (1463/2478)
Updating files:  60% (1487/2478)
Updating files:  61% (1512/2478)
Updating files:  62% (1537/2478)
Updating files:  63% (1562/2478)
Updating files:  64% (1586/2478)
Updating files:  65% (1611/2478)
Updating files:  66% (1636/2478)
Updating files:  67% (1661/2478)
Updating files:  68% (1686/2478)
Updating files:  69% (1710/2478)
Updating files:  70% (1735/2478)
Updating files:  71% (1760/2478)
Updating files:  72% (1785/2478)
Updating files:  73% (1809/2478)
Updating files:  74% (1834/2478)
Updating files:  75% (1859/2478)
Updating files:  76% (1884/2478)
Updating files:  77% (1909/2478)
Updating files:  78% (1933/2478)
Updating files:  79% (1958/2478)
Updating files:  80% (1983/2478)
Updating files:  81% (2008/2478)
Updating files:  82% (2032/2478)
Updating files:  83% (2057/2478)
Updating files:  84% (2082/2478)
Updating files:  85% (2107/2478)
Updating files:  86% (2132/2478)
Updating files:  86% (2155/2478)
Updating files:  87% (2156/2478)
Updating files:  88% (2181/2478)
Updating files:  89% (2206/2478)
Updating files:  90% (2231/2478)
Updating files:  91% (2255/2478)
Updating files:  92% (2280/2478)
Updating files:  93% (2305/2478)
Updating files:  94% (2330/2478)
Updating files:  95% (2355/2478)
Updating files:  96% (2379/2478)
Updating files:  97% (2404/2478)
Updating files:  98% (2429/2478)
Updating files:  99% (2454/2478)
Updating files: 100% (2478/2478)
Updating files: 100% (2478/2478), done.
[INFO] removed /workspace/builds/worker-5-tc1/source/.cargo/config
[INFO] started tweaking git repo https://github.com/abhishekshinde2104/LLDPA
[INFO] finished tweaking git repo https://github.com/abhishekshinde2104/LLDPA
[INFO] tweaked toml for git repo https://github.com/abhishekshinde2104/LLDPA written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/abhishekshinde2104/LLDPA 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/abhishekshinde2104/LLDPA 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]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded pnet_sys v0.29.0
[INFO] [stderr]   Downloaded proc-macro2 v1.0.53
[INFO] [stderr]   Downloaded pnet_packet v0.29.0
[INFO] [stderr]   Downloaded pnet_macros_support v0.29.0
[INFO] [stderr]   Downloaded pnet_transport v0.29.0
[INFO] [stderr]   Downloaded pnet v0.29.0
[INFO] [stderr]   Downloaded pnet_base v0.29.0
[INFO] [stderr]   Downloaded ipnetwork v0.18.0
[INFO] [stderr]   Downloaded pnet_datalink v0.29.0
[INFO] [stderr]   Downloaded pnet_macros v0.29.0
[INFO] [stderr]   Downloaded serde v1.0.158
[INFO] [stderr]   Downloaded regex v1.7.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] af9343f1ecedd32b49c57b9db9ad7a13294346a3c3a4d3f69c0b30c11c536498
[INFO] running `Command { std: "docker" "start" "-a" "af9343f1ecedd32b49c57b9db9ad7a13294346a3c3a4d3f69c0b30c11c536498", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "af9343f1ecedd32b49c57b9db9ad7a13294346a3c3a4d3f69c0b30c11c536498", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "af9343f1ecedd32b49c57b9db9ad7a13294346a3c3a4d3f69c0b30c11c536498", kill_on_drop: false }`
[INFO] [stdout] af9343f1ecedd32b49c57b9db9ad7a13294346a3c3a4d3f69c0b30c11c536498
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] fa6f826fd6d1c1f41c2295ebf3859ace0843d5fe0f45f0873678282e16d67096
[INFO] running `Command { std: "docker" "start" "-a" "fa6f826fd6d1c1f41c2295ebf3859ace0843d5fe0f45f0873678282e16d67096", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.53
[INFO] [stderr]    Compiling quote v1.0.26
[INFO] [stderr]    Compiling unicode-ident v1.0.8
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling libc v0.2.140
[INFO] [stderr]     Checking pnet_base v0.29.0
[INFO] [stderr]    Compiling regex-syntax v0.6.29
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling serde v1.0.158
[INFO] [stderr]     Checking pnet_macros_support v0.29.0
[INFO] [stderr]    Compiling pnet v0.29.0
[INFO] [stderr]     Checking bytes v1.4.0
[INFO] [stderr]    Compiling aho-corasick v0.7.20
[INFO] [stderr]     Checking pnet_sys v0.29.0
[INFO] [stderr]    Compiling regex v1.7.2
[INFO] [stderr]     Checking ipnetwork v0.18.0
[INFO] [stderr]     Checking pnet_datalink v0.29.0
[INFO] [stderr]    Compiling pnet_macros v0.29.0
[INFO] [stderr]     Checking pnet_packet v0.29.0
[INFO] [stderr]     Checking pnet_transport v0.29.0
[INFO] [stderr]     Checking lldp-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::tlv::eolldpdu_tlv::EndOfLLDPDUTLV`
[INFO] [stdout]  --> src/agent.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::tlv::eolldpdu_tlv::EndOfLLDPDUTLV;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `EtherType`
[INFO] [stdout]   --> src/agent.rs:13:30
[INFO] [stdout]    |
[INFO] [stdout] 13 | use pnet::packet::ethernet::{EtherType, EthernetPacket, MutableEthernetPacket};
[INFO] [stdout]    |                              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BufMut` and `Buf`
[INFO] [stdout]  --> src/tlv/managementaddress_tlv.rs:3:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | use bytes::{Buf, BufMut};
[INFO] [stdout]   |             ^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bytes::BufMut`
[INFO] [stdout]  --> src/tlv/organizationallyspecific_tlv.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use bytes::BufMut;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bytes::BufMut`
[INFO] [stdout]  --> src/tlv/portid_tlv.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use bytes::BufMut;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BufMut` and `Buf`
[INFO] [stdout]  --> src/tlv/ttl_tlv.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use bytes::{Buf, BufMut};
[INFO] [stdout]   |             ^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:184:50
[INFO] [stdout]     |
[INFO] [stdout] 184 |             TlvType::ChassisId => Tlv::ChassisId((ChassisIdTLV::new_from_bytes(bytes))),
[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] 184 -             TlvType::ChassisId => Tlv::ChassisId((ChassisIdTLV::new_from_bytes(bytes))),
[INFO] [stdout] 184 +             TlvType::ChassisId => Tlv::ChassisId(ChassisIdTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:185:43
[INFO] [stdout]     |
[INFO] [stdout] 185 |             TlvType::PortId=> Tlv::PortId((PortIdTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                           ^                                ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 185 -             TlvType::PortId=> Tlv::PortId((PortIdTLV::new_from_bytes(bytes))),
[INFO] [stdout] 185 +             TlvType::PortId=> Tlv::PortId(PortIdTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:186:38
[INFO] [stdout]     |
[INFO] [stdout] 186 |             TlvType::Ttl => Tlv::Ttl((TtlTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                      ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 186 -             TlvType::Ttl => Tlv::Ttl((TtlTLV::new_from_bytes(bytes))),
[INFO] [stdout] 186 +             TlvType::Ttl => Tlv::Ttl(TtlTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:187:54
[INFO] [stdout]     |
[INFO] [stdout] 187 |             TlvType::EndOfLLDPDU => Tlv::EndOfLldpdu((EndOfLLDPDUTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                      ^                                     ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 187 -             TlvType::EndOfLLDPDU => Tlv::EndOfLldpdu((EndOfLLDPDUTLV::new_from_bytes(bytes))),
[INFO] [stdout] 187 +             TlvType::EndOfLLDPDU => Tlv::EndOfLldpdu(EndOfLLDPDUTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:188:62
[INFO] [stdout]     |
[INFO] [stdout] 188 |             TlvType::PortDescription => Tlv::PortDescription((PortDescriptionTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                              ^                                         ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 188 -             TlvType::PortDescription => Tlv::PortDescription((PortDescriptionTLV::new_from_bytes(bytes))),
[INFO] [stdout] 188 +             TlvType::PortDescription => Tlv::PortDescription(PortDescriptionTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:189:52
[INFO] [stdout]     |
[INFO] [stdout] 189 |             TlvType::SystemName => Tlv::SystemName((SystemNameTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                    ^                                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 189 -             TlvType::SystemName => Tlv::SystemName((SystemNameTLV::new_from_bytes(bytes))),
[INFO] [stdout] 189 +             TlvType::SystemName => Tlv::SystemName(SystemNameTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:190:66
[INFO] [stdout]     |
[INFO] [stdout] 190 |             TlvType::SystemDescription => Tlv::SystemDescription((SystemDescriptionTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                                  ^                                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 190 -             TlvType::SystemDescription => Tlv::SystemDescription((SystemDescriptionTLV::new_from_bytes(bytes))),
[INFO] [stdout] 190 +             TlvType::SystemDescription => Tlv::SystemDescription(SystemDescriptionTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:191:68
[INFO] [stdout]     |
[INFO] [stdout] 191 |             TlvType::SystemCapabilities => Tlv::SystemCapabilities((SystemCapabilitiesTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                                    ^                                            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 191 -             TlvType::SystemCapabilities => Tlv::SystemCapabilities((SystemCapabilitiesTLV::new_from_bytes(bytes))),
[INFO] [stdout] 191 +             TlvType::SystemCapabilities => Tlv::SystemCapabilities(SystemCapabilitiesTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:192:66
[INFO] [stdout]     |
[INFO] [stdout] 192 |             TlvType::ManagementAddress => Tlv::ManagementAddress((ManagementAddressTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                                  ^                                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 192 -             TlvType::ManagementAddress => Tlv::ManagementAddress((ManagementAddressTLV::new_from_bytes(bytes))),
[INFO] [stdout] 192 +             TlvType::ManagementAddress => Tlv::ManagementAddress(ManagementAddressTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:193:80
[INFO] [stdout]     |
[INFO] [stdout] 193 |             TlvType::OrganizationallySpecific => Tlv::OrganizationallySpecific((OrganizationallySpecificTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                                                ^                                                  ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 193 -             TlvType::OrganizationallySpecific => Tlv::OrganizationallySpecific((OrganizationallySpecificTLV::new_from_bytes(bytes))),
[INFO] [stdout] 193 +             TlvType::OrganizationallySpecific => Tlv::OrganizationallySpecific(OrganizationallySpecificTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/eolldpdu_tlv.rs:45:30
[INFO] [stdout]    |
[INFO] [stdout] 45 |         let mut type_value = bytes[0];
[INFO] [stdout]    |                              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `last_bit`
[INFO] [stdout]    --> src/tlv/managementaddress_tlv.rs:157:13
[INFO] [stdout]     |
[INFO] [stdout] 157 |         let last_bit = bytes[0] & 0b00000001;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_bit`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]    --> src/tlv/managementaddress_tlv.rs:154:30
[INFO] [stdout]     |
[INFO] [stdout] 154 |         let mut type_value = bytes[0];
[INFO] [stdout]     |                              ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/organizationallyspecific_tlv.rs:74:34
[INFO] [stdout]    |
[INFO] [stdout] 74 |         let mut type_value: u8 = bytes[0];
[INFO] [stdout]    |                                  ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/organizationallyspecific_tlv.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |         type_value = type_value >> 1;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `length_value` is never read
[INFO] [stdout]   --> src/tlv/organizationallyspecific_tlv.rs:84:13
[INFO] [stdout]    |
[INFO] [stdout] 84 |             length_value= length_value + 256;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value_bytes`
[INFO] [stdout]   --> src/tlv/portdescription_tlv.rs:43:13
[INFO] [stdout]    |
[INFO] [stdout] 43 |         let value_bytes: Vec<u8> = value.as_bytes().to_vec();
[INFO] [stdout]    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value_bytes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/portdescription_tlv.rs:55:30
[INFO] [stdout]    |
[INFO] [stdout] 55 |         let mut type_value = bytes[0];
[INFO] [stdout]    |                              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `length` is assigned to, but never used
[INFO] [stdout]    --> src/tlv/portid_tlv.rs:175:13
[INFO] [stdout]     |
[INFO] [stdout] 175 |         let mut length = bytes[1] as usize;
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_length` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `length` is never read
[INFO] [stdout]    --> src/tlv/portid_tlv.rs:177:13
[INFO] [stdout]     |
[INFO] [stdout] 177 |             length += 1 << 9;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]    --> src/tlv/systemcapabilities_tlv.rs:146:30
[INFO] [stdout]     |
[INFO] [stdout] 146 |         let mut type_value = bytes[0];
[INFO] [stdout]     |                              ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/systemdescription_tlv.rs:54:30
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let mut type_value = bytes[0];
[INFO] [stdout]    |                              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/systemname_tlv.rs:54:30
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let mut type_value = bytes[0];
[INFO] [stdout]    |                              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/ttl_tlv.rs:53:30
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let mut type_value = bytes[0];
[INFO] [stdout]    |                              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/ttl_tlv.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 |         type_value = type_value >> 1;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]    --> src/tlv.rs:176:34
[INFO] [stdout]     |
[INFO] [stdout] 176 |         let mut type_value: u8 = bytes[0];
[INFO] [stdout]     |                                  ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `complete`, `is_valid`, `is_empty`, and `getitem` are never used
[INFO] [stdout]    --> src/lldpdu.rs:182:12
[INFO] [stdout]     |
[INFO] [stdout]  51 | impl Lldpdu {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 182 |     pub fn complete(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 187 |     pub fn is_valid(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 197 |     pub fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 213 |     pub fn getitem(&self, item: usize) -> &Tlv {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `get_length` and `from_bytes` are never used
[INFO] [stdout]    --> src/tlv.rs:163:12
[INFO] [stdout]     |
[INFO] [stdout] 114 | impl Tlv {
[INFO] [stdout]     | -------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 163 |     pub fn get_length(bytes: &[u8]) -> u16 {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 174 |     pub fn from_bytes(bytes: &[u8]) -> Tlv {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `len` are never used
[INFO] [stdout]   --> src/tlv/eolldpdu_tlv.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl EndOfLLDPDUTLV {
[INFO] [stdout]    | ------------------- associated items in this implementation
[INFO] [stdout] 34 |     /// Constructor
[INFO] [stdout] 35 |     pub fn new() -> EndOfLLDPDUTLV {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 67 |     pub fn len(&self) -> usize {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SystemCapability` is never used
[INFO] [stdout]   --> src/tlv/systemcapabilities_tlv.rs:13:10
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub enum SystemCapability {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `supports`, and `enabled` are never used
[INFO] [stdout]    --> src/tlv/systemcapabilities_tlv.rs:121:12
[INFO] [stdout]     |
[INFO] [stdout] 115 | impl SystemCapabilitiesTLV {
[INFO] [stdout]     | -------------------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 121 |     pub fn new(supported: u16, enabled: u16) -> SystemCapabilitiesTLV {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 192 |     fn supports(&self, capabilities: u16) -> bool {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 205 |     fn enabled(&self, capabilities: u16) -> bool {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/tlv/systemname_tlv.rs:41:12
[INFO] [stdout]    |
[INFO] [stdout] 40 | impl SystemNameTLV {
[INFO] [stdout]    | ------------------ associated function in this implementation
[INFO] [stdout] 41 |     pub fn new(name: String) -> SystemNameTLV {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::tlv::eolldpdu_tlv::EndOfLLDPDUTLV`
[INFO] [stdout]  --> src/agent.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::tlv::eolldpdu_tlv::EndOfLLDPDUTLV;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `EtherType`
[INFO] [stdout]   --> src/agent.rs:13:30
[INFO] [stdout]    |
[INFO] [stdout] 13 | use pnet::packet::ethernet::{EtherType, EthernetPacket, MutableEthernetPacket};
[INFO] [stdout]    |                              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Buf`
[INFO] [stdout]  --> src/tlv/managementaddress_tlv.rs:3:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | use bytes::{Buf, BufMut};
[INFO] [stdout]   |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Buf`
[INFO] [stdout]  --> src/tlv/ttl_tlv.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use bytes::{Buf, BufMut};
[INFO] [stdout]   |             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:184:50
[INFO] [stdout]     |
[INFO] [stdout] 184 |             TlvType::ChassisId => Tlv::ChassisId((ChassisIdTLV::new_from_bytes(bytes))),
[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] 184 -             TlvType::ChassisId => Tlv::ChassisId((ChassisIdTLV::new_from_bytes(bytes))),
[INFO] [stdout] 184 +             TlvType::ChassisId => Tlv::ChassisId(ChassisIdTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:185:43
[INFO] [stdout]     |
[INFO] [stdout] 185 |             TlvType::PortId=> Tlv::PortId((PortIdTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                           ^                                ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 185 -             TlvType::PortId=> Tlv::PortId((PortIdTLV::new_from_bytes(bytes))),
[INFO] [stdout] 185 +             TlvType::PortId=> Tlv::PortId(PortIdTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:186:38
[INFO] [stdout]     |
[INFO] [stdout] 186 |             TlvType::Ttl => Tlv::Ttl((TtlTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                      ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 186 -             TlvType::Ttl => Tlv::Ttl((TtlTLV::new_from_bytes(bytes))),
[INFO] [stdout] 186 +             TlvType::Ttl => Tlv::Ttl(TtlTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:187:54
[INFO] [stdout]     |
[INFO] [stdout] 187 |             TlvType::EndOfLLDPDU => Tlv::EndOfLldpdu((EndOfLLDPDUTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                      ^                                     ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 187 -             TlvType::EndOfLLDPDU => Tlv::EndOfLldpdu((EndOfLLDPDUTLV::new_from_bytes(bytes))),
[INFO] [stdout] 187 +             TlvType::EndOfLLDPDU => Tlv::EndOfLldpdu(EndOfLLDPDUTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:188:62
[INFO] [stdout]     |
[INFO] [stdout] 188 |             TlvType::PortDescription => Tlv::PortDescription((PortDescriptionTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                              ^                                         ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 188 -             TlvType::PortDescription => Tlv::PortDescription((PortDescriptionTLV::new_from_bytes(bytes))),
[INFO] [stdout] 188 +             TlvType::PortDescription => Tlv::PortDescription(PortDescriptionTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:189:52
[INFO] [stdout]     |
[INFO] [stdout] 189 |             TlvType::SystemName => Tlv::SystemName((SystemNameTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                    ^                                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 189 -             TlvType::SystemName => Tlv::SystemName((SystemNameTLV::new_from_bytes(bytes))),
[INFO] [stdout] 189 +             TlvType::SystemName => Tlv::SystemName(SystemNameTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:190:66
[INFO] [stdout]     |
[INFO] [stdout] 190 |             TlvType::SystemDescription => Tlv::SystemDescription((SystemDescriptionTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                                  ^                                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 190 -             TlvType::SystemDescription => Tlv::SystemDescription((SystemDescriptionTLV::new_from_bytes(bytes))),
[INFO] [stdout] 190 +             TlvType::SystemDescription => Tlv::SystemDescription(SystemDescriptionTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:191:68
[INFO] [stdout]     |
[INFO] [stdout] 191 |             TlvType::SystemCapabilities => Tlv::SystemCapabilities((SystemCapabilitiesTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                                    ^                                            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 191 -             TlvType::SystemCapabilities => Tlv::SystemCapabilities((SystemCapabilitiesTLV::new_from_bytes(bytes))),
[INFO] [stdout] 191 +             TlvType::SystemCapabilities => Tlv::SystemCapabilities(SystemCapabilitiesTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:192:66
[INFO] [stdout]     |
[INFO] [stdout] 192 |             TlvType::ManagementAddress => Tlv::ManagementAddress((ManagementAddressTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                                  ^                                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 192 -             TlvType::ManagementAddress => Tlv::ManagementAddress((ManagementAddressTLV::new_from_bytes(bytes))),
[INFO] [stdout] 192 +             TlvType::ManagementAddress => Tlv::ManagementAddress(ManagementAddressTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/tlv.rs:193:80
[INFO] [stdout]     |
[INFO] [stdout] 193 |             TlvType::OrganizationallySpecific => Tlv::OrganizationallySpecific((OrganizationallySpecificTLV::new_from_bytes(bytes))),
[INFO] [stdout]     |                                                                                ^                                                  ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 193 -             TlvType::OrganizationallySpecific => Tlv::OrganizationallySpecific((OrganizationallySpecificTLV::new_from_bytes(bytes))),
[INFO] [stdout] 193 +             TlvType::OrganizationallySpecific => Tlv::OrganizationallySpecific(OrganizationallySpecificTLV::new_from_bytes(bytes) ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/eolldpdu_tlv.rs:45:30
[INFO] [stdout]    |
[INFO] [stdout] 45 |         let mut type_value = bytes[0];
[INFO] [stdout]    |                              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `last_bit`
[INFO] [stdout]    --> src/tlv/managementaddress_tlv.rs:157:13
[INFO] [stdout]     |
[INFO] [stdout] 157 |         let last_bit = bytes[0] & 0b00000001;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_bit`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]    --> src/tlv/managementaddress_tlv.rs:154:30
[INFO] [stdout]     |
[INFO] [stdout] 154 |         let mut type_value = bytes[0];
[INFO] [stdout]     |                              ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/organizationallyspecific_tlv.rs:74:34
[INFO] [stdout]    |
[INFO] [stdout] 74 |         let mut type_value: u8 = bytes[0];
[INFO] [stdout]    |                                  ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/organizationallyspecific_tlv.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |         type_value = type_value >> 1;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `length_value` is never read
[INFO] [stdout]   --> src/tlv/organizationallyspecific_tlv.rs:84:13
[INFO] [stdout]    |
[INFO] [stdout] 84 |             length_value= length_value + 256;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value_bytes`
[INFO] [stdout]   --> src/tlv/portdescription_tlv.rs:43:13
[INFO] [stdout]    |
[INFO] [stdout] 43 |         let value_bytes: Vec<u8> = value.as_bytes().to_vec();
[INFO] [stdout]    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value_bytes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/portdescription_tlv.rs:55:30
[INFO] [stdout]    |
[INFO] [stdout] 55 |         let mut type_value = bytes[0];
[INFO] [stdout]    |                              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `length` is assigned to, but never used
[INFO] [stdout]    --> src/tlv/portid_tlv.rs:175:13
[INFO] [stdout]     |
[INFO] [stdout] 175 |         let mut length = bytes[1] as usize;
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_length` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `length` is never read
[INFO] [stdout]    --> src/tlv/portid_tlv.rs:177:13
[INFO] [stdout]     |
[INFO] [stdout] 177 |             length += 1 << 9;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]    --> src/tlv/systemcapabilities_tlv.rs:146:30
[INFO] [stdout]     |
[INFO] [stdout] 146 |         let mut type_value = bytes[0];
[INFO] [stdout]     |                              ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/systemdescription_tlv.rs:54:30
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let mut type_value = bytes[0];
[INFO] [stdout]    |                              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/systemname_tlv.rs:54:30
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let mut type_value = bytes[0];
[INFO] [stdout]    |                              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/ttl_tlv.rs:53:30
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let mut type_value = bytes[0];
[INFO] [stdout]    |                              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]   --> src/tlv/ttl_tlv.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 |         type_value = type_value >> 1;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `type_value` is never read
[INFO] [stdout]    --> src/tlv.rs:176:34
[INFO] [stdout]     |
[INFO] [stdout] 176 |         let mut type_value: u8 = bytes[0];
[INFO] [stdout]     |                                  ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_empty` is never used
[INFO] [stdout]    --> src/lldpdu.rs:197:12
[INFO] [stdout]     |
[INFO] [stdout]  51 | impl Lldpdu {
[INFO] [stdout]     | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 197 |     pub fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `get_length` and `from_bytes` are never used
[INFO] [stdout]    --> src/tlv.rs:163:12
[INFO] [stdout]     |
[INFO] [stdout] 114 | impl Tlv {
[INFO] [stdout]     | -------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 163 |     pub fn get_length(bytes: &[u8]) -> u16 {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 174 |     pub fn from_bytes(bytes: &[u8]) -> Tlv {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `enabled` is never used
[INFO] [stdout]    --> src/tlv/systemcapabilities_tlv.rs:205:8
[INFO] [stdout]     |
[INFO] [stdout] 115 | impl SystemCapabilitiesTLV {
[INFO] [stdout]     | -------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 205 |     fn enabled(&self, capabilities: u16) -> bool {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.40s
[INFO] running `Command { std: "docker" "inspect" "fa6f826fd6d1c1f41c2295ebf3859ace0843d5fe0f45f0873678282e16d67096", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fa6f826fd6d1c1f41c2295ebf3859ace0843d5fe0f45f0873678282e16d67096", kill_on_drop: false }`
[INFO] [stdout] fa6f826fd6d1c1f41c2295ebf3859ace0843d5fe0f45f0873678282e16d67096
