[INFO] cloning repository https://github.com/ayourtch/scarust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ayourtch/scarust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fscarust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fscarust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb58b84cfc844297bedb13a4210a859d9f04c787 [INFO] checking ayourtch/scarust/bb58b84cfc844297bedb13a4210a859d9f04c787 against master#040e2f8b9ff2d76fbe2146d6003e297ed4532088 for pr-143619 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fscarust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ayourtch/scarust [INFO] finished tweaking git repo https://github.com/ayourtch/scarust [INFO] tweaked toml for git repo https://github.com/ayourtch/scarust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ayourtch/scarust on toolchain 040e2f8b9ff2d76fbe2146d6003e297ed4532088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+040e2f8b9ff2d76fbe2146d6003e297ed4532088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+040e2f8b9ff2d76fbe2146d6003e297ed4532088" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 135 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.3.6 (available: v0.6.0) [INFO] [stderr] Adding pcap-parser v0.14.1 (available: v0.16.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+040e2f8b9ff2d76fbe2146d6003e297ed4532088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded circular v0.3.0 [INFO] [stderr] Downloaded pcap-parser v0.14.1 [INFO] [stderr] Downloaded linkme-impl v0.3.33 [INFO] [stderr] Downloaded criterion-plot v0.4.5 [INFO] [stderr] Downloaded cfb-mode v0.8.2 [INFO] [stderr] Downloaded generic-array v1.2.0 [INFO] [stderr] Downloaded criterion v0.3.6 [INFO] [stderr] Downloaded mac_address v1.1.8 [INFO] [stderr] Downloaded csv-core v0.1.12 [INFO] [stderr] Downloaded half v1.8.3 [INFO] [stderr] Downloaded inventory v0.3.20 [INFO] [stderr] Downloaded serde_cbor v0.11.2 [INFO] [stderr] Downloaded typetag-impl v0.2.20 [INFO] [stderr] Downloaded typetag v0.2.20 [INFO] [stderr] Downloaded linkme v0.3.33 [INFO] [stderr] Downloaded mopa v0.2.2 [INFO] [stderr] Downloaded csv v1.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+040e2f8b9ff2d76fbe2146d6003e297ed4532088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ca7d8b407edf173fede4956098850a01d783b84ba99944ef1ebeba4b0da23c0 [INFO] running `Command { std: "docker" "start" "-a" "0ca7d8b407edf173fede4956098850a01d783b84ba99944ef1ebeba4b0da23c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ca7d8b407edf173fede4956098850a01d783b84ba99944ef1ebeba4b0da23c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ca7d8b407edf173fede4956098850a01d783b84ba99944ef1ebeba4b0da23c0", kill_on_drop: false }` [INFO] [stdout] 0ca7d8b407edf173fede4956098850a01d783b84ba99944ef1ebeba4b0da23c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+040e2f8b9ff2d76fbe2146d6003e297ed4532088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a37868af16d789d38a40d2e1122cc17c2b518e504dfd5865debf1f95af51412d [INFO] running `Command { std: "docker" "start" "-a" "a37868af16d789d38a40d2e1122cc17c2b518e504dfd5865debf1f95af51412d", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling typeid v1.0.3 [INFO] [stderr] Compiling linkme-impl v0.3.33 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking jiff v0.2.15 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking inventory v0.3.20 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking circular v0.3.0 [INFO] [stderr] Checking mopa v0.2.2 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking rusticata-macros v4.1.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking pcap-parser v0.14.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-padding v0.3.3 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking criterion-plot v0.4.5 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking cbc v0.1.2 [INFO] [stderr] Checking des v0.8.1 [INFO] [stderr] Checking cfb-mode v0.8.2 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking mac_address v1.1.8 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling typetag-impl v0.2.20 [INFO] [stderr] Compiling oside-derive v0.1.0 (/opt/rustwide/workdir/oside-derive) [INFO] [stderr] Checking linkme v0.3.33 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking erased-serde v0.4.6 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking generic-array v1.2.0 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking typetag v0.2.20 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking oside v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking criterion v0.3.6 [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/protocols/udp.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] 95 + for i in my_index + 1..encoded_data.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/protocols/udp.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] 112 + for i in my_index + 1..encoded_data.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/protocols/udp.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] 95 + for i in my_index + 1..encoded_data.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/protocols/udp.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - for i in (my_index + 1..encoded_data.len()) { [INFO] [stdout] 112 + for i in my_index + 1..encoded_data.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/protocols/pvti.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | panic!("FIXME"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 25 | self.data.to_vec() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/pvti.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | panic!("FIXME"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 92 | / for chunk in &my_layer.chunks { [INFO] [stdout] 93 | | result.extend(chunk.encode::()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_____^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/oside_snmp_session.rs:884:24 [INFO] [stdout] | [INFO] [stdout] 884 | if let SnmpGetResponse(resp) = snmp_response { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/protocols/pvti.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | panic!("FIXME"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 25 | self.data.to_vec() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/pvti.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | panic!("FIXME"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 92 | / for chunk in &my_layer.chunks { [INFO] [stdout] 93 | | result.extend(chunk.encode::()); [INFO] [stdout] 94 | | } [INFO] [stdout] | |_____^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/oside_snmp_session.rs:884:24 [INFO] [stdout] | [INFO] [stdout] 884 | if let SnmpGetResponse(resp) = snmp_response { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1809:13 [INFO] [stdout] | [INFO] [stdout] 1809 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `offset` is never read [INFO] [stdout] --> src/protocols/dot11.rs:2642:9 [INFO] [stdout] | [INFO] [stdout] 2642 | offset += dot11_offset; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:3896:13 [INFO] [stdout] | [INFO] [stdout] 3533 | 127 => { [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 3896 | 127 => { [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:3984:13 [INFO] [stdout] | [INFO] [stdout] 3618 | 255 => { [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 3984 | 255 => { [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:4199:13 [INFO] [stdout] | [INFO] [stdout] 4119 | ParsedElement::ExtendedCapabilities(capabilities) => { [INFO] [stdout] | ------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4199 | ParsedElement::ExtendedCapabilities(ec) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:4402:13 [INFO] [stdout] | [INFO] [stdout] 4132 | ParsedElement::Unknown(element) => { [INFO] [stdout] | ------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4402 | ParsedElement::Unknown(element) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `field_length` is never read [INFO] [stdout] --> src/protocols/dot11.rs:1809:13 [INFO] [stdout] | [INFO] [stdout] 1809 | field_length += 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `offset` is never read [INFO] [stdout] --> src/protocols/dot11.rs:2642:9 [INFO] [stdout] | [INFO] [stdout] 2642 | offset += dot11_offset; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:3896:13 [INFO] [stdout] | [INFO] [stdout] 3533 | 127 => { [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 3896 | 127 => { [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:3984:13 [INFO] [stdout] | [INFO] [stdout] 3618 | 255 => { [INFO] [stdout] | --- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 3984 | 255 => { [INFO] [stdout] | ^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:4199:13 [INFO] [stdout] | [INFO] [stdout] 4119 | ParsedElement::ExtendedCapabilities(capabilities) => { [INFO] [stdout] | ------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4199 | ParsedElement::ExtendedCapabilities(ec) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocols/dot11.rs:4402:13 [INFO] [stdout] | [INFO] [stdout] 4132 | ParsedElement::Unknown(element) => { [INFO] [stdout] | ------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4402 | ParsedElement::Unknown(element) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_raw_usm_params` is never used [INFO] [stdout] --> src/oside_snmp_session.rs:667:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl OsideSnmpSession { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 667 | fn parse_raw_usm_params(&self, raw_data: &[u8]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_frame_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2026:4 [INFO] [stdout] | [INFO] [stdout] 2026 | fn encode_frame_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_seq_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2047:4 [INFO] [stdout] | [INFO] [stdout] 2047 | fn encode_seq_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_radiotap_length` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2247:4 [INFO] [stdout] | [INFO] [stdout] 2247 | fn encode_radiotap_length( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_radiotap_present` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2265:4 [INFO] [stdout] | [INFO] [stdout] 2265 | fn encode_radiotap_present( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_qos_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2789:4 [INFO] [stdout] | [INFO] [stdout] 2789 | fn encode_qos_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_ht_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2818:4 [INFO] [stdout] | [INFO] [stdout] 2818 | fn encode_ht_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_capabilities` is never used [INFO] [stdout] --> src/protocols/dot11.rs:3323:4 [INFO] [stdout] | [INFO] [stdout] 3323 | fn encode_capabilities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_option_value` is never used [INFO] [stdout] --> src/protocols/dot11.rs:5065:4 [INFO] [stdout] | [INFO] [stdout] 5065 | fn decode_option_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_generic_asn1` is never used [INFO] [stdout] --> src/protocols/snmp.rs:3364:4 [INFO] [stdout] | [INFO] [stdout] 3364 | fn decode_generic_asn1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_generic_asn1` is never used [INFO] [stdout] --> src/protocols/snmp.rs:3392:4 [INFO] [stdout] | [INFO] [stdout] 3392 | fn encode_generic_asn1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:230:10 [INFO] [stdout] | [INFO] [stdout] 226 | #[derive(PartialEq, Clone, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 230 | Func(fn() -> T), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_pcap.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct testProto { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::protocols::snmp::*` [INFO] [stdout] --> examples/emptydns.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use oside::protocols::snmp::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMP` [INFO] [stdout] --> examples/emptydns.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use oside::SNMP; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPGETORRESPONSE` [INFO] [stdout] --> examples/emptydns.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use oside::SNMPGETORRESPONSE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPGETRESPONSE` [INFO] [stdout] --> examples/emptydns.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use oside::SNMPGETRESPONSE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPV2C` [INFO] [stdout] --> examples/emptydns.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use oside::SNMPV2C; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPVARBIND` [INFO] [stdout] --> examples/emptydns.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use oside::SNMPVARBIND; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `try_radiotap` [INFO] [stdout] --> examples/pcap2json.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let try_radiotap = p.data[0] == 0 && p.data[1] == 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_try_radiotap` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> examples/emptydns.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test1.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct testProto { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPGETBULK` [INFO] [stdout] --> examples/snmpwalk.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use oside::SNMPGETBULK; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oside::SNMPGETNEXT` [INFO] [stdout] --> examples/snmpwalk.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use oside::SNMPGETNEXT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> tests/test_gre.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let (x, len) = x.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> benches/encode_benchmark.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let out = p.fill().lencode(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> benches/encode_benchmark.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let out = p.fill().lencode(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> benches/encode_benchmark.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let out = x1.fill().lencode(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> benches/encode_benchmark.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let out = x1.fill().lencode(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> examples/first.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let ip = Ip::default(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ip` is never read [INFO] [stdout] --> examples/first.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut ip = IP!( [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layers2` [INFO] [stdout] --> examples/first.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let layers2 = layers.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layers2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip6` [INFO] [stdout] --> examples/first.rs:105:27 [INFO] [stdout] | [INFO] [stdout] 105 | if let Some((idx, ip6)) = ipv6_clone.find_layer(IPV6!()) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ip6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ipv4_test` [INFO] [stdout] --> examples/first.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let ipv4_test = [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ipv4_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_udp` [INFO] [stdout] --> examples/first.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let my_udp = &layers[UDP!()]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_udp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_src_ip` [INFO] [stdout] --> examples/first.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let my_src_ip = layers[IP!()].src.clone(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_src_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_encode.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct testProto { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/first.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | packets.write_pcap("ipv6.pcap"); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 109 | let _ = packets.write_pcap("ipv6.pcap"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_file_pcap.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct testProto { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `TestProto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `num_blocks` is assigned to, but never used [INFO] [stdout] --> tests/test_pcap.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut num_blocks = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_num_blocks` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> tests/test_pcap.rs:130:21 [INFO] [stdout] | [INFO] [stdout] 130 | if let Some(t) = pn.get_layer_mut(TCP!()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pn` [INFO] [stdout] --> tests/test_pcap.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let pn = p.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pn` [INFO] [stdout] --> tests/test_pcap.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let pn = p.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_pcap.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_pcap.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_pcap.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_pcap.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] ... [INFO] [stdout] 28 | let tp = Ether!() / IP!(src = "192.0.2.1") / UDP!() / TestProto!(); [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] ... [INFO] [stdout] 98 | let px = TestProto!().tos(2); [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] ... [INFO] [stdout] 106 | assert_ne!(fx[TestProto!()].mac2, Value::Random); [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usm_config` [INFO] [stdout] --> examples/snmpwalk.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | usm_config: &UsmConfig, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_usm_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | let mut config = UsmConfig::new("testuser") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | let mut config = UsmConfig::new("testuser") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> tests/test_snmp.rs:421:9 [INFO] [stdout] | [INFO] [stdout] 421 | let username = "MD5UserName"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `do_crypt` [INFO] [stdout] --> examples/snmpwalk.rs:885:9 [INFO] [stdout] | [INFO] [stdout] 885 | do_crypt: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_do_crypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:693:9 [INFO] [stdout] | [INFO] [stdout] 693 | let mut config = UsmConfig::new("integration_test_user") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> examples/snmpwalk.rs:1055:24 [INFO] [stdout] | [INFO] [stdout] 1055 | if let SnmpGetResponse(resp) = snmp_response { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:836:9 [INFO] [stdout] | [INFO] [stdout] 836 | let mut config = UsmConfig::new("testuser") [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] --> tests/test_snmp.rs:879:9 [INFO] [stdout] | [INFO] [stdout] 879 | let mut config = UsmConfig::new("testuser") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> tests/test_snmp.rs:928:19 [INFO] [stdout] | [INFO] [stdout] 928 | for (oid_str, expected) in test_cases { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decoded` [INFO] [stdout] --> tests/test_snmp.rs:934:14 [INFO] [stdout] | [INFO] [stdout] 934 | let (decoded, _) = BerOid::decode::(&encoded).unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decoded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `discovery_config` [INFO] [stdout] --> tests/test_snmp.rs:1130:9 [INFO] [stdout] | [INFO] [stdout] 1130 | let discovery_config = UsmConfig::new("testuser"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_discovery_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_snmp.rs:1125:9 [INFO] [stdout] | [INFO] [stdout] 1125 | let mut config = UsmConfig::new("testuser") [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USERNAME` is never used [INFO] [stdout] --> tests/test_snmp.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | pub const USERNAME: &str = "MD5UserName"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test_snmp.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | pcap.write_pcap("test_snmp.cap"); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = pcap.write_pcap("test_snmp.cap"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test_snmp.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | pcap.write_pcap("test_snmp_v3.cap"); [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] 54 | let _ = pcap.write_pcap("test_snmp_v3.cap"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decrypted_data` [INFO] [stdout] --> examples/snmpwalk.rs:1709:13 [INFO] [stdout] | [INFO] [stdout] 1709 | let decrypted_data = usm_config [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decrypted_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_raw_usm_params` is never used [INFO] [stdout] --> src/oside_snmp_session.rs:667:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl OsideSnmpSession { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 667 | fn parse_raw_usm_params(&self, raw_data: &[u8]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_frame_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2026:4 [INFO] [stdout] | [INFO] [stdout] 2026 | fn encode_frame_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_seq_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2047:4 [INFO] [stdout] | [INFO] [stdout] 2047 | fn encode_seq_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_radiotap_length` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2247:4 [INFO] [stdout] | [INFO] [stdout] 2247 | fn encode_radiotap_length( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_radiotap_present` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2265:4 [INFO] [stdout] | [INFO] [stdout] 2265 | fn encode_radiotap_present( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_qos_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2789:4 [INFO] [stdout] | [INFO] [stdout] 2789 | fn encode_qos_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_ht_control` is never used [INFO] [stdout] --> src/protocols/dot11.rs:2818:4 [INFO] [stdout] | [INFO] [stdout] 2818 | fn encode_ht_control( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_capabilities` is never used [INFO] [stdout] --> src/protocols/dot11.rs:3323:4 [INFO] [stdout] | [INFO] [stdout] 3323 | fn encode_capabilities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_option_value` is never used [INFO] [stdout] --> src/protocols/dot11.rs:5065:4 [INFO] [stdout] | [INFO] [stdout] 5065 | fn decode_option_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_generic_asn1` is never used [INFO] [stdout] --> src/protocols/snmp.rs:3364:4 [INFO] [stdout] | [INFO] [stdout] 3364 | fn decode_generic_asn1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_generic_asn1` is never used [INFO] [stdout] --> src/protocols/snmp.rs:3392:4 [INFO] [stdout] | [INFO] [stdout] 3392 | fn encode_generic_asn1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Get` is never constructed [INFO] [stdout] --> examples/snmpwalk.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | enum PduType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 30 | Get, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PduType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(NetworkProtocol, Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lib.rs:230:10 [INFO] [stdout] | [INFO] [stdout] 226 | #[derive(PartialEq, Clone, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 230 | Func(fn() -> T), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `num_blocks` is assigned to, but never used [INFO] [stdout] --> tests/test_file_pcap.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut num_blocks = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_num_blocks` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_raw_usm_params` is never used [INFO] [stdout] --> examples/snmpwalk.rs:844:8 [INFO] [stdout] | [INFO] [stdout] 265 | impl SnmpWalker { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 844 | fn parse_raw_usm_params(&self, raw_data: &[u8]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> tests/test_file_pcap.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | for i in 0..3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_file_pcap.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_file_pcap.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_file_pcap.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_file_pcap.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq, Serialize, Deserialize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TestProto` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 43.70s [INFO] running `Command { std: "docker" "inspect" "a37868af16d789d38a40d2e1122cc17c2b518e504dfd5865debf1f95af51412d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a37868af16d789d38a40d2e1122cc17c2b518e504dfd5865debf1f95af51412d", kill_on_drop: false }` [INFO] [stdout] a37868af16d789d38a40d2e1122cc17c2b518e504dfd5865debf1f95af51412d