[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] ac69b034ee48fed8126112557cb81d624686ae11 [INFO] checking ayourtch/scarust against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fscarust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ayourtch/scarust on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ayourtch/scarust 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mac_address v1.1.5 [INFO] [stderr] Downloaded pcap-parser v0.14.1 [INFO] [stderr] Downloaded linkme-impl v0.3.17 [INFO] [stderr] Downloaded linkme v0.3.17 [INFO] [stderr] Downloaded circular v0.3.0 [INFO] [stderr] Downloaded regex v1.10.1 [INFO] [stderr] Downloaded regex-automata v0.4.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0aeeef65f99bddc06947e6bb77ed536c9b75bdfafd053e60d4472fadf4462731 [INFO] running `Command { std: "docker" "start" "-a" "0aeeef65f99bddc06947e6bb77ed536c9b75bdfafd053e60d4472fadf4462731", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0aeeef65f99bddc06947e6bb77ed536c9b75bdfafd053e60d4472fadf4462731", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0aeeef65f99bddc06947e6bb77ed536c9b75bdfafd053e60d4472fadf4462731", kill_on_drop: false }` [INFO] [stdout] 0aeeef65f99bddc06947e6bb77ed536c9b75bdfafd053e60d4472fadf4462731 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41f31a6a84e418aff79fe50744abd219e1a372bdb82a413a79cf67e5212a3199 [INFO] running `Command { std: "docker" "start" "-a" "41f31a6a84e418aff79fe50744abd219e1a372bdb82a413a79cf67e5212a3199", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling serde v1.0.189 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking circular v0.3.0 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking mopa v0.2.2 [INFO] [stderr] Checking regex-automata v0.4.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking criterion-plot v0.4.5 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking rusticata-macros v4.1.0 [INFO] [stderr] Checking pcap-parser v0.14.1 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking nix v0.23.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.10.1 [INFO] [stderr] Checking generic-array v1.0.0 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking mac_address v1.1.5 [INFO] [stderr] Compiling linkme-impl v0.3.17 [INFO] [stderr] Compiling serde_derive v1.0.189 [INFO] [stderr] Compiling scarust-derive v0.1.0 (/opt/rustwide/workdir/scarust-derive) [INFO] [stdout] warning: unused import: `proc_macro::Literal` [INFO] [stdout] --> scarust-derive/src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use proc_macro::Literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Index`, `parse_macro_input`, `parse_quote` [INFO] [stdout] --> scarust-derive/src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | parse_macro_input, parse_quote, Data, DeriveInput, Fields, GenericParam, Generics, Index, Path, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Punct`, `Spacing`, `TokenTree` [INFO] [stdout] --> scarust-derive/src/lib.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | use proc_macro2::{Punct, Spacing, Span, TokenStream, TokenTree}; [INFO] [stdout] | ^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenStreamExt` [INFO] [stdout] --> scarust-derive/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | use quote::{ToTokens, TokenStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Punct` is imported redundantly [INFO] [stdout] --> scarust-derive/src/lib.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 58 | use proc_macro2::{Punct, Spacing, Span, TokenStream, TokenTree}; [INFO] [stdout] | ----- the item `Punct` is already imported here [INFO] [stdout] ... [INFO] [stdout] 136 | use proc_macro2::{Punct, Spacing, TokenStream, TokenTree}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Spacing` is imported redundantly [INFO] [stdout] --> scarust-derive/src/lib.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 58 | use proc_macro2::{Punct, Spacing, Span, TokenStream, TokenTree}; [INFO] [stdout] | ------- the item `Spacing` is already imported here [INFO] [stdout] ... [INFO] [stdout] 136 | use proc_macro2::{Punct, Spacing, TokenStream, TokenTree}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenStream` is imported redundantly [INFO] [stdout] --> scarust-derive/src/lib.rs:136:43 [INFO] [stdout] | [INFO] [stdout] 58 | use proc_macro2::{Punct, Spacing, Span, TokenStream, TokenTree}; [INFO] [stdout] | ----------- the item `TokenStream` is already imported here [INFO] [stdout] ... [INFO] [stdout] 136 | use proc_macro2::{Punct, Spacing, TokenStream, TokenTree}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenTree` is imported redundantly [INFO] [stdout] --> scarust-derive/src/lib.rs:136:56 [INFO] [stdout] | [INFO] [stdout] 58 | use proc_macro2::{Punct, Spacing, Span, TokenStream, TokenTree}; [INFO] [stdout] | --------- the item `TokenTree` is already imported here [INFO] [stdout] ... [INFO] [stdout] 136 | use proc_macro2::{Punct, Spacing, TokenStream, TokenTree}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> scarust-derive/src/lib.rs:619:9 [INFO] [stdout] | [INFO] [stdout] 619 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemStruct`, `parse_quote` [INFO] [stdout] --> scarust-derive/src/lib.rs:620:30 [INFO] [stdout] | [INFO] [stdout] 620 | use syn::{parenthesized, parse_quote, token, ItemStruct, LitInt, Token}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemStruct`, `braced`, `parse_quote` [INFO] [stdout] --> scarust-derive/src/lib.rs:1152:33 [INFO] [stdout] | [INFO] [stdout] 1152 | ... braced, parenthesized, parse_quote, token, ItemStruct, LitInt, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `get_def_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_get_def_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_set_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `get_def_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_get_def_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_set_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> scarust-derive/src/lib.rs:138:59 [INFO] [stdout] | [INFO] [stdout] 138 | fn insert_double_colon_if_second_is_angle_bracket(mut tokens: TokenStream) -> TokenStream { [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: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fixed_typ` [INFO] [stdout] --> scarust-derive/src/lib.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let fixed_typ: TokenStream = if self.0.is_value { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fixed_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `get_def_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_get_def_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_set_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fixed_typ` [INFO] [stdout] --> scarust-derive/src/lib.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 257 | let fixed_typ: TokenStream = if self.0.is_value { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fixed_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:265:13 [INFO] [stdout] | [INFO] [stdout] 265 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_set_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 278 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `get_def_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 287 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_get_def_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_set_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nproto_decoder` [INFO] [stdout] --> scarust-derive/src/lib.rs:629:13 [INFO] [stdout] | [INFO] [stdout] 629 | let mut nproto_decoder = default_decoder; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nproto_decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:659:25 [INFO] [stdout] | [INFO] [stdout] 659 | let comma_token: Option = content.parse()?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comma_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:662:25 [INFO] [stdout] | [INFO] [stdout] 662 | let eq_token: Option = content.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:681:25 [INFO] [stdout] | [INFO] [stdout] 681 | let comma_token: Option = content.parse()?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comma_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:684:25 [INFO] [stdout] | [INFO] [stdout] 684 | let eq_token: Option = content.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> scarust-derive/src/lib.rs:687:25 [INFO] [stdout] | [INFO] [stdout] 687 | let name = name.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> scarust-derive/src/lib.rs:720:29 [INFO] [stdout] | [INFO] [stdout] 720 | let n: usize = lit.base10_parse()?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> scarust-derive/src/lib.rs:629:9 [INFO] [stdout] | [INFO] [stdout] 629 | let mut nproto_decoder = default_decoder; [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] --> scarust-derive/src/lib.rs:816:9 [INFO] [stdout] | [INFO] [stdout] 816 | let mut tokens = quote! { [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] --> scarust-derive/src/lib.rs:967:9 [INFO] [stdout] | [INFO] [stdout] 967 | let mut tokens = quote! { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_param` [INFO] [stdout] --> scarust-derive/src/lib.rs:988:43 [INFO] [stdout] | [INFO] [stdout] 988 | if let GenericParam::Type(ref mut type_param) = *param { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> scarust-derive/src/lib.rs:1056:37 [INFO] [stdout] | [INFO] [stdout] 1056 | Fields::Unnamed(ref fields) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> scarust-derive/src/lib.rs:1352:37 [INFO] [stdout] | [INFO] [stdout] 1352 | Fields::Unnamed(ref fields) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1173:45 [INFO] [stdout] | [INFO] [stdout] 1173 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1181:45 [INFO] [stdout] | [INFO] [stdout] 1181 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1188:45 [INFO] [stdout] | [INFO] [stdout] 1188 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1190:45 [INFO] [stdout] | [INFO] [stdout] 1190 | ... let eq_token: Option]> = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1198:45 [INFO] [stdout] | [INFO] [stdout] 1198 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1206:45 [INFO] [stdout] | [INFO] [stdout] 1206 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1214:45 [INFO] [stdout] | [INFO] [stdout] 1214 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1222:45 [INFO] [stdout] | [INFO] [stdout] 1222 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `auto` is never read [INFO] [stdout] --> scarust-derive/src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct NetprotoStructField { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | auto: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetprotoStructField` 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: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:264:13 [INFO] [stdout] | [INFO] [stdout] 264 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:265:13 [INFO] [stdout] | [INFO] [stdout] 265 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 287 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:466:13 [INFO] [stdout] | [INFO] [stdout] 466 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:467:13 [INFO] [stdout] | [INFO] [stdout] 467 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `modify_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | let modify_X = Ident::new(&format!("modify_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `modify_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `layers_by_TYPEID` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:580:13 [INFO] [stdout] | [INFO] [stdout] 580 | let layers_by_TYPEID = Ident::new(&format!("{}_BY_TYPEID", &self.place), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `layers_by_typeid` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking linkme v0.3.17 [INFO] [stdout] warning: 65 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking scarust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(806..822) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(822..823) }, Ident { ident: "Ethertype", span: #0 bytes(824..833) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(833..834) }, Ident { ident: "u16", span: #0 bytes(835..838) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(806..822) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(824..833) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(835..838) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(860..871) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(871..872) }, Ident { ident: "Proto", span: #0 bytes(873..878) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(878..879) }, Ident { ident: "u8", span: #0 bytes(880..882) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(860..871) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(873..878) } [INFO] [stdout] VAL: Ident { ident: "u8", span: #0 bytes(880..882) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(904..914) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(914..915) }, Ident { ident: "Type", span: #0 bytes(916..920) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(920..921) }, Ident { ident: "u8", span: #0 bytes(922..924) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(904..914) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(916..920) } [INFO] [stdout] VAL: Ident { ident: "u8", span: #0 bytes(922..924) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(946..963) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(963..964) }, Ident { ident: "SrcPort", span: #0 bytes(965..972) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(972..973) }, Ident { ident: "u16", span: #0 bytes(974..977) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(946..963) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(965..972) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(974..977) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(999..1016) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(1016..1017) }, Ident { ident: "DstPort", span: #0 bytes(1018..1025) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(1025..1026) }, Ident { ident: "u16", span: #0 bytes(1027..1030) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(999..1016) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(1018..1025) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(1027..1030) } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(23436..23452) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(23452..23453) }, Ident { ident: "Ethertype", span: #0 bytes(23454..23463) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(23464..23465) }, Literal { kind: Integer, symbol: "0x0806", suffix: None, span: #0 bytes(23466..23472) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(23436..23452) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(23454..23463) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x0806 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(27990..28007) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28007..28008) }, Ident { ident: "DstPort", span: #0 bytes(28009..28016) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28017..28018) }, Literal { kind: Integer, symbol: "67", suffix: None, span: #0 bytes(28019..28021) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(27990..28007) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(28009..28016) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 67 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28043..28060) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28060..28061) }, Ident { ident: "SrcPort", span: #0 bytes(28062..28069) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28070..28071) }, Literal { kind: Integer, symbol: "67", suffix: None, span: #0 bytes(28072..28074) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28043..28060) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(28062..28069) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 67 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(28096..28113) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28113..28114) }, Ident { ident: "DstPort", span: #0 bytes(28115..28122) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28123..28124) }, Literal { kind: Integer, symbol: "68", suffix: None, span: #0 bytes(28125..28127) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(28096..28113) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(28115..28122) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 68 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28149..28166) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28166..28167) }, Ident { ident: "SrcPort", span: #0 bytes(28168..28175) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28176..28177) }, Literal { kind: Integer, symbol: "68", suffix: None, span: #0 bytes(28178..28180) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28149..28166) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(28168..28175) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 68 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(29362..29378) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(29378..29379) }, Ident { ident: "Ethertype", span: #0 bytes(29380..29389) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(29390..29391) }, Literal { kind: Integer, symbol: "0x8100", suffix: None, span: #0 bytes(29392..29398) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(29362..29378) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(29380..29389) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x8100 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(30730..30746) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(30746..30747) }, Ident { ident: "Ethertype", span: #0 bytes(30748..30757) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(30758..30759) }, Literal { kind: Integer, symbol: "0x88be", suffix: None, span: #0 bytes(30760..30766) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(30730..30746) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(30748..30757) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x88be } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(34671..34687) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(34687..34688) }, Ident { ident: "Ethertype", span: #0 bytes(34689..34698) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(34699..34700) }, Literal { kind: Integer, symbol: "0x6558", suffix: None, span: #0 bytes(34701..34707) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(34671..34687) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(34689..34698) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x6558 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(35544..35561) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(35561..35562) }, Ident { ident: "DstPort", span: #0 bytes(35563..35570) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(35571..35572) }, Literal { kind: Integer, symbol: "6081", suffix: None, span: #0 bytes(35573..35577) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(35544..35561) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(35563..35570) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6081 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(35599..35616) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(35616..35617) }, Ident { ident: "SrcPort", span: #0 bytes(35618..35625) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(35626..35627) }, Literal { kind: Integer, symbol: "6081", suffix: None, span: #0 bytes(35628..35632) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(35599..35616) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(35618..35625) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6081 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(37391..37402) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(37402..37403) }, Ident { ident: "Proto", span: #0 bytes(37404..37409) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(37410..37411) }, Literal { kind: Integer, symbol: "47", suffix: None, span: #0 bytes(37412..37414) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(37391..37402) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(37404..37409) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 47 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(41683..41694) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(41694..41695) }, Ident { ident: "Proto", span: #0 bytes(41696..41701) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(41702..41703) }, Literal { kind: Integer, symbol: "1", suffix: None, span: #0 bytes(41704..41705) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(41683..41694) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(41696..41701) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 1 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(42013..42023) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(42023..42024) }, Ident { ident: "Type", span: #0 bytes(42025..42029) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(42030..42031) }, Literal { kind: Integer, symbol: "8", suffix: None, span: #0 bytes(42032..42033) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(42013..42023) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(42025..42029) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 8 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(42213..42223) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(42223..42224) }, Ident { ident: "Type", span: #0 bytes(42225..42229) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(42230..42231) }, Literal { kind: Integer, symbol: "0", suffix: None, span: #0 bytes(42232..42233) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(42213..42223) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(42225..42229) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(43171..43187) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(43187..43188) }, Ident { ident: "Ethertype", span: #0 bytes(43189..43198) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(43199..43200) }, Literal { kind: Integer, symbol: "0x800", suffix: None, span: #0 bytes(43201..43206) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(43171..43187) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(43189..43198) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x800 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(43228..43239) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(43239..43240) }, Ident { ident: "Proto", span: #0 bytes(43241..43246) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(43247..43248) }, Literal { kind: Integer, symbol: "4", suffix: None, span: #0 bytes(43249..43250) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(43228..43239) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(43241..43246) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(52563..52574) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(52574..52575) }, Ident { ident: "Proto", span: #0 bytes(52576..52581) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(52582..52583) }, Literal { kind: Integer, symbol: "6", suffix: None, span: #0 bytes(52584..52585) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(52563..52574) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(52576..52581) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(56530..56541) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(56541..56542) }, Ident { ident: "Proto", span: #0 bytes(56543..56548) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(56549..56550) }, Literal { kind: Integer, symbol: "17", suffix: None, span: #0 bytes(56551..56553) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(56530..56541) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(56543..56548) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 17 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(59873..59890) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(59890..59891) }, Ident { ident: "DstPort", span: #0 bytes(59892..59899) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(59900..59901) }, Literal { kind: Integer, symbol: "4789", suffix: None, span: #0 bytes(59902..59906) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(59873..59890) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(59892..59899) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4789 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(59928..59945) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(59945..59946) }, Ident { ident: "SrcPort", span: #0 bytes(59947..59954) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(59955..59956) }, Literal { kind: Integer, symbol: "4789", suffix: None, span: #0 bytes(59957..59961) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(59928..59945) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(59947..59954) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4789 } } [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[nproto(register(UDP_DST_PORT_APPS, DstPort = 67))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `protocolRegistriesSentinel` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct protocolRegistriesSentinel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ProtocolRegistriesSentinel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/lib.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 34 | use rand::Rng; [INFO] [stdout] | --------- the item `Rng` is already imported here [INFO] [stdout] ... [INFO] [stdout] 184 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/arp.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/arp.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 67))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[nproto(register(UDP_DST_PORT_APPS, DstPort = 68))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 68))] [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 68))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `dot1Q` should have an upper camel case name [INFO] [stdout] --> src/protocols/dot1q.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct dot1Q { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Dot1q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `erspan` should have an upper camel case name [INFO] [stdout] --> src/protocols/erspan.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct erspan { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Erspan` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ether` should have an upper camel case name [INFO] [stdout] --> src/protocols/ether.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ether { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ether` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `echo` should have an upper camel case name [INFO] [stdout] --> src/protocols/icmp.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct echo { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Echo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `echoReply` should have an upper camel case name [INFO] [stdout] --> src/protocols/icmp.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct echoReply { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `EchoReply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/icmp.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/ip.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapFile` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct pcapFile { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `PcapFile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapFileData` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct pcapFileData { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PcapFileData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapPacket` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct pcapPacket { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `PcapPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `raw` should have an upper camel case name [INFO] [stdout] --> src/protocols/raw.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct raw { [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/tcp.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/tcp.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/udp.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lib.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | Err(e) => panic!("Could not parse!"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/lib.rs:497:31 [INFO] [stdout] | [INFO] [stdout] 497 | pub fn g(&self, idx: T) -> &T { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:501:37 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn item_at(&self, item: T, idx: usize) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:505:39 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn get_layer(&self, item: T) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:513:49 [INFO] [stdout] | [INFO] [stdout] 513 | pub fn get_innermost_layer(&self, item: T) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:521:47 [INFO] [stdout] | [INFO] [stdout] 521 | pub fn get_layer_mut(&mut self, item: T) -> Option<&mut T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:530:39 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn layers_of(&self, item: T) -> Vec<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/lib.rs:673:9 [INFO] [stdout] | [INFO] [stdout] 673 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/lib.rs:674:9 [INFO] [stdout] | [INFO] [stdout] 674 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/lib.rs:675:9 [INFO] [stdout] | [INFO] [stdout] 675 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/protocols/arp.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let (v, delta) = D::decode_vec(buf, me.hwlen.value() as usize)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/protocols/arp.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let (v, delta) = D::decode_vec(buf, me.plen.value() as usize)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/arp.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/arp.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/dot1q.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/dot1q.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/dot1q.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/dot1q.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/dot1q.rs:40:37 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/dot1q.rs:40:57 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/erspan.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let mut out: Vec = vec![]; [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] --> src/protocols/erspan.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut the_u16: u16 = u16::from(7 & me.cos.value()) << 13 [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/erspan.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let mut the_u16: u16 = (u16::from(me.vlan.value()) & 0xfff) | u16::from(version & 0xf) << 12; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut the_u32: u32 = (u32::from(me.port_index.value()) & 0xfffff) [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ether.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ether.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ether.rs:20:53 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ether.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ether.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ether.rs:23:52 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/geneve.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/geneve.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/geneve.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/geneve.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/geneve.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/gre.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/gre.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/gre.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/gre.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mut out: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut the_u16: u16 = u16::from(me.chksum_present.value()) << 15 [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/gre.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/icmp.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/icmp.rs:27:45 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/icmp.rs:27:65 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/protocols/ip.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | fn from(v: u8) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/protocols/ip.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/protocols/ip.rs:66:39 [INFO] [stdout] | [INFO] [stdout] 66 | fn sample(&self, rng: &mut R) -> IpFlags { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/protocols/ip.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/ip.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:108:37 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:108:57 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:112:40 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:112:60 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:116:24 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:116:63 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/ip.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | me: &Ip, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/pcap_file.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut out: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vp` [INFO] [stdout] --> src/protocols/pcap_file.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut vp: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_vp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/pcap_file.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut vp: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/pcap_file.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | me: &mut pcapFileData, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let mut pkts = stk [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/pcap_file.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | fn fill_snaplen(layer: &pcapFileData, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/pcap_file.rs:118:59 [INFO] [stdout] | [INFO] [stdout] 118 | fn fill_snaplen(layer: &pcapFileData, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:37 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:57 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/raw.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | fn fill(&self, stack: &LayerStack, my_index: usize, out_stack: &mut LayerStack) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/raw.rs:17:40 [INFO] [stdout] | [INFO] [stdout] 17 | fn fill(&self, stack: &LayerStack, my_index: usize, out_stack: &mut LayerStack) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/raw.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/raw.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/raw.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:32:58 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:36:38 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:36:58 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/tcp.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:61:44 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:61:64 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/protocols/tcp.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut sum: u32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ph` [INFO] [stdout] --> src/protocols/tcp.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let mut ph: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut sum: u32 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let mut tcp_hdr_len: u16 = 20; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut ph: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:19:61 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/udp.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | me: &Udp, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:41:44 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:41:64 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/protocols/udp.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut sum: u32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ph` [INFO] [stdout] --> src/protocols/udp.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ph: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut sum: u32 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut udp_hdr_len: u16 = 8; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ph: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:105:58 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/vxlan.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/vxlan.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/vxlan.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/vxlan.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/vxlan.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readme_test` is never used [INFO] [stdout] --> src/lib.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn readme_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_crc` is never used [INFO] [stdout] --> src/protocols/ether.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Ethertype` should have a snake case name [INFO] [stdout] --> src/lib.rs:40:37 [INFO] [stdout] | [INFO] [stdout] 40 | #[nproto(registry(ETHERTYPE_LAYERS, Ethertype: u16))] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ethertype` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Proto` should have a snake case name [INFO] [stdout] --> src/lib.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | #[nproto(registry(IANA_LAYERS, Proto: u8))] [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `proto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Type` should have a snake case name [INFO] [stdout] --> src/lib.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | #[nproto(registry(ICMP_TYPES, Type: u8))] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 42 | #[nproto(registry(ICMP_TYPES, r#type: u8))] [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `SrcPort` should have a snake case name [INFO] [stdout] --> src/lib.rs:43:38 [INFO] [stdout] | [INFO] [stdout] 43 | #[nproto(registry(UDP_SRC_PORT_APPS, SrcPort: u16))] [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `src_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `DstPort` should have a snake case name [INFO] [stdout] --> src/lib.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | #[nproto(registry(UDP_DST_PORT_APPS, DstPort: u16))] [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `dst_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Box` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 591 | return layer.clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&dyn Layer` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:606:29 [INFO] [stdout] | [INFO] [stdout] 606 | return layer.clone().downcast_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:685:26 [INFO] [stdout] | [INFO] [stdout] 685 | data: buf.clone().to_vec(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] ... [INFO] [stdout] 42 | let encoded_icmp_header = if let Some(icmp) = stack.item_at(ICMP!(), my_index) { [INFO] [stdout] | ------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] ... [INFO] [stdout] 149 | let encoded_ip_header = if let Some(ip) = stack.item_at(IP!(), my_index) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 73 | 0xa1b2c3d4 => PcapFileData!().decode_with_decoder::(buf), [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 74 | 0xd4c3b2a1 => PcapFileData!().decode_with_decoder::(buf), [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 79 | dec.map(|(lyr, delta)| (lyr.layers_of(PcapFileData!())[0].clone(), delta)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] ... [INFO] [stdout] 103 | if let Some((stk, delta)) = PcapPacket!().decode_with_decoder::(&buf[ci..]) { [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] ... [INFO] [stdout] 105 | .layers_of(PcapPacket!()) [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] ... [INFO] [stdout] 76 | let encoded_tcp_header = if let Some(tcp) = stack.item_at(TCP!(), my_index) { [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] ::: src/protocols/tcp.rs:95:41 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(ip) = stack.item_at(IP!(), my_index - 1) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] ... [INFO] [stdout] 56 | let encoded_udp_header = if let Some(udp) = stack.item_at(UDP!(), my_index) { [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] ::: src/protocols/udp.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(ip) = stack.item_at(IP!(), my_index - 1) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 221 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking criterion v0.3.6 [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> examples/first.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TypeId` is imported redundantly [INFO] [stdout] --> examples/first.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | use scarust::*; [INFO] [stdout] | ---------- the item `TypeId` is already imported here [INFO] [stdout] 2 | use std::any::Any; [INFO] [stdout] 3 | use std::any::TypeId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::boxed::Box` [INFO] [stdout] --> examples/first.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> examples/first.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `FromStringHashmap` is imported redundantly [INFO] [stdout] --> examples/first.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 1 | use scarust::*; [INFO] [stdout] | ---------- the item `FromStringHashmap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 49 | use scarust::FromStringHashmap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test1.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | 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: `scarust::*` [INFO] [stdout] --> tests/test1.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | use scarust::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_encode.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | 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 variable: `ip` [INFO] [stdout] --> examples/first.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | 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:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | 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:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | 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: `my_udp` [INFO] [stdout] --> examples/first.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | 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:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let mut 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: variable does not need to be mutable [INFO] [stdout] --> examples/first.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let mut my_src_ip = layers[IP!()].src.clone(); [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: unused variable: `out` [INFO] [stdout] --> benches/encode_benchmark.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let out = p.fill().encode(); [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 import: `std::convert::TryFrom` [INFO] [stdout] --> examples/clean.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `LegacyPcapReader` is imported redundantly [INFO] [stdout] --> tests/test_pcap.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use pcap_parser::LegacyPcapReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | use pcap_parser::*; [INFO] [stdout] | -------------- the item `LegacyPcapReader` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `LegacyPcapReader` is imported redundantly [INFO] [stdout] --> tests/test_file_pcap.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use pcap_parser::LegacyPcapReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | use pcap_parser::*; [INFO] [stdout] | -------------- the item `LegacyPcapReader` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_pcap.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | 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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_file_pcap.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | 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: the item `File` is imported redundantly [INFO] [stdout] --> tests/test_file_pcap.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs::File; [INFO] [stdout] | ------------- the item `File` is already imported here [INFO] [stdout] ... [INFO] [stdout] 41 | use std::fs::File; [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 import: `scarust::protocols::bootp::Bootp` [INFO] [stdout] --> tests/test_pcap.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | use scarust::protocols::bootp::Bootp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(806..822) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(822..823) }, Ident { ident: "Ethertype", span: #0 bytes(824..833) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(833..834) }, Ident { ident: "u16", span: #0 bytes(835..838) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(806..822) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(824..833) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(835..838) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(860..871) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(871..872) }, Ident { ident: "Proto", span: #0 bytes(873..878) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(878..879) }, Ident { ident: "u8", span: #0 bytes(880..882) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(860..871) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(873..878) } [INFO] [stdout] VAL: Ident { ident: "u8", span: #0 bytes(880..882) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(904..914) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(914..915) }, Ident { ident: "Type", span: #0 bytes(916..920) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(920..921) }, Ident { ident: "u8", span: #0 bytes(922..924) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(904..914) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(916..920) } [INFO] [stdout] VAL: Ident { ident: "u8", span: #0 bytes(922..924) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(946..963) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(963..964) }, Ident { ident: "SrcPort", span: #0 bytes(965..972) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(972..973) }, Ident { ident: "u16", span: #0 bytes(974..977) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(946..963) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(965..972) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(974..977) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(999..1016) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(1016..1017) }, Ident { ident: "DstPort", span: #0 bytes(1018..1025) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(1025..1026) }, Ident { ident: "u16", span: #0 bytes(1027..1030) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(999..1016) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(1018..1025) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(1027..1030) } [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(23436..23452) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(23452..23453) }, Ident { ident: "Ethertype", span: #0 bytes(23454..23463) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(23464..23465) }, Literal { kind: Integer, symbol: "0x0806", suffix: None, span: #0 bytes(23466..23472) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(23436..23452) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(23454..23463) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x0806 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(27990..28007) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28007..28008) }, Ident { ident: "DstPort", span: #0 bytes(28009..28016) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28017..28018) }, Literal { kind: Integer, symbol: "67", suffix: None, span: #0 bytes(28019..28021) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(27990..28007) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(28009..28016) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 67 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28043..28060) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28060..28061) }, Ident { ident: "SrcPort", span: #0 bytes(28062..28069) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28070..28071) }, Literal { kind: Integer, symbol: "67", suffix: None, span: #0 bytes(28072..28074) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28043..28060) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(28062..28069) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 67 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(28096..28113) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28113..28114) }, Ident { ident: "DstPort", span: #0 bytes(28115..28122) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28123..28124) }, Literal { kind: Integer, symbol: "68", suffix: None, span: #0 bytes(28125..28127) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(28096..28113) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(28115..28122) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 68 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28149..28166) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28166..28167) }, Ident { ident: "SrcPort", span: #0 bytes(28168..28175) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28176..28177) }, Literal { kind: Integer, symbol: "68", suffix: None, span: #0 bytes(28178..28180) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28149..28166) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(28168..28175) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 68 } } [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(29362..29378) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(29378..29379) }, Ident { ident: "Ethertype", span: #0 bytes(29380..29389) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(29390..29391) }, Literal { kind: Integer, symbol: "0x8100", suffix: None, span: #0 bytes(29392..29398) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(29362..29378) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(29380..29389) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x8100 } } [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] ... [INFO] [stdout] 85 | 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:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] ... [INFO] [stdout] 93 | 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] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(30730..30746) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(30746..30747) }, Ident { ident: "Ethertype", span: #0 bytes(30748..30757) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(30758..30759) }, Literal { kind: Integer, symbol: "0x88be", suffix: None, span: #0 bytes(30760..30766) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(30730..30746) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(30748..30757) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x88be } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(34671..34687) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(34687..34688) }, Ident { ident: "Ethertype", span: #0 bytes(34689..34698) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(34699..34700) }, Literal { kind: Integer, symbol: "0x6558", suffix: None, span: #0 bytes(34701..34707) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(34671..34687) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(34689..34698) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x6558 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(35544..35561) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(35561..35562) }, Ident { ident: "DstPort", span: #0 bytes(35563..35570) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(35571..35572) }, Literal { kind: Integer, symbol: "6081", suffix: None, span: #0 bytes(35573..35577) }] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(35544..35561) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(35563..35570) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6081 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(35599..35616) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(35616..35617) }, Ident { ident: "SrcPort", span: #0 bytes(35618..35625) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(35626..35627) }, Literal { kind: Integer, symbol: "6081", suffix: None, span: #0 bytes(35628..35632) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(35599..35616) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(35618..35625) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6081 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(37391..37402) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(37402..37403) }, Ident { ident: "Proto", span: #0 bytes(37404..37409) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(37410..37411) }, Literal { kind: Integer, symbol: "47", suffix: None, span: #0 bytes(37412..37414) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(37391..37402) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(37404..37409) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 47 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(41683..41694) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(41694..41695) }, Ident { ident: "Proto", span: #0 bytes(41696..41701) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(41702..41703) }, Literal { kind: Integer, symbol: "1", suffix: None, span: #0 bytes(41704..41705) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(41683..41694) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(41696..41701) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 1 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(42013..42023) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(42023..42024) }, Ident { ident: "Type", span: #0 bytes(42025..42029) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(42030..42031) }, Literal { kind: Integer, symbol: "8", suffix: None, span: #0 bytes(42032..42033) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(42013..42023) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(42025..42029) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 8 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(42213..42223) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(42223..42224) }, Ident { ident: "Type", span: #0 bytes(42225..42229) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(42230..42231) }, Literal { kind: Integer, symbol: "0", suffix: None, span: #0 bytes(42232..42233) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(42213..42223) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(42225..42229) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0 } } [INFO] [stdout] warning: variable `num_blocks` is assigned to, but never used [INFO] [stdout] --> tests/test_file_pcap.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(43171..43187) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(43187..43188) }, Ident { ident: "Ethertype", span: #0 bytes(43189..43198) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(43199..43200) }, Literal { kind: Integer, symbol: "0x800", suffix: None, span: #0 bytes(43201..43206) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(43171..43187) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(43189..43198) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x800 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(43228..43239) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(43239..43240) }, Ident { ident: "Proto", span: #0 bytes(43241..43246) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(43247..43248) }, Literal { kind: Integer, symbol: "4", suffix: None, span: #0 bytes(43249..43250) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(43228..43239) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(43241..43246) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4 } } [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> tests/test_file_pcap.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | 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:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(52563..52574) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(52574..52575) }, Ident { ident: "Proto", span: #0 bytes(52576..52581) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(52582..52583) }, Literal { kind: Integer, symbol: "6", suffix: None, span: #0 bytes(52584..52585) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(52563..52574) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(52576..52581) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6 } } [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(56530..56541) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(56541..56542) }, Ident { ident: "Proto", span: #0 bytes(56543..56548) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(56549..56550) }, Literal { kind: Integer, symbol: "17", suffix: None, span: #0 bytes(56551..56553) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(56530..56541) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(56543..56548) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 17 } } [INFO] [stdout] warning: variable `num_blocks` is assigned to, but never used [INFO] [stdout] --> tests/test_pcap.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | 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] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(59873..59890) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(59890..59891) }, Ident { ident: "DstPort", span: #0 bytes(59892..59899) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(59900..59901) }, Literal { kind: Integer, symbol: "4789", suffix: None, span: #0 bytes(59902..59906) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(59873..59890) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(59892..59899) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4789 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(59928..59945) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(59945..59946) }, Ident { ident: "SrcPort", span: #0 bytes(59947..59954) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(59955..59956) }, Literal { kind: Integer, symbol: "4789", suffix: None, span: #0 bytes(59957..59961) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(59928..59945) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(59947..59954) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4789 } } [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> tests/test_pcap.rs:127:21 [INFO] [stdout] | [INFO] [stdout] 127 | 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:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | let mut pn = p.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_pcap.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | let mut pn = p.clone(); [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: unused variable: `pn` [INFO] [stdout] --> tests/test_pcap.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let mut pn = p.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_pcap.rs:191:13 [INFO] [stdout] | [INFO] [stdout] 191 | let mut pn = p.clone(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_pcap.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[nproto(register(UDP_DST_PORT_APPS, DstPort = 67))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `protocolRegistriesSentinel` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct protocolRegistriesSentinel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ProtocolRegistriesSentinel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/lib.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 34 | use rand::Rng; [INFO] [stdout] | --------- the item `Rng` is already imported here [INFO] [stdout] ... [INFO] [stdout] 184 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/arp.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/arp.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 67))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[nproto(register(UDP_DST_PORT_APPS, DstPort = 68))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 68))] [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 68))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `dot1Q` should have an upper camel case name [INFO] [stdout] --> src/protocols/dot1q.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct dot1Q { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Dot1q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `erspan` should have an upper camel case name [INFO] [stdout] --> src/protocols/erspan.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct erspan { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Erspan` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ether` should have an upper camel case name [INFO] [stdout] --> src/protocols/ether.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ether { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ether` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `echo` should have an upper camel case name [INFO] [stdout] --> src/protocols/icmp.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct echo { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Echo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `echoReply` should have an upper camel case name [INFO] [stdout] --> src/protocols/icmp.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct echoReply { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `EchoReply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/icmp.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/ip.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapFile` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct pcapFile { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `PcapFile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapFileData` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct pcapFileData { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PcapFileData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapPacket` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct pcapPacket { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `PcapPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `raw` should have an upper camel case name [INFO] [stdout] --> src/protocols/raw.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct raw { [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/tcp.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/tcp.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/udp.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lib.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | Err(e) => panic!("Could not parse!"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/lib.rs:497:31 [INFO] [stdout] | [INFO] [stdout] 497 | pub fn g(&self, idx: T) -> &T { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:501:37 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn item_at(&self, item: T, idx: usize) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:505:39 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn get_layer(&self, item: T) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:513:49 [INFO] [stdout] | [INFO] [stdout] 513 | pub fn get_innermost_layer(&self, item: T) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:521:47 [INFO] [stdout] | [INFO] [stdout] 521 | pub fn get_layer_mut(&mut self, item: T) -> Option<&mut T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:530:39 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn layers_of(&self, item: T) -> Vec<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/lib.rs:673:9 [INFO] [stdout] | [INFO] [stdout] 673 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/lib.rs:674:9 [INFO] [stdout] | [INFO] [stdout] 674 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/lib.rs:675:9 [INFO] [stdout] | [INFO] [stdout] 675 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/protocols/arp.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let (v, delta) = D::decode_vec(buf, me.hwlen.value() as usize)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/protocols/arp.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let (v, delta) = D::decode_vec(buf, me.plen.value() as usize)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/arp.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/arp.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/dot1q.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/dot1q.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/dot1q.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/dot1q.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/dot1q.rs:40:37 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/dot1q.rs:40:57 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/erspan.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let mut out: Vec = vec![]; [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] --> src/protocols/erspan.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut the_u16: u16 = u16::from(7 & me.cos.value()) << 13 [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/erspan.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let mut the_u16: u16 = (u16::from(me.vlan.value()) & 0xfff) | u16::from(version & 0xf) << 12; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut the_u32: u32 = (u32::from(me.port_index.value()) & 0xfffff) [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ether.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ether.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ether.rs:20:53 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ether.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ether.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ether.rs:23:52 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/geneve.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/geneve.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/geneve.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/geneve.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/geneve.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/gre.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/gre.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/gre.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/gre.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mut out: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut the_u16: u16 = u16::from(me.chksum_present.value()) << 15 [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/gre.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/icmp.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/icmp.rs:27:45 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/icmp.rs:27:65 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/protocols/ip.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | fn from(v: u8) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/protocols/ip.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/protocols/ip.rs:66:39 [INFO] [stdout] | [INFO] [stdout] 66 | fn sample(&self, rng: &mut R) -> IpFlags { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/protocols/ip.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/ip.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:108:37 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:108:57 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:112:40 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:112:60 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:116:24 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:116:63 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/ip.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | me: &Ip, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/pcap_file.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut out: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vp` [INFO] [stdout] --> src/protocols/pcap_file.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut vp: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_vp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/pcap_file.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut vp: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/pcap_file.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | me: &mut pcapFileData, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let mut pkts = stk [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/pcap_file.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | fn fill_snaplen(layer: &pcapFileData, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/pcap_file.rs:118:59 [INFO] [stdout] | [INFO] [stdout] 118 | fn fill_snaplen(layer: &pcapFileData, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:37 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:57 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/raw.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | fn fill(&self, stack: &LayerStack, my_index: usize, out_stack: &mut LayerStack) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/raw.rs:17:40 [INFO] [stdout] | [INFO] [stdout] 17 | fn fill(&self, stack: &LayerStack, my_index: usize, out_stack: &mut LayerStack) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/raw.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/raw.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/raw.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:32:58 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:36:38 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:36:58 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/tcp.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:61:44 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:61:64 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/protocols/tcp.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut sum: u32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ph` [INFO] [stdout] --> src/protocols/tcp.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let mut ph: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut sum: u32 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let mut tcp_hdr_len: u16 = 20; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut ph: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:19:61 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/udp.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | me: &Udp, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:41:44 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:41:64 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/protocols/udp.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut sum: u32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ph` [INFO] [stdout] --> src/protocols/udp.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ph: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut sum: u32 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut udp_hdr_len: u16 = 8; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ph: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:105:58 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/vxlan.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/vxlan.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/vxlan.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/vxlan.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/vxlan.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readme_test` is never used [INFO] [stdout] --> src/lib.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn readme_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_crc` is never used [INFO] [stdout] --> src/protocols/ether.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Ethertype` should have a snake case name [INFO] [stdout] --> src/lib.rs:40:37 [INFO] [stdout] | [INFO] [stdout] 40 | #[nproto(registry(ETHERTYPE_LAYERS, Ethertype: u16))] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ethertype` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Proto` should have a snake case name [INFO] [stdout] --> src/lib.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | #[nproto(registry(IANA_LAYERS, Proto: u8))] [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `proto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Type` should have a snake case name [INFO] [stdout] --> src/lib.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | #[nproto(registry(ICMP_TYPES, Type: u8))] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 42 | #[nproto(registry(ICMP_TYPES, r#type: u8))] [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `SrcPort` should have a snake case name [INFO] [stdout] --> src/lib.rs:43:38 [INFO] [stdout] | [INFO] [stdout] 43 | #[nproto(registry(UDP_SRC_PORT_APPS, SrcPort: u16))] [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `src_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `DstPort` should have a snake case name [INFO] [stdout] --> src/lib.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | #[nproto(registry(UDP_DST_PORT_APPS, DstPort: u16))] [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `dst_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Box` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 591 | return layer.clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&dyn Layer` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:606:29 [INFO] [stdout] | [INFO] [stdout] 606 | return layer.clone().downcast_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:685:26 [INFO] [stdout] | [INFO] [stdout] 685 | data: buf.clone().to_vec(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] ... [INFO] [stdout] 42 | let encoded_icmp_header = if let Some(icmp) = stack.item_at(ICMP!(), my_index) { [INFO] [stdout] | ------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] ... [INFO] [stdout] 149 | let encoded_ip_header = if let Some(ip) = stack.item_at(IP!(), my_index) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 73 | 0xa1b2c3d4 => PcapFileData!().decode_with_decoder::(buf), [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 74 | 0xd4c3b2a1 => PcapFileData!().decode_with_decoder::(buf), [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 79 | dec.map(|(lyr, delta)| (lyr.layers_of(PcapFileData!())[0].clone(), delta)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] ... [INFO] [stdout] 103 | if let Some((stk, delta)) = PcapPacket!().decode_with_decoder::(&buf[ci..]) { [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] ... [INFO] [stdout] 105 | .layers_of(PcapPacket!()) [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] ... [INFO] [stdout] 76 | let encoded_tcp_header = if let Some(tcp) = stack.item_at(TCP!(), my_index) { [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] ::: src/protocols/tcp.rs:95:41 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(ip) = stack.item_at(IP!(), my_index - 1) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] ... [INFO] [stdout] 56 | let encoded_udp_header = if let Some(udp) = stack.item_at(UDP!(), my_index) { [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] ::: src/protocols/udp.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(ip) = stack.item_at(IP!(), my_index - 1) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 221 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.70s [INFO] running `Command { std: "docker" "inspect" "41f31a6a84e418aff79fe50744abd219e1a372bdb82a413a79cf67e5212a3199", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41f31a6a84e418aff79fe50744abd219e1a372bdb82a413a79cf67e5212a3199", kill_on_drop: false }` [INFO] [stdout] 41f31a6a84e418aff79fe50744abd219e1a372bdb82a413a79cf67e5212a3199 [INFO] checking ayourtch/scarust against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fscarust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ayourtch/scarust on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ayourtch/scarust 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b7da8ccddea70ad38344d00ec88a807b1858fcfcf6596c34568f33c8b5bd6a45 [INFO] running `Command { std: "docker" "start" "-a" "b7da8ccddea70ad38344d00ec88a807b1858fcfcf6596c34568f33c8b5bd6a45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7da8ccddea70ad38344d00ec88a807b1858fcfcf6596c34568f33c8b5bd6a45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7da8ccddea70ad38344d00ec88a807b1858fcfcf6596c34568f33c8b5bd6a45", kill_on_drop: false }` [INFO] [stdout] b7da8ccddea70ad38344d00ec88a807b1858fcfcf6596c34568f33c8b5bd6a45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46c8bea1516891d2dbb59292c20bb3315c4f11c3b8d86d5437189cd4d09dfb0f [INFO] running `Command { std: "docker" "start" "-a" "46c8bea1516891d2dbb59292c20bb3315c4f11c3b8d86d5437189cd4d09dfb0f", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.189 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking circular v0.3.0 [INFO] [stderr] Checking mopa v0.2.2 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking nix v0.23.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking regex-automata v0.4.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking criterion-plot v0.4.5 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking regex v1.10.1 [INFO] [stderr] Checking rusticata-macros v4.1.0 [INFO] [stderr] Checking pcap-parser v0.14.1 [INFO] [stderr] Checking generic-array v1.0.0 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking mac_address v1.1.5 [INFO] [stderr] Compiling linkme-impl v0.3.17 [INFO] [stderr] Compiling serde_derive v1.0.189 [INFO] [stderr] Compiling scarust-derive v0.1.0 (/opt/rustwide/workdir/scarust-derive) [INFO] [stdout] warning: unused import: `proc_macro::Literal` [INFO] [stdout] --> scarust-derive/src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use proc_macro::Literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Index`, `parse_macro_input`, `parse_quote` [INFO] [stdout] --> scarust-derive/src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | parse_macro_input, parse_quote, Data, DeriveInput, Fields, GenericParam, Generics, Index, Path, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Punct`, `Spacing`, `TokenTree` [INFO] [stdout] --> scarust-derive/src/lib.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | use proc_macro2::{Punct, Spacing, Span, TokenStream, TokenTree}; [INFO] [stdout] | ^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenStreamExt` [INFO] [stdout] --> scarust-derive/src/lib.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | use quote::{ToTokens, TokenStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Punct` is imported redundantly [INFO] [stdout] --> scarust-derive/src/lib.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 58 | use proc_macro2::{Punct, Spacing, Span, TokenStream, TokenTree}; [INFO] [stdout] | ----- the item `Punct` is already imported here [INFO] [stdout] ... [INFO] [stdout] 136 | use proc_macro2::{Punct, Spacing, TokenStream, TokenTree}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Spacing` is imported redundantly [INFO] [stdout] --> scarust-derive/src/lib.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 58 | use proc_macro2::{Punct, Spacing, Span, TokenStream, TokenTree}; [INFO] [stdout] | ------- the item `Spacing` is already imported here [INFO] [stdout] ... [INFO] [stdout] 136 | use proc_macro2::{Punct, Spacing, TokenStream, TokenTree}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenStream` is imported redundantly [INFO] [stdout] --> scarust-derive/src/lib.rs:136:43 [INFO] [stdout] | [INFO] [stdout] 58 | use proc_macro2::{Punct, Spacing, Span, TokenStream, TokenTree}; [INFO] [stdout] | ----------- the item `TokenStream` is already imported here [INFO] [stdout] ... [INFO] [stdout] 136 | use proc_macro2::{Punct, Spacing, TokenStream, TokenTree}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenTree` is imported redundantly [INFO] [stdout] --> scarust-derive/src/lib.rs:136:56 [INFO] [stdout] | [INFO] [stdout] 58 | use proc_macro2::{Punct, Spacing, Span, TokenStream, TokenTree}; [INFO] [stdout] | --------- the item `TokenTree` is already imported here [INFO] [stdout] ... [INFO] [stdout] 136 | use proc_macro2::{Punct, Spacing, TokenStream, TokenTree}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> scarust-derive/src/lib.rs:619:9 [INFO] [stdout] | [INFO] [stdout] 619 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemStruct`, `parse_quote` [INFO] [stdout] --> scarust-derive/src/lib.rs:620:30 [INFO] [stdout] | [INFO] [stdout] 620 | use syn::{parenthesized, parse_quote, token, ItemStruct, LitInt, Token}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemStruct`, `braced`, `parse_quote` [INFO] [stdout] --> scarust-derive/src/lib.rs:1152:33 [INFO] [stdout] | [INFO] [stdout] 1152 | ... braced, parenthesized, parse_quote, token, ItemStruct, LitInt, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `get_def_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_get_def_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_set_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `get_def_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_get_def_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_set_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> scarust-derive/src/lib.rs:138:59 [INFO] [stdout] | [INFO] [stdout] 138 | fn insert_double_colon_if_second_is_angle_bracket(mut tokens: TokenStream) -> TokenStream { [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: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fixed_typ` [INFO] [stdout] --> scarust-derive/src/lib.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let fixed_typ: TokenStream = if self.0.is_value { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fixed_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `get_def_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_get_def_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_set_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fixed_typ` [INFO] [stdout] --> scarust-derive/src/lib.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 257 | let fixed_typ: TokenStream = if self.0.is_value { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fixed_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:265:13 [INFO] [stdout] | [INFO] [stdout] 265 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_set_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 278 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `get_def_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 287 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_get_def_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_X` [INFO] [stdout] --> scarust-derive/src/lib.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_set_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conv` [INFO] [stdout] --> scarust-derive/src/lib.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | let conv = self.0.conv.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nproto_decoder` [INFO] [stdout] --> scarust-derive/src/lib.rs:629:13 [INFO] [stdout] | [INFO] [stdout] 629 | let mut nproto_decoder = default_decoder; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nproto_decoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:659:25 [INFO] [stdout] | [INFO] [stdout] 659 | let comma_token: Option = content.parse()?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comma_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:662:25 [INFO] [stdout] | [INFO] [stdout] 662 | let eq_token: Option = content.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:681:25 [INFO] [stdout] | [INFO] [stdout] 681 | let comma_token: Option = content.parse()?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comma_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:684:25 [INFO] [stdout] | [INFO] [stdout] 684 | let eq_token: Option = content.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> scarust-derive/src/lib.rs:687:25 [INFO] [stdout] | [INFO] [stdout] 687 | let name = name.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> scarust-derive/src/lib.rs:720:29 [INFO] [stdout] | [INFO] [stdout] 720 | let n: usize = lit.base10_parse()?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> scarust-derive/src/lib.rs:629:9 [INFO] [stdout] | [INFO] [stdout] 629 | let mut nproto_decoder = default_decoder; [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] --> scarust-derive/src/lib.rs:816:9 [INFO] [stdout] | [INFO] [stdout] 816 | let mut tokens = quote! { [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] --> scarust-derive/src/lib.rs:967:9 [INFO] [stdout] | [INFO] [stdout] 967 | let mut tokens = quote! { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_param` [INFO] [stdout] --> scarust-derive/src/lib.rs:988:43 [INFO] [stdout] | [INFO] [stdout] 988 | if let GenericParam::Type(ref mut type_param) = *param { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> scarust-derive/src/lib.rs:1056:37 [INFO] [stdout] | [INFO] [stdout] 1056 | Fields::Unnamed(ref fields) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> scarust-derive/src/lib.rs:1352:37 [INFO] [stdout] | [INFO] [stdout] 1352 | Fields::Unnamed(ref fields) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1173:45 [INFO] [stdout] | [INFO] [stdout] 1173 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1181:45 [INFO] [stdout] | [INFO] [stdout] 1181 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1188:45 [INFO] [stdout] | [INFO] [stdout] 1188 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1190:45 [INFO] [stdout] | [INFO] [stdout] 1190 | ... let eq_token: Option]> = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1198:45 [INFO] [stdout] | [INFO] [stdout] 1198 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1206:45 [INFO] [stdout] | [INFO] [stdout] 1206 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1214:45 [INFO] [stdout] | [INFO] [stdout] 1214 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> scarust-derive/src/lib.rs:1222:45 [INFO] [stdout] | [INFO] [stdout] 1222 | ... let eq_token: Option = meta.input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `auto` is never read [INFO] [stdout] --> scarust-derive/src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct NetprotoStructField { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | auto: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetprotoStructField` 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: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:264:13 [INFO] [stdout] | [INFO] [stdout] 264 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:265:13 [INFO] [stdout] | [INFO] [stdout] 265 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 287 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `get_def_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:466:13 [INFO] [stdout] | [INFO] [stdout] 466 | let get_def_X = Ident::new(&format!("get_default_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_def_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `set_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:467:13 [INFO] [stdout] | [INFO] [stdout] 467 | let set_X = Ident::new(&format!("set_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `set_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `modify_X` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | let modify_X = Ident::new(&format!("modify_{}", &name), Span::call_site()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `modify_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `layers_by_TYPEID` should have a snake case name [INFO] [stdout] --> scarust-derive/src/lib.rs:580:13 [INFO] [stdout] | [INFO] [stdout] 580 | let layers_by_TYPEID = Ident::new(&format!("{}_BY_TYPEID", &self.place), Span::call_site()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `layers_by_typeid` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking linkme v0.3.17 [INFO] [stdout] warning: 65 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking scarust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(806..822) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(822..823) }, Ident { ident: "Ethertype", span: #0 bytes(824..833) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(833..834) }, Ident { ident: "u16", span: #0 bytes(835..838) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(806..822) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(824..833) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(835..838) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(860..871) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(871..872) }, Ident { ident: "Proto", span: #0 bytes(873..878) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(878..879) }, Ident { ident: "u8", span: #0 bytes(880..882) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(860..871) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(873..878) } [INFO] [stdout] VAL: Ident { ident: "u8", span: #0 bytes(880..882) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(904..914) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(914..915) }, Ident { ident: "Type", span: #0 bytes(916..920) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(920..921) }, Ident { ident: "u8", span: #0 bytes(922..924) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(904..914) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(916..920) } [INFO] [stdout] VAL: Ident { ident: "u8", span: #0 bytes(922..924) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(946..963) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(963..964) }, Ident { ident: "SrcPort", span: #0 bytes(965..972) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(972..973) }, Ident { ident: "u16", span: #0 bytes(974..977) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(946..963) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(965..972) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(974..977) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(999..1016) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(1016..1017) }, Ident { ident: "DstPort", span: #0 bytes(1018..1025) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(1025..1026) }, Ident { ident: "u16", span: #0 bytes(1027..1030) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(999..1016) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(1018..1025) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(1027..1030) } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(23436..23452) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(23452..23453) }, Ident { ident: "Ethertype", span: #0 bytes(23454..23463) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(23464..23465) }, Literal { kind: Integer, symbol: "0x0806", suffix: None, span: #0 bytes(23466..23472) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(23436..23452) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(23454..23463) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x0806 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(27990..28007) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28007..28008) }, Ident { ident: "DstPort", span: #0 bytes(28009..28016) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28017..28018) }, Literal { kind: Integer, symbol: "67", suffix: None, span: #0 bytes(28019..28021) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(27990..28007) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(28009..28016) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 67 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28043..28060) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28060..28061) }, Ident { ident: "SrcPort", span: #0 bytes(28062..28069) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28070..28071) }, Literal { kind: Integer, symbol: "67", suffix: None, span: #0 bytes(28072..28074) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28043..28060) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(28062..28069) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 67 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(28096..28113) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28113..28114) }, Ident { ident: "DstPort", span: #0 bytes(28115..28122) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28123..28124) }, Literal { kind: Integer, symbol: "68", suffix: None, span: #0 bytes(28125..28127) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(28096..28113) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(28115..28122) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 68 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28149..28166) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28166..28167) }, Ident { ident: "SrcPort", span: #0 bytes(28168..28175) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28176..28177) }, Literal { kind: Integer, symbol: "68", suffix: None, span: #0 bytes(28178..28180) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28149..28166) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(28168..28175) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 68 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(29362..29378) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(29378..29379) }, Ident { ident: "Ethertype", span: #0 bytes(29380..29389) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(29390..29391) }, Literal { kind: Integer, symbol: "0x8100", suffix: None, span: #0 bytes(29392..29398) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(29362..29378) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(29380..29389) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x8100 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(30730..30746) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(30746..30747) }, Ident { ident: "Ethertype", span: #0 bytes(30748..30757) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(30758..30759) }, Literal { kind: Integer, symbol: "0x88be", suffix: None, span: #0 bytes(30760..30766) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(30730..30746) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(30748..30757) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x88be } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(34671..34687) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(34687..34688) }, Ident { ident: "Ethertype", span: #0 bytes(34689..34698) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(34699..34700) }, Literal { kind: Integer, symbol: "0x6558", suffix: None, span: #0 bytes(34701..34707) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(34671..34687) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(34689..34698) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x6558 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(35544..35561) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(35561..35562) }, Ident { ident: "DstPort", span: #0 bytes(35563..35570) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(35571..35572) }, Literal { kind: Integer, symbol: "6081", suffix: None, span: #0 bytes(35573..35577) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(35544..35561) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(35563..35570) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6081 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(35599..35616) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(35616..35617) }, Ident { ident: "SrcPort", span: #0 bytes(35618..35625) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(35626..35627) }, Literal { kind: Integer, symbol: "6081", suffix: None, span: #0 bytes(35628..35632) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(35599..35616) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(35618..35625) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6081 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(37391..37402) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(37402..37403) }, Ident { ident: "Proto", span: #0 bytes(37404..37409) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(37410..37411) }, Literal { kind: Integer, symbol: "47", suffix: None, span: #0 bytes(37412..37414) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(37391..37402) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(37404..37409) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 47 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(41683..41694) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(41694..41695) }, Ident { ident: "Proto", span: #0 bytes(41696..41701) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(41702..41703) }, Literal { kind: Integer, symbol: "1", suffix: None, span: #0 bytes(41704..41705) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(41683..41694) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(41696..41701) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 1 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(42013..42023) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(42023..42024) }, Ident { ident: "Type", span: #0 bytes(42025..42029) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(42030..42031) }, Literal { kind: Integer, symbol: "8", suffix: None, span: #0 bytes(42032..42033) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(42013..42023) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(42025..42029) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 8 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(42213..42223) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(42223..42224) }, Ident { ident: "Type", span: #0 bytes(42225..42229) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(42230..42231) }, Literal { kind: Integer, symbol: "0", suffix: None, span: #0 bytes(42232..42233) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(42213..42223) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(42225..42229) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(43171..43187) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(43187..43188) }, Ident { ident: "Ethertype", span: #0 bytes(43189..43198) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(43199..43200) }, Literal { kind: Integer, symbol: "0x800", suffix: None, span: #0 bytes(43201..43206) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(43171..43187) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(43189..43198) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x800 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(43228..43239) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(43239..43240) }, Ident { ident: "Proto", span: #0 bytes(43241..43246) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(43247..43248) }, Literal { kind: Integer, symbol: "4", suffix: None, span: #0 bytes(43249..43250) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(43228..43239) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(43241..43246) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(52563..52574) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(52574..52575) }, Ident { ident: "Proto", span: #0 bytes(52576..52581) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(52582..52583) }, Literal { kind: Integer, symbol: "6", suffix: None, span: #0 bytes(52584..52585) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(52563..52574) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(52576..52581) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(56530..56541) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(56541..56542) }, Ident { ident: "Proto", span: #0 bytes(56543..56548) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(56549..56550) }, Literal { kind: Integer, symbol: "17", suffix: None, span: #0 bytes(56551..56553) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(56530..56541) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(56543..56548) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 17 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(59873..59890) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(59890..59891) }, Ident { ident: "DstPort", span: #0 bytes(59892..59899) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(59900..59901) }, Literal { kind: Integer, symbol: "4789", suffix: None, span: #0 bytes(59902..59906) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(59873..59890) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(59892..59899) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4789 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(59928..59945) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(59945..59946) }, Ident { ident: "SrcPort", span: #0 bytes(59947..59954) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(59955..59956) }, Literal { kind: Integer, symbol: "4789", suffix: None, span: #0 bytes(59957..59961) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(59928..59945) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(59947..59954) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4789 } } [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[nproto(register(UDP_DST_PORT_APPS, DstPort = 67))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `protocolRegistriesSentinel` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct protocolRegistriesSentinel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ProtocolRegistriesSentinel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/lib.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 34 | use rand::Rng; [INFO] [stdout] | --------- the item `Rng` is already imported here [INFO] [stdout] ... [INFO] [stdout] 184 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/arp.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/arp.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 67))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[nproto(register(UDP_DST_PORT_APPS, DstPort = 68))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 68))] [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 68))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `dot1Q` should have an upper camel case name [INFO] [stdout] --> src/protocols/dot1q.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct dot1Q { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Dot1q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `erspan` should have an upper camel case name [INFO] [stdout] --> src/protocols/erspan.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct erspan { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Erspan` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ether` should have an upper camel case name [INFO] [stdout] --> src/protocols/ether.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ether { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ether` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `echo` should have an upper camel case name [INFO] [stdout] --> src/protocols/icmp.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct echo { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Echo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `echoReply` should have an upper camel case name [INFO] [stdout] --> src/protocols/icmp.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct echoReply { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `EchoReply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/icmp.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/ip.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapFile` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct pcapFile { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `PcapFile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapFileData` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct pcapFileData { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PcapFileData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapPacket` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct pcapPacket { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `PcapPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `raw` should have an upper camel case name [INFO] [stdout] --> src/protocols/raw.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct raw { [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/tcp.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/tcp.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/udp.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lib.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | Err(e) => panic!("Could not parse!"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/lib.rs:497:31 [INFO] [stdout] | [INFO] [stdout] 497 | pub fn g(&self, idx: T) -> &T { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:501:37 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn item_at(&self, item: T, idx: usize) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:505:39 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn get_layer(&self, item: T) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:513:49 [INFO] [stdout] | [INFO] [stdout] 513 | pub fn get_innermost_layer(&self, item: T) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:521:47 [INFO] [stdout] | [INFO] [stdout] 521 | pub fn get_layer_mut(&mut self, item: T) -> Option<&mut T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:530:39 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn layers_of(&self, item: T) -> Vec<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/lib.rs:673:9 [INFO] [stdout] | [INFO] [stdout] 673 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/lib.rs:674:9 [INFO] [stdout] | [INFO] [stdout] 674 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/lib.rs:675:9 [INFO] [stdout] | [INFO] [stdout] 675 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/protocols/arp.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let (v, delta) = D::decode_vec(buf, me.hwlen.value() as usize)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/protocols/arp.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let (v, delta) = D::decode_vec(buf, me.plen.value() as usize)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/arp.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/arp.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/dot1q.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/dot1q.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/dot1q.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/dot1q.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/dot1q.rs:40:37 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/dot1q.rs:40:57 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/erspan.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let mut out: Vec = vec![]; [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] --> src/protocols/erspan.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut the_u16: u16 = u16::from(7 & me.cos.value()) << 13 [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/erspan.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let mut the_u16: u16 = (u16::from(me.vlan.value()) & 0xfff) | u16::from(version & 0xf) << 12; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut the_u32: u32 = (u32::from(me.port_index.value()) & 0xfffff) [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ether.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ether.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ether.rs:20:53 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ether.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ether.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ether.rs:23:52 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/geneve.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/geneve.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/geneve.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/geneve.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/geneve.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/gre.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/gre.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/gre.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/gre.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mut out: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut the_u16: u16 = u16::from(me.chksum_present.value()) << 15 [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/gre.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/icmp.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/icmp.rs:27:45 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/icmp.rs:27:65 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/protocols/ip.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | fn from(v: u8) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/protocols/ip.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/protocols/ip.rs:66:39 [INFO] [stdout] | [INFO] [stdout] 66 | fn sample(&self, rng: &mut R) -> IpFlags { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/protocols/ip.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/ip.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:108:37 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:108:57 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:112:40 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:112:60 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:116:24 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:116:63 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/ip.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | me: &Ip, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/pcap_file.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut out: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vp` [INFO] [stdout] --> src/protocols/pcap_file.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut vp: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_vp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/pcap_file.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut vp: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/pcap_file.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | me: &mut pcapFileData, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let mut pkts = stk [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/pcap_file.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | fn fill_snaplen(layer: &pcapFileData, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/pcap_file.rs:118:59 [INFO] [stdout] | [INFO] [stdout] 118 | fn fill_snaplen(layer: &pcapFileData, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:37 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:57 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/raw.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | fn fill(&self, stack: &LayerStack, my_index: usize, out_stack: &mut LayerStack) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/raw.rs:17:40 [INFO] [stdout] | [INFO] [stdout] 17 | fn fill(&self, stack: &LayerStack, my_index: usize, out_stack: &mut LayerStack) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/raw.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/raw.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/raw.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:32:58 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:36:38 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:36:58 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/tcp.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:61:44 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:61:64 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/protocols/tcp.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut sum: u32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ph` [INFO] [stdout] --> src/protocols/tcp.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let mut ph: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut sum: u32 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let mut tcp_hdr_len: u16 = 20; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut ph: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:19:61 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/udp.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | me: &Udp, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:41:44 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:41:64 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/protocols/udp.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut sum: u32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ph` [INFO] [stdout] --> src/protocols/udp.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ph: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut sum: u32 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut udp_hdr_len: u16 = 8; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ph: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:105:58 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/vxlan.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/vxlan.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/vxlan.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/vxlan.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/vxlan.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readme_test` is never used [INFO] [stdout] --> src/lib.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn readme_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_crc` is never used [INFO] [stdout] --> src/protocols/ether.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Ethertype` should have a snake case name [INFO] [stdout] --> src/lib.rs:40:37 [INFO] [stdout] | [INFO] [stdout] 40 | #[nproto(registry(ETHERTYPE_LAYERS, Ethertype: u16))] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ethertype` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Proto` should have a snake case name [INFO] [stdout] --> src/lib.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | #[nproto(registry(IANA_LAYERS, Proto: u8))] [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `proto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Type` should have a snake case name [INFO] [stdout] --> src/lib.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | #[nproto(registry(ICMP_TYPES, Type: u8))] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 42 | #[nproto(registry(ICMP_TYPES, r#type: u8))] [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `SrcPort` should have a snake case name [INFO] [stdout] --> src/lib.rs:43:38 [INFO] [stdout] | [INFO] [stdout] 43 | #[nproto(registry(UDP_SRC_PORT_APPS, SrcPort: u16))] [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `src_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `DstPort` should have a snake case name [INFO] [stdout] --> src/lib.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | #[nproto(registry(UDP_DST_PORT_APPS, DstPort: u16))] [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `dst_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Box` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 591 | return layer.clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&dyn Layer` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:606:29 [INFO] [stdout] | [INFO] [stdout] 606 | return layer.clone().downcast_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:685:26 [INFO] [stdout] | [INFO] [stdout] 685 | data: buf.clone().to_vec(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] ... [INFO] [stdout] 42 | let encoded_icmp_header = if let Some(icmp) = stack.item_at(ICMP!(), my_index) { [INFO] [stdout] | ------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] ... [INFO] [stdout] 149 | let encoded_ip_header = if let Some(ip) = stack.item_at(IP!(), my_index) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 73 | 0xa1b2c3d4 => PcapFileData!().decode_with_decoder::(buf), [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 74 | 0xd4c3b2a1 => PcapFileData!().decode_with_decoder::(buf), [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 79 | dec.map(|(lyr, delta)| (lyr.layers_of(PcapFileData!())[0].clone(), delta)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] ... [INFO] [stdout] 103 | if let Some((stk, delta)) = PcapPacket!().decode_with_decoder::(&buf[ci..]) { [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] ... [INFO] [stdout] 105 | .layers_of(PcapPacket!()) [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] ... [INFO] [stdout] 76 | let encoded_tcp_header = if let Some(tcp) = stack.item_at(TCP!(), my_index) { [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] ::: src/protocols/tcp.rs:95:41 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(ip) = stack.item_at(IP!(), my_index - 1) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] ... [INFO] [stdout] 56 | let encoded_udp_header = if let Some(udp) = stack.item_at(UDP!(), my_index) { [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] ::: src/protocols/udp.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(ip) = stack.item_at(IP!(), my_index - 1) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 221 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking criterion v0.3.6 [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> examples/first.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TypeId` is imported redundantly [INFO] [stdout] --> examples/first.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | use scarust::*; [INFO] [stdout] | ---------- the item `TypeId` is already imported here [INFO] [stdout] 2 | use std::any::Any; [INFO] [stdout] 3 | use std::any::TypeId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::boxed::Box` [INFO] [stdout] --> examples/first.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> examples/first.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `FromStringHashmap` is imported redundantly [INFO] [stdout] --> examples/first.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 1 | use scarust::*; [INFO] [stdout] | ---------- the item `FromStringHashmap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 49 | use scarust::FromStringHashmap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test1.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | 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: `scarust::*` [INFO] [stdout] --> tests/test1.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | use scarust::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(806..822) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(822..823) }, Ident { ident: "Ethertype", span: #0 bytes(824..833) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(833..834) }, Ident { ident: "u16", span: #0 bytes(835..838) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(806..822) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(824..833) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(835..838) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(860..871) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(871..872) }, Ident { ident: "Proto", span: #0 bytes(873..878) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(878..879) }, Ident { ident: "u8", span: #0 bytes(880..882) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(860..871) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(873..878) } [INFO] [stdout] VAL: Ident { ident: "u8", span: #0 bytes(880..882) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(904..914) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(914..915) }, Ident { ident: "Type", span: #0 bytes(916..920) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(920..921) }, Ident { ident: "u8", span: #0 bytes(922..924) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(904..914) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(916..920) } [INFO] [stdout] VAL: Ident { ident: "u8", span: #0 bytes(922..924) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(946..963) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(963..964) }, Ident { ident: "SrcPort", span: #0 bytes(965..972) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(972..973) }, Ident { ident: "u16", span: #0 bytes(974..977) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(946..963) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(965..972) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(974..977) } [INFO] [stdout] REGISTRY: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(999..1016) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(1016..1017) }, Ident { ident: "DstPort", span: #0 bytes(1018..1025) }, Punct { ch: ':', spacing: Alone, span: #0 bytes(1025..1026) }, Ident { ident: "u16", span: #0 bytes(1027..1030) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(999..1016) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(1018..1025) } [INFO] [stdout] VAL: Ident { ident: "u16", span: #0 bytes(1027..1030) } [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> examples/first.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | 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:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | 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:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | 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: `my_udp` [INFO] [stdout] --> examples/first.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | 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:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let mut 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: unused variable: `out` [INFO] [stdout] --> benches/encode_benchmark.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let out = p.fill().encode(); [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: the item `LegacyPcapReader` is imported redundantly [INFO] [stdout] --> tests/test_file_pcap.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use pcap_parser::LegacyPcapReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | use pcap_parser::*; [INFO] [stdout] | -------------- the item `LegacyPcapReader` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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: variable does not need to be mutable [INFO] [stdout] --> examples/first.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let mut my_src_ip = layers[IP!()].src.clone(); [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: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_file_pcap.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | 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: the item `File` is imported redundantly [INFO] [stdout] --> tests/test_file_pcap.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs::File; [INFO] [stdout] | ------------- the item `File` is already imported here [INFO] [stdout] ... [INFO] [stdout] 41 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> examples/clean.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_encode.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | 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] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(23436..23452) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(23452..23453) }, Ident { ident: "Ethertype", span: #0 bytes(23454..23463) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(23464..23465) }, Literal { kind: Integer, symbol: "0x0806", suffix: None, span: #0 bytes(23466..23472) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(23436..23452) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(23454..23463) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x0806 } } [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(27990..28007) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28007..28008) }, Ident { ident: "DstPort", span: #0 bytes(28009..28016) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28017..28018) }, Literal { kind: Integer, symbol: "67", suffix: None, span: #0 bytes(28019..28021) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(27990..28007) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(28009..28016) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 67 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28043..28060) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28060..28061) }, Ident { ident: "SrcPort", span: #0 bytes(28062..28069) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28070..28071) }, Literal { kind: Integer, symbol: "67", suffix: None, span: #0 bytes(28072..28074) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28043..28060) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(28062..28069) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 67 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(28096..28113) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28113..28114) }, Ident { ident: "DstPort", span: #0 bytes(28115..28122) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28123..28124) }, Literal { kind: Integer, symbol: "68", suffix: None, span: #0 bytes(28125..28127) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(28096..28113) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(28115..28122) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 68 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28149..28166) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(28166..28167) }, Ident { ident: "SrcPort", span: #0 bytes(28168..28175) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(28176..28177) }, Literal { kind: Integer, symbol: "68", suffix: None, span: #0 bytes(28178..28180) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(28149..28166) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(28168..28175) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 68 } } [INFO] [stdout] warning: the item `LegacyPcapReader` is imported redundantly [INFO] [stdout] --> tests/test_pcap.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use pcap_parser::LegacyPcapReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | use pcap_parser::*; [INFO] [stdout] | -------------- the item `LegacyPcapReader` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(29362..29378) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(29378..29379) }, Ident { ident: "Ethertype", span: #0 bytes(29380..29389) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(29390..29391) }, Literal { kind: Integer, symbol: "0x8100", suffix: None, span: #0 bytes(29392..29398) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(29362..29378) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(29380..29389) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x8100 } } [INFO] [stdout] warning: type `testProto` should have an upper camel case name [INFO] [stdout] --> tests/test_pcap.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | 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: `scarust::protocols::bootp::Bootp` [INFO] [stdout] --> tests/test_pcap.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | use scarust::protocols::bootp::Bootp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(30730..30746) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(30746..30747) }, Ident { ident: "Ethertype", span: #0 bytes(30748..30757) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(30758..30759) }, Literal { kind: Integer, symbol: "0x88be", suffix: None, span: #0 bytes(30760..30766) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(30730..30746) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(30748..30757) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x88be } } [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(34671..34687) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(34687..34688) }, Ident { ident: "Ethertype", span: #0 bytes(34689..34698) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(34699..34700) }, Literal { kind: Integer, symbol: "0x6558", suffix: None, span: #0 bytes(34701..34707) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(34671..34687) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(34689..34698) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x6558 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(35544..35561) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(35561..35562) }, Ident { ident: "DstPort", span: #0 bytes(35563..35570) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(35571..35572) }, Literal { kind: Integer, symbol: "6081", suffix: None, span: #0 bytes(35573..35577) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(35544..35561) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(35563..35570) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6081 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(35599..35616) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(35616..35617) }, Ident { ident: "SrcPort", span: #0 bytes(35618..35625) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(35626..35627) }, Literal { kind: Integer, symbol: "6081", suffix: None, span: #0 bytes(35628..35632) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(35599..35616) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(35618..35625) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6081 } } [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test1.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] ... [INFO] [stdout] 85 | 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:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__test_proto` [INFO] [stdout] ... [INFO] [stdout] 93 | 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] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(37391..37402) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(37402..37403) }, Ident { ident: "Proto", span: #0 bytes(37404..37409) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(37410..37411) }, Literal { kind: Integer, symbol: "47", suffix: None, span: #0 bytes(37412..37414) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(37391..37402) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(37404..37409) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 47 } } [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(41683..41694) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(41694..41695) }, Ident { ident: "Proto", span: #0 bytes(41696..41701) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(41702..41703) }, Literal { kind: Integer, symbol: "1", suffix: None, span: #0 bytes(41704..41705) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(41683..41694) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(41696..41701) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 1 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(42013..42023) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(42023..42024) }, Ident { ident: "Type", span: #0 bytes(42025..42029) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(42030..42031) }, Literal { kind: Integer, symbol: "8", suffix: None, span: #0 bytes(42032..42033) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(42013..42023) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(42025..42029) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 8 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ICMP_TYPES", span: #0 bytes(42213..42223) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(42223..42224) }, Ident { ident: "Type", span: #0 bytes(42225..42229) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(42230..42231) }, Literal { kind: Integer, symbol: "0", suffix: None, span: #0 bytes(42232..42233) }] [INFO] [stdout] PLACE: Ident { ident: "ICMP_TYPES", span: #0 bytes(42213..42223) } [INFO] [stdout] KEY: Ident { ident: "Type", span: #0 bytes(42225..42229) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(43171..43187) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(43187..43188) }, Ident { ident: "Ethertype", span: #0 bytes(43189..43198) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(43199..43200) }, Literal { kind: Integer, symbol: "0x800", suffix: None, span: #0 bytes(43201..43206) }] [INFO] [stdout] PLACE: Ident { ident: "ETHERTYPE_LAYERS", span: #0 bytes(43171..43187) } [INFO] [stdout] KEY: Ident { ident: "Ethertype", span: #0 bytes(43189..43198) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 0x800 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(43228..43239) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(43239..43240) }, Ident { ident: "Proto", span: #0 bytes(43241..43246) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(43247..43248) }, Literal { kind: Integer, symbol: "4", suffix: None, span: #0 bytes(43249..43250) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(43228..43239) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(43241..43246) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4 } } [INFO] [stdout] warning: variable `num_blocks` is assigned to, but never used [INFO] [stdout] --> tests/test_file_pcap.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | 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: `i` [INFO] [stdout] --> tests/test_file_pcap.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | 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:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(52563..52574) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(52574..52575) }, Ident { ident: "Proto", span: #0 bytes(52576..52581) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(52582..52583) }, Literal { kind: Integer, symbol: "6", suffix: None, span: #0 bytes(52584..52585) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(52563..52574) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(52576..52581) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 6 } } [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "IANA_LAYERS", span: #0 bytes(56530..56541) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(56541..56542) }, Ident { ident: "Proto", span: #0 bytes(56543..56548) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(56549..56550) }, Literal { kind: Integer, symbol: "17", suffix: None, span: #0 bytes(56551..56553) }] [INFO] [stdout] PLACE: Ident { ident: "IANA_LAYERS", span: #0 bytes(56530..56541) } [INFO] [stdout] KEY: Ident { ident: "Proto", span: #0 bytes(56543..56548) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 17 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(59873..59890) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(59890..59891) }, Ident { ident: "DstPort", span: #0 bytes(59892..59899) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(59900..59901) }, Literal { kind: Integer, symbol: "4789", suffix: None, span: #0 bytes(59902..59906) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_DST_PORT_APPS", span: #0 bytes(59873..59890) } [INFO] [stdout] KEY: Ident { ident: "DstPort", span: #0 bytes(59892..59899) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4789 } } [INFO] [stdout] REGISTER: TokenStream [Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(59928..59945) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(59945..59946) }, Ident { ident: "SrcPort", span: #0 bytes(59947..59954) }, Punct { ch: '=', spacing: Alone, span: #0 bytes(59955..59956) }, Literal { kind: Integer, symbol: "4789", suffix: None, span: #0 bytes(59957..59961) }] [INFO] [stdout] PLACE: Ident { ident: "UDP_SRC_PORT_APPS", span: #0 bytes(59928..59945) } [INFO] [stdout] KEY: Ident { ident: "SrcPort", span: #0 bytes(59947..59954) } [INFO] [stdout] VAL: Expr::Lit { attrs: [], lit: Lit::Int { token: 4789 } } [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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 `num_blocks` is assigned to, but never used [INFO] [stdout] --> tests/test_pcap.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | 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: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_encode.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[nproto(register(UDP_DST_PORT_APPS, DstPort = 67))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `protocolRegistriesSentinel` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct protocolRegistriesSentinel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ProtocolRegistriesSentinel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/lib.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 34 | use rand::Rng; [INFO] [stdout] | --------- the item `Rng` is already imported here [INFO] [stdout] ... [INFO] [stdout] 184 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/arp.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/arp.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 67))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[nproto(register(UDP_DST_PORT_APPS, DstPort = 68))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 68))] [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/protocols/bootp.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[nproto(register(UDP_SRC_PORT_APPS, SrcPort = 68))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | --------------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `dot1Q` should have an upper camel case name [INFO] [stdout] --> src/protocols/dot1q.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct dot1Q { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Dot1q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `erspan` should have an upper camel case name [INFO] [stdout] --> src/protocols/erspan.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct erspan { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Erspan` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ether` should have an upper camel case name [INFO] [stdout] --> src/protocols/ether.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ether { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ether` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `echo` should have an upper camel case name [INFO] [stdout] --> src/protocols/icmp.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct echo { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Echo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `echoReply` should have an upper camel case name [INFO] [stdout] --> src/protocols/icmp.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct echoReply { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `EchoReply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/icmp.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/ip.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapFile` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct pcapFile { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `PcapFile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapFileData` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct pcapFileData { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PcapFileData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pcapPacket` should have an upper camel case name [INFO] [stdout] --> src/protocols/pcap_file.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct pcapPacket { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `PcapPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `raw` should have an upper camel case name [INFO] [stdout] --> src/protocols/raw.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct raw { [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/tcp.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/tcp.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/protocols/udp.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> tests/test_pcap.rs:127:21 [INFO] [stdout] | [INFO] [stdout] 127 | 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:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | let mut pn = p.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_pcap.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | let mut pn = p.clone(); [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: unused variable: `pn` [INFO] [stdout] --> tests/test_pcap.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let mut pn = p.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_pcap.rs:191:13 [INFO] [stdout] | [INFO] [stdout] 191 | let mut pn = p.clone(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__testProto` should have a snake case name [INFO] [stdout] --> tests/test_pcap.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [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: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lib.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | Err(e) => panic!("Could not parse!"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/lib.rs:497:31 [INFO] [stdout] | [INFO] [stdout] 497 | pub fn g(&self, idx: T) -> &T { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:501:37 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn item_at(&self, item: T, idx: usize) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:505:39 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn get_layer(&self, item: T) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:513:49 [INFO] [stdout] | [INFO] [stdout] 513 | pub fn get_innermost_layer(&self, item: T) -> Option<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:521:47 [INFO] [stdout] | [INFO] [stdout] 521 | pub fn get_layer_mut(&mut self, item: T) -> Option<&mut T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/lib.rs:530:39 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn layers_of(&self, item: T) -> Vec<&T> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/lib.rs:673:9 [INFO] [stdout] | [INFO] [stdout] 673 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/lib.rs:674:9 [INFO] [stdout] | [INFO] [stdout] 674 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/lib.rs:675:9 [INFO] [stdout] | [INFO] [stdout] 675 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/protocols/arp.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let (v, delta) = D::decode_vec(buf, me.hwlen.value() as usize)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/protocols/arp.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let (v, delta) = D::decode_vec(buf, me.plen.value() as usize)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/arp.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/arp.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/dot1q.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/dot1q.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/dot1q.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/dot1q.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/dot1q.rs:40:37 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/dot1q.rs:40:57 [INFO] [stdout] | [INFO] [stdout] 40 | fn fill_tci_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/erspan.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let mut out: Vec = vec![]; [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] --> src/protocols/erspan.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut the_u16: u16 = u16::from(7 & me.cos.value()) << 13 [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/erspan.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let mut the_u16: u16 = (u16::from(me.vlan.value()) & 0xfff) | u16::from(version & 0xf) << 12; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/erspan.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/erspan.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/erspan.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/erspan.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut the_u32: u32 = (u32::from(me.port_index.value()) & 0xfffff) [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ether.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ether.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ether.rs:20:53 [INFO] [stdout] | [INFO] [stdout] 20 | fn fill_dmac(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> MacAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ether.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ether.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ether.rs:23:52 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/geneve.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/geneve.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/geneve.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/geneve.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/geneve.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/gre.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/gre.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/gre.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/gre.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mut out: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut the_u16: u16 = u16::from(me.chksum_present.value()) << 15 [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/gre.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/gre.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/icmp.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/icmp.rs:27:45 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/icmp.rs:27:65 [INFO] [stdout] | [INFO] [stdout] 27 | fn fill_icmp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/protocols/ip.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | fn from(v: u8) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/protocols/ip.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/protocols/ip.rs:66:39 [INFO] [stdout] | [INFO] [stdout] 66 | fn sample(&self, rng: &mut R) -> IpFlags { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/protocols/ip.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/ip.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:108:37 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:108:57 [INFO] [stdout] | [INFO] [stdout] 108 | fn fill_ihl_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:112:40 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:112:60 [INFO] [stdout] | [INFO] [stdout] 112 | fn fill_ip_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/ip.rs:116:24 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/ip.rs:116:63 [INFO] [stdout] | [INFO] [stdout] 116 | fn fill_ip_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/ip.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | me: &Ip, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/ip.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/protocols/pcap_file.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut out: Vec = vec![]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut out: Vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vp` [INFO] [stdout] --> src/protocols/pcap_file.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut vp: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_vp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/pcap_file.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut vp: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/pcap_file.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | me: &mut pcapFileData, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/pcap_file.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let mut pkts = stk [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/pcap_file.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | fn fill_snaplen(layer: &pcapFileData, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/pcap_file.rs:118:59 [INFO] [stdout] | [INFO] [stdout] 118 | fn fill_snaplen(layer: &pcapFileData, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:37 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/pcap_file.rs:136:57 [INFO] [stdout] | [INFO] [stdout] 136 | fn fill_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/raw.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | fn fill(&self, stack: &LayerStack, my_index: usize, out_stack: &mut LayerStack) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/raw.rs:17:40 [INFO] [stdout] | [INFO] [stdout] 17 | fn fill(&self, stack: &LayerStack, my_index: usize, out_stack: &mut LayerStack) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/raw.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/raw.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/raw.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:32:58 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_tcp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:36:38 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:36:58 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_tcp_dport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/tcp.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/tcp.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/tcp.rs:61:44 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/tcp.rs:61:64 [INFO] [stdout] | [INFO] [stdout] 61 | fn fill_tcp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/protocols/tcp.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut sum: u32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ph` [INFO] [stdout] --> src/protocols/tcp.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let mut ph: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut sum: u32 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let mut tcp_hdr_len: u16 = 20; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/tcp.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut ph: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:19:61 [INFO] [stdout] | [INFO] [stdout] 19 | fn fill_udp_len_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `me` [INFO] [stdout] --> src/protocols/udp.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | me: &Udp, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:41:44 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:41:64 [INFO] [stdout] | [INFO] [stdout] 41 | fn fill_udp_chksum_auto(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> Value { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/protocols/udp.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut sum: u32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ph` [INFO] [stdout] --> src/protocols/udp.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ph: Vec = vec![]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut sum: u32 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut udp_hdr_len: u16 = 8; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/udp.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ph: Vec = vec![]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/protocols/udp.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/udp.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/udp.rs:105:58 [INFO] [stdout] | [INFO] [stdout] 105 | fn fill_udp_sport(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u16 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack` [INFO] [stdout] --> src/protocols/vxlan.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | stack: &LayerStack, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_index` [INFO] [stdout] --> src/protocols/vxlan.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | my_index: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_layers` [INFO] [stdout] --> src/protocols/vxlan.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | encoded_layers: &EncodingVecVec, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ci` [INFO] [stdout] --> src/protocols/vxlan.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut ci = 0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ci` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/vxlan.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut ci = 0; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readme_test` is never used [INFO] [stdout] --> src/lib.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn readme_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_crc` is never used [INFO] [stdout] --> src/protocols/ether.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn fill_crc(layer: &dyn Layer, stack: &LayerStack, my_index: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Ethertype` should have a snake case name [INFO] [stdout] --> src/lib.rs:40:37 [INFO] [stdout] | [INFO] [stdout] 40 | #[nproto(registry(ETHERTYPE_LAYERS, Ethertype: u16))] [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ethertype` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Proto` should have a snake case name [INFO] [stdout] --> src/lib.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | #[nproto(registry(IANA_LAYERS, Proto: u8))] [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `proto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Type` should have a snake case name [INFO] [stdout] --> src/lib.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | #[nproto(registry(ICMP_TYPES, Type: u8))] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 42 | #[nproto(registry(ICMP_TYPES, r#type: u8))] [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `SrcPort` should have a snake case name [INFO] [stdout] --> src/lib.rs:43:38 [INFO] [stdout] | [INFO] [stdout] 43 | #[nproto(registry(UDP_SRC_PORT_APPS, SrcPort: u16))] [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `src_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `DstPort` should have a snake case name [INFO] [stdout] --> src/lib.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | #[nproto(registry(UDP_DST_PORT_APPS, DstPort: u16))] [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `dst_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__protocolRegistriesSentinel` should have a snake case name [INFO] [stdout] --> src/lib.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(NetworkProtocol, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__protocol_registries_sentinel` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ProtocolRegistriesSentinel` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Box` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 591 | return layer.clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&dyn Layer` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:606:29 [INFO] [stdout] | [INFO] [stdout] 606 | return layer.clone().downcast_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:685:26 [INFO] [stdout] | [INFO] [stdout] 685 | data: buf.clone().to_vec(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Arp` should have a snake case name [INFO] [stdout] --> src/protocols/arp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__arp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ARP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Bootp` should have a snake case name [INFO] [stdout] --> src/protocols/bootp.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__bootp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `BOOTP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__dot1Q` should have a snake case name [INFO] [stdout] --> src/protocols/dot1q.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__dot1_q` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `Dot1Q` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Geneve` should have a snake case name [INFO] [stdout] --> src/protocols/geneve.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__geneve` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GENEVE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Gre` should have a snake case name [INFO] [stdout] --> src/protocols/gre.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__gre` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `GRE` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__echoReply` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__echo_reply` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `EchoReply` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Icmp` should have a snake case name [INFO] [stdout] --> src/protocols/icmp.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__icmp` [INFO] [stdout] ... [INFO] [stdout] 42 | let encoded_icmp_header = if let Some(icmp) = stack.item_at(ICMP!(), my_index) { [INFO] [stdout] | ------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ICMP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] ... [INFO] [stdout] 149 | let encoded_ip_header = if let Some(ip) = stack.item_at(IP!(), my_index) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFile` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFile` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 73 | 0xa1b2c3d4 => PcapFileData!().decode_with_decoder::(buf), [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 74 | 0xd4c3b2a1 => PcapFileData!().decode_with_decoder::(buf), [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapFileData` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_file_data` [INFO] [stdout] ... [INFO] [stdout] 79 | dec.map(|(lyr, delta)| (lyr.layers_of(PcapFileData!())[0].clone(), delta)) [INFO] [stdout] | --------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapFileData` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] ... [INFO] [stdout] 103 | if let Some((stk, delta)) = PcapPacket!().decode_with_decoder::(&buf[ci..]) { [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__pcapPacket` should have a snake case name [INFO] [stdout] --> src/protocols/pcap_file.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__pcap_packet` [INFO] [stdout] ... [INFO] [stdout] 105 | .layers_of(PcapPacket!()) [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `PcapPacket` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Tcp` should have a snake case name [INFO] [stdout] --> src/protocols/tcp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__tcp` [INFO] [stdout] ... [INFO] [stdout] 76 | let encoded_tcp_header = if let Some(tcp) = stack.item_at(TCP!(), my_index) { [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `TCP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] ::: src/protocols/tcp.rs:95:41 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(ip) = stack.item_at(IP!(), my_index - 1) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Udp` should have a snake case name [INFO] [stdout] --> src/protocols/udp.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__udp` [INFO] [stdout] ... [INFO] [stdout] 56 | let encoded_udp_header = if let Some(udp) = stack.item_at(UDP!(), my_index) { [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `UDP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Ip` should have a snake case name [INFO] [stdout] --> src/protocols/ip.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromStringHashmap, NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__ip` [INFO] [stdout] | [INFO] [stdout] ::: src/protocols/udp.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(ip) = stack.item_at(IP!(), my_index - 1) { [INFO] [stdout] | ----- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `IP` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `__Vxlan` should have a snake case name [INFO] [stdout] --> src/protocols/vxlan.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(NetworkProtocol, Clone, Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `__vxlan` [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `VXLAN` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 221 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.23s [INFO] running `Command { std: "docker" "inspect" "46c8bea1516891d2dbb59292c20bb3315c4f11c3b8d86d5437189cd4d09dfb0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46c8bea1516891d2dbb59292c20bb3315c4f11c3b8d86d5437189cd4d09dfb0f", kill_on_drop: false }` [INFO] [stdout] 46c8bea1516891d2dbb59292c20bb3315c4f11c3b8d86d5437189cd4d09dfb0f