[INFO] cloning repository https://github.com/nhingy/f12019_data_logger [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nhingy/f12019_data_logger" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnhingy%2Ff12019_data_logger", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnhingy%2Ff12019_data_logger'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3dd546d3dd6417285c7546b4bd09a39d114ba90f [INFO] checking nhingy/f12019_data_logger against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnhingy%2Ff12019_data_logger" "/workspace/builds/worker-95/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-95/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nhingy/f12019_data_logger on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nhingy/f12019_data_logger [INFO] finished tweaking git repo https://github.com/nhingy/f12019_data_logger [INFO] tweaked toml for git repo https://github.com/nhingy/f12019_data_logger written to /workspace/builds/worker-95/source/Cargo.toml [INFO] crate git repo https://github.com/nhingy/f12019_data_logger already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded byte v0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e984e00778ecc558f67ecb00a955f2336f05c5d55f11326b6cd3f2db0588a83f [INFO] running `Command { std: "docker" "start" "-a" "e984e00778ecc558f67ecb00a955f2336f05c5d55f11326b6cd3f2db0588a83f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e984e00778ecc558f67ecb00a955f2336f05c5d55f11326b6cd3f2db0588a83f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e984e00778ecc558f67ecb00a955f2336f05c5d55f11326b6cd3f2db0588a83f", kill_on_drop: false }` [INFO] [stdout] e984e00778ecc558f67ecb00a955f2336f05c5d55f11326b6cd3f2db0588a83f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd454c52823a901a29a27ab42bfdcf5107b7d13a26e7b5de699f503bef1a14cb [INFO] running `Command { std: "docker" "start" "-a" "bd454c52823a901a29a27ab42bfdcf5107b7d13a26e7b5de699f503bef1a14cb", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking byte v0.2.4 [INFO] [stderr] Checking f12019_data_logger v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:403:3 [INFO] [stdout] | [INFO] [stdout] 403 | _ => return None, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] | ^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] 26 | _Lap => return &"lap packet", [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 27 | _Event => return &"event packet", [INFO] [stdout] | ^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 28 | _Participant => return &"participant packet", [INFO] [stdout] | ^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 29 | _Setup => return &"setup packet", [INFO] [stdout] | ^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 30 | _Telemetry => return &"telemetry packet", [INFO] [stdout] | ^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 31 | _CarStatus => return &"car status packet", [INFO] [stdout] | ^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 32 | _InvalidPacket => return &"invalid packet", [INFO] [stdout] | ^^^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:154:25 [INFO] [stdout] | [INFO] [stdout] 154 | buf.read_with::(&mut PACKET_FORMAT_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | const PACKET_FORMAT_OFFSET: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:155:27 [INFO] [stdout] | [INFO] [stdout] 155 | buf.read_with::(&mut MAJ_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | const MAJ_VERSION_OFFSET: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:156:27 [INFO] [stdout] | [INFO] [stdout] 156 | buf.read_with::(&mut MIN_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | const MIN_VERSION_OFFSET: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:157:27 [INFO] [stdout] | [INFO] [stdout] 157 | buf.read_with::(&mut PACKET_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | const PACKET_VERSION_OFFSET: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:158:43 [INFO] [stdout] | [INFO] [stdout] 158 | get_packet_type(buf.read_with::(&mut PACKET_TYPE_OFFSET, LE).expect("error reading from buffer!")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | const PACKET_TYPE_OFFSET: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | buf.read_with::(&mut SESSION_ID_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | const SESSION_ID_OFFSET: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | buf.read_with::(&mut SESSION_TIME_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | const SESSION_TIME_OFFSET: usize = 14; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | buf.read_with::(&mut FRAME_ID_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | const FRAME_ID_OFFSET: usize = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:162:27 [INFO] [stdout] | [INFO] [stdout] 162 | buf.read_with::(&mut PLAYER_CAR_INDEX_OFFESET, LE).expect("error reading from buffer!") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | const PLAYER_CAR_INDEX_OFFESET: usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:287:33 [INFO] [stdout] | [INFO] [stdout] 287 | weather: buf.read_with::(&mut HEADER_SIZE, LE).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | const HEADER_SIZE: usize = 23; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `getName` [INFO] [stdout] --> src/f1_2019_net.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn getName(&self, event_type: PacketType) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_surfaces` [INFO] [stdout] --> src/f1_2019_net.rs:617:8 [INFO] [stdout] | [INFO] [stdout] 617 | pub fn init_surfaces(map: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EVENT_SIZE` [INFO] [stdout] --> src/main.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | const EVENT_SIZE: usize = 43; // Might not be able to use this as event packet changes with event type [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MARSHAL_ZONE_SIZE` [INFO] [stdout] --> src/main.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | const MARSHAL_ZONE_SIZE: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getName` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn getName(&self, event_type: PacketType) -> &str { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Motion` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `_motion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Session` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Lap` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | _Lap => return &"lap packet", [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `_lap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Event` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | _Event => return &"event packet", [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Participant` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | _Participant => return &"participant packet", [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `_participant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Setup` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | _Setup => return &"setup packet", [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_setup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Telemetry` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | _Telemetry => return &"telemetry packet", [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_telemetry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_CarStatus` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | _CarStatus => return &"car status packet", [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_car_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_InvalidPacket` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | _InvalidPacket => return &"invalid packet", [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `_invalid_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/f1_2019_net.rs (10 fixes) [INFO] [stderr] Fixed src/main.rs (9 fixes) [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:403:3 [INFO] [stdout] | [INFO] [stdout] 403 | _ => return None, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] | ^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] 26 | _Lap => return &"lap packet", [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 27 | _Event => return &"event packet", [INFO] [stdout] | ^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 28 | _Participant => return &"participant packet", [INFO] [stdout] | ^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 29 | _Setup => return &"setup packet", [INFO] [stdout] | ^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 30 | _Telemetry => return &"telemetry packet", [INFO] [stdout] | ^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 31 | _CarStatus => return &"car status packet", [INFO] [stdout] | ^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 32 | _InvalidPacket => return &"invalid packet", [INFO] [stdout] | ^^^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:154:25 [INFO] [stdout] | [INFO] [stdout] 154 | buf.read_with::(&mut PACKET_FORMAT_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | const PACKET_FORMAT_OFFSET: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:155:27 [INFO] [stdout] | [INFO] [stdout] 155 | buf.read_with::(&mut MAJ_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | const MAJ_VERSION_OFFSET: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:156:27 [INFO] [stdout] | [INFO] [stdout] 156 | buf.read_with::(&mut MIN_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | const MIN_VERSION_OFFSET: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:157:27 [INFO] [stdout] | [INFO] [stdout] 157 | buf.read_with::(&mut PACKET_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | const PACKET_VERSION_OFFSET: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:158:43 [INFO] [stdout] | [INFO] [stdout] 158 | get_packet_type(buf.read_with::(&mut PACKET_TYPE_OFFSET, LE).expect("error reading from buffer!")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | const PACKET_TYPE_OFFSET: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | buf.read_with::(&mut SESSION_ID_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | const SESSION_ID_OFFSET: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | buf.read_with::(&mut SESSION_TIME_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | const SESSION_TIME_OFFSET: usize = 14; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | buf.read_with::(&mut FRAME_ID_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | const FRAME_ID_OFFSET: usize = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:162:27 [INFO] [stdout] | [INFO] [stdout] 162 | buf.read_with::(&mut PLAYER_CAR_INDEX_OFFESET, LE).expect("error reading from buffer!") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | const PLAYER_CAR_INDEX_OFFESET: usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:287:33 [INFO] [stdout] | [INFO] [stdout] 287 | weather: buf.read_with::(&mut HEADER_SIZE, LE).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | const HEADER_SIZE: usize = 23; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `getName` [INFO] [stdout] --> src/f1_2019_net.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn getName(&self, event_type: PacketType) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_surfaces` [INFO] [stdout] --> src/f1_2019_net.rs:617:8 [INFO] [stdout] | [INFO] [stdout] 617 | pub fn init_surfaces(map: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EVENT_SIZE` [INFO] [stdout] --> src/main.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | const EVENT_SIZE: usize = 43; // Might not be able to use this as event packet changes with event type [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MARSHAL_ZONE_SIZE` [INFO] [stdout] --> src/main.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | const MARSHAL_ZONE_SIZE: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getName` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn getName(&self, event_type: PacketType) -> &str { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Motion` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `_motion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Session` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Lap` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | _Lap => return &"lap packet", [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `_lap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Event` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | _Event => return &"event packet", [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Participant` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | _Participant => return &"participant packet", [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `_participant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Setup` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | _Setup => return &"setup packet", [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_setup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Telemetry` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | _Telemetry => return &"telemetry packet", [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_telemetry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_CarStatus` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | _CarStatus => return &"car status packet", [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_car_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_InvalidPacket` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | _InvalidPacket => return &"invalid packet", [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `_invalid_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 30.12s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking f12019_data_logger v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:403:3 [INFO] [stdout] | [INFO] [stdout] 403 | _ => return None, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] | ^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] 26 | _Lap => return &"lap packet", [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 27 | _Event => return &"event packet", [INFO] [stdout] | ^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 28 | _Participant => return &"participant packet", [INFO] [stdout] | ^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 29 | _Setup => return &"setup packet", [INFO] [stdout] | ^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 30 | _Telemetry => return &"telemetry packet", [INFO] [stdout] | ^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 31 | _CarStatus => return &"car status packet", [INFO] [stdout] | ^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 32 | _InvalidPacket => return &"invalid packet", [INFO] [stdout] | ^^^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:154:25 [INFO] [stdout] | [INFO] [stdout] 154 | buf.read_with::(&mut PACKET_FORMAT_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | const PACKET_FORMAT_OFFSET: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:155:27 [INFO] [stdout] | [INFO] [stdout] 155 | buf.read_with::(&mut MAJ_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | const MAJ_VERSION_OFFSET: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:156:27 [INFO] [stdout] | [INFO] [stdout] 156 | buf.read_with::(&mut MIN_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | const MIN_VERSION_OFFSET: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:157:27 [INFO] [stdout] | [INFO] [stdout] 157 | buf.read_with::(&mut PACKET_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | const PACKET_VERSION_OFFSET: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:158:43 [INFO] [stdout] | [INFO] [stdout] 158 | get_packet_type(buf.read_with::(&mut PACKET_TYPE_OFFSET, LE).expect("error reading from buffer!")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | const PACKET_TYPE_OFFSET: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | buf.read_with::(&mut SESSION_ID_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | const SESSION_ID_OFFSET: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | buf.read_with::(&mut SESSION_TIME_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | const SESSION_TIME_OFFSET: usize = 14; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | buf.read_with::(&mut FRAME_ID_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | const FRAME_ID_OFFSET: usize = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:162:27 [INFO] [stdout] | [INFO] [stdout] 162 | buf.read_with::(&mut PLAYER_CAR_INDEX_OFFESET, LE).expect("error reading from buffer!") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | const PLAYER_CAR_INDEX_OFFESET: usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:287:33 [INFO] [stdout] | [INFO] [stdout] 287 | weather: buf.read_with::(&mut HEADER_SIZE, LE).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | const HEADER_SIZE: usize = 23; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `getName` [INFO] [stdout] --> src/f1_2019_net.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn getName(&self, event_type: PacketType) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:403:3 [INFO] [stdout] | [INFO] [stdout] 403 | _ => return None, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_surfaces` [INFO] [stdout] --> src/f1_2019_net.rs:617:8 [INFO] [stdout] | [INFO] [stdout] 617 | pub fn init_surfaces(map: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EVENT_SIZE` [INFO] [stdout] --> src/main.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | const EVENT_SIZE: usize = 43; // Might not be able to use this as event packet changes with event type [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MARSHAL_ZONE_SIZE` [INFO] [stdout] --> src/main.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | const MARSHAL_ZONE_SIZE: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getName` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn getName(&self, event_type: PacketType) -> &str { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Motion` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `_motion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Session` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Lap` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | _Lap => return &"lap packet", [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `_lap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Event` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | _Event => return &"event packet", [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Participant` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | _Participant => return &"participant packet", [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `_participant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Setup` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | _Setup => return &"setup packet", [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_setup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Telemetry` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | _Telemetry => return &"telemetry packet", [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_telemetry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_CarStatus` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | _CarStatus => return &"car status packet", [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_car_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_InvalidPacket` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | _InvalidPacket => return &"invalid packet", [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `_invalid_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] | ^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] 26 | _Lap => return &"lap packet", [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 27 | _Event => return &"event packet", [INFO] [stdout] | ^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 28 | _Participant => return &"participant packet", [INFO] [stdout] | ^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 29 | _Setup => return &"setup packet", [INFO] [stdout] | ^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 30 | _Telemetry => return &"telemetry packet", [INFO] [stdout] | ^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 31 | _CarStatus => return &"car status packet", [INFO] [stdout] | ^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/f1_2019_net.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ------- matches any value [INFO] [stdout] ... [INFO] [stdout] 32 | _InvalidPacket => return &"invalid packet", [INFO] [stdout] | ^^^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:154:25 [INFO] [stdout] | [INFO] [stdout] 154 | buf.read_with::(&mut PACKET_FORMAT_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | const PACKET_FORMAT_OFFSET: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:155:27 [INFO] [stdout] | [INFO] [stdout] 155 | buf.read_with::(&mut MAJ_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | const MAJ_VERSION_OFFSET: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:156:27 [INFO] [stdout] | [INFO] [stdout] 156 | buf.read_with::(&mut MIN_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | const MIN_VERSION_OFFSET: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:157:27 [INFO] [stdout] | [INFO] [stdout] 157 | buf.read_with::(&mut PACKET_VERSION_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | const PACKET_VERSION_OFFSET: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:158:43 [INFO] [stdout] | [INFO] [stdout] 158 | get_packet_type(buf.read_with::(&mut PACKET_TYPE_OFFSET, LE).expect("error reading from buffer!")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | const PACKET_TYPE_OFFSET: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | buf.read_with::(&mut SESSION_ID_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | const SESSION_ID_OFFSET: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | buf.read_with::(&mut SESSION_TIME_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | const SESSION_TIME_OFFSET: usize = 14; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | buf.read_with::(&mut FRAME_ID_OFFSET, LE).expect("error reading from buffer!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | const FRAME_ID_OFFSET: usize = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:162:27 [INFO] [stdout] | [INFO] [stdout] 162 | buf.read_with::(&mut PLAYER_CAR_INDEX_OFFESET, LE).expect("error reading from buffer!") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | const PLAYER_CAR_INDEX_OFFESET: usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/main.rs:287:33 [INFO] [stdout] | [INFO] [stdout] 287 | weather: buf.read_with::(&mut HEADER_SIZE, LE).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/main.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | const HEADER_SIZE: usize = 23; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `getName` [INFO] [stdout] --> src/f1_2019_net.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn getName(&self, event_type: PacketType) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_surfaces` [INFO] [stdout] --> src/f1_2019_net.rs:617:8 [INFO] [stdout] | [INFO] [stdout] 617 | pub fn init_surfaces(map: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EVENT_SIZE` [INFO] [stdout] --> src/main.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | const EVENT_SIZE: usize = 43; // Might not be able to use this as event packet changes with event type [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MARSHAL_ZONE_SIZE` [INFO] [stdout] --> src/main.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | const MARSHAL_ZONE_SIZE: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getName` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn getName(&self, event_type: PacketType) -> &str { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Motion` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | _Motion => return &"motion packet", [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `_motion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Session` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | _Session => return &"session packet", [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Lap` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | _Lap => return &"lap packet", [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `_lap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Event` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | _Event => return &"event packet", [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Participant` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | _Participant => return &"participant packet", [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `_participant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Setup` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | _Setup => return &"setup packet", [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_setup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Telemetry` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | _Telemetry => return &"telemetry packet", [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_telemetry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_CarStatus` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | _CarStatus => return &"car status packet", [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `_car_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_InvalidPacket` should have a snake case name [INFO] [stdout] --> src/f1_2019_net.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | _InvalidPacket => return &"invalid packet", [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `_invalid_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.94s [INFO] running `Command { std: "docker" "inspect" "bd454c52823a901a29a27ab42bfdcf5107b7d13a26e7b5de699f503bef1a14cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd454c52823a901a29a27ab42bfdcf5107b7d13a26e7b5de699f503bef1a14cb", kill_on_drop: false }` [INFO] [stdout] bd454c52823a901a29a27ab42bfdcf5107b7d13a26e7b5de699f503bef1a14cb