[INFO] cloning repository https://github.com/superosku/oskuRTS
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/superosku/oskuRTS" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperosku%2FoskuRTS", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperosku%2FoskuRTS'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 01849e8e88ae5110907ad141820d31c79cabf6b1
[INFO] checking superosku/oskuRTS against try#09eeb2bacb9b40b2ed1d47f03177442c0632cda1 for pr-157710
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperosku%2FoskuRTS" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/superosku/oskuRTS
[INFO] finished tweaking git repo https://github.com/superosku/oskuRTS
[INFO] tweaked toml for git repo https://github.com/superosku/oskuRTS written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/superosku/oskuRTS on toolchain 09eeb2bacb9b40b2ed1d47f03177442c0632cda1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09eeb2bacb9b40b2ed1d47f03177442c0632cda1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/superosku/oskuRTS 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" "+09eeb2bacb9b40b2ed1d47f03177442c0632cda1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] da8ee8121ec35ee7d675c9969b854bfbd33689cc6e471acaf86cae7bbb3561ba
[INFO] running `Command { std: "docker" "start" "da8ee8121ec35ee7d675c9969b854bfbd33689cc6e471acaf86cae7bbb3561ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "da8ee8121ec35ee7d675c9969b854bfbd33689cc6e471acaf86cae7bbb3561ba" "/opt/rustwide/cargo-home/bin/cargo" "+09eeb2bacb9b40b2ed1d47f03177442c0632cda1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "da8ee8121ec35ee7d675c9969b854bfbd33689cc6e471acaf86cae7bbb3561ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "da8ee8121ec35ee7d675c9969b854bfbd33689cc6e471acaf86cae7bbb3561ba" "/opt/rustwide/cargo-home/bin/cargo" "+09eeb2bacb9b40b2ed1d47f03177442c0632cda1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.48
[INFO] [stderr]    Compiling cfg-if v0.1.6
[INFO] [stderr]     Checking rand_jitter v0.1.2
[INFO] [stderr]     Checking c_vec v1.3.2
[INFO] [stderr]     Checking lazy_static v1.2.0
[INFO] [stderr]     Checking multi_mut v0.1.3
[INFO] [stderr]    Compiling rand_pcg v0.1.1
[INFO] [stderr]     Checking num-iter v0.1.37
[INFO] [stderr]     Checking num v0.1.42
[INFO] [stderr]    Compiling sdl2-sys v0.32.5
[INFO] [stderr]     Checking rand_os v0.1.2
[INFO] [stderr]     Checking rand v0.6.5
[INFO] [stderr]     Checking sdl2 v0.32.1
[INFO] [stderr]     Checking rust-game v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::mem::transmute`
[INFO] [stdout]  --> src/map.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::mem::transmute;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::map`
[INFO] [stdout]  --> src/projectile.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::map;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/main.rs:135:69
[INFO] [stdout]     |
[INFO] [stdout] 135 |                 Event::KeyDown { keycode: Some(Keycode::I), .. } => (camera.zoom_in()),
[INFO] [stdout]     |                                                                     ^                ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 135 -                 Event::KeyDown { keycode: Some(Keycode::I), .. } => (camera.zoom_in()),
[INFO] [stdout] 135 +                 Event::KeyDown { keycode: Some(Keycode::I), .. } => camera.zoom_in() ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/main.rs:136:69
[INFO] [stdout]     |
[INFO] [stdout] 136 |                 Event::KeyDown { keycode: Some(Keycode::O), .. } => (camera.zoom_out()),
[INFO] [stdout]     |                                                                     ^                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 136 -                 Event::KeyDown { keycode: Some(Keycode::O), .. } => (camera.zoom_out()),
[INFO] [stdout] 136 +                 Event::KeyDown { keycode: Some(Keycode::O), .. } => camera.zoom_out() ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BTreeMapMultiMut`
[INFO] [stdout]  --> src/entity_holder.rs:5:34
[INFO] [stdout]   |
[INFO] [stdout] 5 | use multi_mut::{HashMapMultiMut, BTreeMapMultiMut};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::mem::transmute`
[INFO] [stdout]  --> src/map.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::mem::transmute;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::map`
[INFO] [stdout]  --> src/projectile.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::map;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/main.rs:135:69
[INFO] [stdout]     |
[INFO] [stdout] 135 |                 Event::KeyDown { keycode: Some(Keycode::I), .. } => (camera.zoom_in()),
[INFO] [stdout]     |                                                                     ^                ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 135 -                 Event::KeyDown { keycode: Some(Keycode::I), .. } => (camera.zoom_in()),
[INFO] [stdout] 135 +                 Event::KeyDown { keycode: Some(Keycode::I), .. } => camera.zoom_in() ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/main.rs:136:69
[INFO] [stdout]     |
[INFO] [stdout] 136 |                 Event::KeyDown { keycode: Some(Keycode::O), .. } => (camera.zoom_out()),
[INFO] [stdout]     |                                                                     ^                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 136 -                 Event::KeyDown { keycode: Some(Keycode::O), .. } => (camera.zoom_out()),
[INFO] [stdout] 136 +                 Event::KeyDown { keycode: Some(Keycode::O), .. } => camera.zoom_out() ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/entity.rs:61:31
[INFO] [stdout]    |
[INFO] [stdout] 61 |                 let (point_y, binary_data) = binary_helpers::pop_f32(binary_data);
[INFO] [stdout]    |                               ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/entity.rs:68:31
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 let (point_y, binary_data) = binary_helpers::pop_f32(binary_data);
[INFO] [stdout]    |                               ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `resource_type`
[INFO] [stdout]   --> src/entity.rs:76:22
[INFO] [stdout]    |
[INFO] [stdout] 76 |                 let (resource_type, binary_data) = binary_helpers::pop_u8(binary_data);
[INFO] [stdout]    |                      ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resource_type`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/entity.rs:76:37
[INFO] [stdout]    |
[INFO] [stdout] 76 |                 let (resource_type, binary_data) = binary_helpers::pop_u8(binary_data);
[INFO] [stdout]    |                                     ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/entity.rs:183:17
[INFO] [stdout]     |
[INFO] [stdout] 183 |             let mut point_x: f32 = 0.0;
[INFO] [stdout]     |                 ----^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/entity.rs:184:17
[INFO] [stdout]     |
[INFO] [stdout] 184 |             let mut point_y: f32 = 0.0;
[INFO] [stdout]     |                 ----^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]    --> src/entity.rs:179:32
[INFO] [stdout]     |
[INFO] [stdout] 179 |         let (task_binary_data, binary_data) = binary_helpers::pop_padded(binary_data);
[INFO] [stdout]     |                                ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `point_x`
[INFO] [stdout]    --> src/entity.rs:183:17
[INFO] [stdout]     |
[INFO] [stdout] 183 |             let mut point_x: f32 = 0.0;
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `point_y`
[INFO] [stdout]    --> src/entity.rs:184:17
[INFO] [stdout]     |
[INFO] [stdout] 184 |             let mut point_y: f32 = 0.0;
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `map`
[INFO] [stdout]    --> src/entity.rs:542:53
[INFO] [stdout]     |
[INFO] [stdout] 542 |     pub fn interact_with(&mut self, other: &Entity, map: &map::Map) {
[INFO] [stdout]     |                                                     ^^^ help: if this is intentional, prefix it with an underscore: `_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/entity_holder.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 |             let mut entity = Entity::from_binary(unit_data);
[INFO] [stdout]    |                 ----^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/entity_holder.rs:51:34
[INFO] [stdout]    |
[INFO] [stdout] 51 |         let (mut buildings_data, binary_data) = binary_helpers::pop_padded(binary_data);
[INFO] [stdout]    |                                  ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `team_id`
[INFO] [stdout]    --> src/entity_holder.rs:185:82
[INFO] [stdout]     |
[INFO] [stdout] 185 |     pub fn add_new_building(&mut self, map: &mut map::Map, location: (i32, i32), team_id: u32) {
[INFO] [stdout]     |                                                                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/entity_holder.rs:202:13
[INFO] [stdout]     |
[INFO] [stdout] 202 |         let mut new_entity = Entity::new(x, y, self.id_counter, team_id, entity_type);
[INFO] [stdout]     |             ----^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tick`
[INFO] [stdout]    --> src/entity_holder.rs:253:73
[INFO] [stdout]     |
[INFO] [stdout] 253 |     pub fn entities_interact_with_each_other(&mut self, map: &map::Map, tick: u32) {
[INFO] [stdout]     |                                                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_tick`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/entity_holder.rs:296:25
[INFO] [stdout]     |
[INFO] [stdout] 296 |                     let mut entity = self.entities.get_mut(entity_id).unwrap();
[INFO] [stdout]     |                         ----^^^^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/projectile.rs:39:21
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let (angle, binary_data) = binary_helpers::pop_f32(binary_data);
[INFO] [stdout]    |                     ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/building.rs:21:17
[INFO] [stdout]    |
[INFO] [stdout] 21 |         let (y, binary_data) = binary_helpers::pop_i32(binary_data);
[INFO] [stdout]    |                 ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `unit_type`
[INFO] [stdout]    --> src/game_state.rs:115:60
[INFO] [stdout]     |
[INFO] [stdout] 115 |                 GameEvent::InsertUnit { location, team_id, unit_type } => {
[INFO] [stdout]     |                                                            ^^^^^^^^^ help: try ignoring the field: `unit_type: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/binary_helpers.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let mut binary_data: Vec<u8> = vec![0; 4];
[INFO] [stdout]    |         ----^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/binary_helpers.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let mut binary_data: Vec<u8> = vec![0; 4];
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/main.rs:253:29
[INFO] [stdout]     |
[INFO] [stdout] 253 | ...                   _ => Err("Invalid GroundType for drawing".to_string())
[INFO] [stdout]     |                       ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/main.rs:253:29
[INFO] [stdout]     |
[INFO] [stdout] 249 | ...                   map::SecondLevelType::Tree => Ok(1),
[INFO] [stdout]     |                       -------------------------- matches some of the same values
[INFO] [stdout] 250 | ...                   map::SecondLevelType::CutTree=> Ok(5),
[INFO] [stdout]     |                       ----------------------------- matches some of the same values
[INFO] [stdout] 251 | ...                   map::SecondLevelType::Building=> Ok(6),
[INFO] [stdout]     |                       ------------------------------ matches some of the same values
[INFO] [stdout] 252 | ...                   map::SecondLevelType::Empty => Ok(-1),
[INFO] [stdout]     |                       --------------------------- matches some of the same values
[INFO] [stdout] 253 | ...                   _ => Err("Invalid GroundType for drawing".to_string())
[INFO] [stdout]     |                       ^ collectively making this unreachable
[INFO] [stdout]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add` is never used
[INFO] [stdout]   --> src/point.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl Vector {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn add(&mut self, other: &Vector) {
[INFO] [stdout]    |            ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `as_f` is never used
[INFO] [stdout]    --> src/point.rs:103:12
[INFO] [stdout]     |
[INFO] [stdout]  75 | impl Point {
[INFO] [stdout]     | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 103 |     pub fn as_f(&self) -> (f32, f32) {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Gold` is never constructed
[INFO] [stdout]   --> src/entity.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub enum ResourceType {
[INFO] [stdout]    |          ------------ variant in this enum
[INFO] [stdout] 12 |     Wood,
[INFO] [stdout] 13 |     Gold,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ResourceType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_ranged`, `seeing_distance`, and `can_reach` are never used
[INFO] [stdout]    --> src/entity.rs:260:12
[INFO] [stdout]     |
[INFO] [stdout] 219 | impl Entity {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 260 |     pub fn is_ranged(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 268 |     pub fn seeing_distance(&self) -> f32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 495 |     pub fn can_reach(&self, distance: f32, point: &point::Point, map: &map::Map) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `tick` is never used
[INFO] [stdout]    --> src/game_state.rs:102:12
[INFO] [stdout]     |
[INFO] [stdout]  82 | impl GameState {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 102 |     pub fn tick(&self) -> u32 { self.tick }
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:398:17
[INFO] [stdout]     |
[INFO] [stdout] 398 | /                 canvas.copy(
[INFO] [stdout] 399 | |                    &texture_holder.building_1_texture,
[INFO] [stdout] 400 | |                    None,
[INFO] [stdout] 401 | |                    rect
[INFO] [stdout] 402 | |                );
[INFO] [stdout]     | |________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 398 |                 let _ = canvas.copy(
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/entity_holder.rs:94:30
[INFO] [stdout]    |
[INFO] [stdout] 94 |     pub fn entities_iter_mut(&mut self) -> ValuesMut<u32, Entity> { // Iterator<Item=&Entity> {
[INFO] [stdout]    |                              ^^^^^^^^^     ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 94 |     pub fn entities_iter_mut(&mut self) -> ValuesMut<'_, u32, Entity> { // Iterator<Item=&Entity> {
[INFO] [stdout]    |                                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/entity_holder.rs:99:26
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn entities_iter(&self) -> Values<u32, Entity> { // Iterator<Item=&Entity> {
[INFO] [stdout]    |                          ^^^^^     ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn entities_iter(&self) -> Values<'_, u32, Entity> { // Iterator<Item=&Entity> {
[INFO] [stdout]    |                                           +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/texture_holder.rs:59:29
[INFO] [stdout]    |
[INFO] [stdout] 59 |     pub fn get_team_texture(& self, team_id: usize) -> Result<&Texture, String> {
[INFO] [stdout]    |                             ^^^^^^                            ^^^^^^^^
[INFO] [stdout]    |                             |                                 ||
[INFO] [stdout]    |                             |                                 |the same lifetime is hidden here
[INFO] [stdout]    |                             |                                 the same lifetime is elided here
[INFO] [stdout]    |                             the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 59 |     pub fn get_team_texture(& self, team_id: usize) -> Result<&Texture<'_>, String> {
[INFO] [stdout]    |                                                                       ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]   --> src/binary_helpers.rs:68:39
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let raw_bytes: [u8; 4] = unsafe { std::mem::transmute(input) };
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order
[INFO] [stdout]    = note: `#[warn(unnecessary_transmutes)]` on by default
[INFO] [stdout] help: replace this with
[INFO] [stdout]    |
[INFO] [stdout] 68 -     let raw_bytes: [u8; 4] = unsafe { std::mem::transmute(input) };
[INFO] [stdout] 68 +     let raw_bytes: [u8; 4] = unsafe { f32::to_ne_bytes(input) };
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BTreeMapMultiMut`
[INFO] [stdout]  --> src/entity_holder.rs:5:34
[INFO] [stdout]   |
[INFO] [stdout] 5 | use multi_mut::{HashMapMultiMut, BTreeMapMultiMut};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/entity.rs:61:31
[INFO] [stdout]    |
[INFO] [stdout] 61 |                 let (point_y, binary_data) = binary_helpers::pop_f32(binary_data);
[INFO] [stdout]    |                               ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/entity.rs:68:31
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 let (point_y, binary_data) = binary_helpers::pop_f32(binary_data);
[INFO] [stdout]    |                               ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `resource_type`
[INFO] [stdout]   --> src/entity.rs:76:22
[INFO] [stdout]    |
[INFO] [stdout] 76 |                 let (resource_type, binary_data) = binary_helpers::pop_u8(binary_data);
[INFO] [stdout]    |                      ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resource_type`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/entity.rs:76:37
[INFO] [stdout]    |
[INFO] [stdout] 76 |                 let (resource_type, binary_data) = binary_helpers::pop_u8(binary_data);
[INFO] [stdout]    |                                     ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/entity.rs:183:17
[INFO] [stdout]     |
[INFO] [stdout] 183 |             let mut point_x: f32 = 0.0;
[INFO] [stdout]     |                 ----^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/entity.rs:184:17
[INFO] [stdout]     |
[INFO] [stdout] 184 |             let mut point_y: f32 = 0.0;
[INFO] [stdout]     |                 ----^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]    --> src/entity.rs:179:32
[INFO] [stdout]     |
[INFO] [stdout] 179 |         let (task_binary_data, binary_data) = binary_helpers::pop_padded(binary_data);
[INFO] [stdout]     |                                ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `point_x`
[INFO] [stdout]    --> src/entity.rs:183:17
[INFO] [stdout]     |
[INFO] [stdout] 183 |             let mut point_x: f32 = 0.0;
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `point_y`
[INFO] [stdout]    --> src/entity.rs:184:17
[INFO] [stdout]     |
[INFO] [stdout] 184 |             let mut point_y: f32 = 0.0;
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `map`
[INFO] [stdout]    --> src/entity.rs:542:53
[INFO] [stdout]     |
[INFO] [stdout] 542 |     pub fn interact_with(&mut self, other: &Entity, map: &map::Map) {
[INFO] [stdout]     |                                                     ^^^ help: if this is intentional, prefix it with an underscore: `_map`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/entity_holder.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 |             let mut entity = Entity::from_binary(unit_data);
[INFO] [stdout]    |                 ----^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/entity_holder.rs:51:34
[INFO] [stdout]    |
[INFO] [stdout] 51 |         let (mut buildings_data, binary_data) = binary_helpers::pop_padded(binary_data);
[INFO] [stdout]    |                                  ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `team_id`
[INFO] [stdout]    --> src/entity_holder.rs:185:82
[INFO] [stdout]     |
[INFO] [stdout] 185 |     pub fn add_new_building(&mut self, map: &mut map::Map, location: (i32, i32), team_id: u32) {
[INFO] [stdout]     |                                                                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/entity_holder.rs:202:13
[INFO] [stdout]     |
[INFO] [stdout] 202 |         let mut new_entity = Entity::new(x, y, self.id_counter, team_id, entity_type);
[INFO] [stdout]     |             ----^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tick`
[INFO] [stdout]    --> src/entity_holder.rs:253:73
[INFO] [stdout]     |
[INFO] [stdout] 253 |     pub fn entities_interact_with_each_other(&mut self, map: &map::Map, tick: u32) {
[INFO] [stdout]     |                                                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_tick`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/entity_holder.rs:296:25
[INFO] [stdout]     |
[INFO] [stdout] 296 |                     let mut entity = self.entities.get_mut(entity_id).unwrap();
[INFO] [stdout]     |                         ----^^^^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/projectile.rs:39:21
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let (angle, binary_data) = binary_helpers::pop_f32(binary_data);
[INFO] [stdout]    |                     ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/building.rs:21:17
[INFO] [stdout]    |
[INFO] [stdout] 21 |         let (y, binary_data) = binary_helpers::pop_i32(binary_data);
[INFO] [stdout]    |                 ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `unit_type`
[INFO] [stdout]    --> src/game_state.rs:115:60
[INFO] [stdout]     |
[INFO] [stdout] 115 |                 GameEvent::InsertUnit { location, team_id, unit_type } => {
[INFO] [stdout]     |                                                            ^^^^^^^^^ help: try ignoring the field: `unit_type: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/binary_helpers.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let mut binary_data: Vec<u8> = vec![0; 4];
[INFO] [stdout]    |         ----^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `binary_data`
[INFO] [stdout]   --> src/binary_helpers.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let mut binary_data: Vec<u8> = vec![0; 4];
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/main.rs:253:29
[INFO] [stdout]     |
[INFO] [stdout] 253 | ...                   _ => Err("Invalid GroundType for drawing".to_string())
[INFO] [stdout]     |                       ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/main.rs:253:29
[INFO] [stdout]     |
[INFO] [stdout] 249 | ...                   map::SecondLevelType::Tree => Ok(1),
[INFO] [stdout]     |                       -------------------------- matches some of the same values
[INFO] [stdout] 250 | ...                   map::SecondLevelType::CutTree=> Ok(5),
[INFO] [stdout]     |                       ----------------------------- matches some of the same values
[INFO] [stdout] 251 | ...                   map::SecondLevelType::Building=> Ok(6),
[INFO] [stdout]     |                       ------------------------------ matches some of the same values
[INFO] [stdout] 252 | ...                   map::SecondLevelType::Empty => Ok(-1),
[INFO] [stdout]     |                       --------------------------- matches some of the same values
[INFO] [stdout] 253 | ...                   _ => Err("Invalid GroundType for drawing".to_string())
[INFO] [stdout]     |                       ^ collectively making this unreachable
[INFO] [stdout]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add` is never used
[INFO] [stdout]   --> src/point.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl Vector {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn add(&mut self, other: &Vector) {
[INFO] [stdout]    |            ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `as_f` is never used
[INFO] [stdout]    --> src/point.rs:103:12
[INFO] [stdout]     |
[INFO] [stdout]  75 | impl Point {
[INFO] [stdout]     | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 103 |     pub fn as_f(&self) -> (f32, f32) {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Gold` is never constructed
[INFO] [stdout]   --> src/entity.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub enum ResourceType {
[INFO] [stdout]    |          ------------ variant in this enum
[INFO] [stdout] 12 |     Wood,
[INFO] [stdout] 13 |     Gold,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ResourceType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_ranged`, `seeing_distance`, and `can_reach` are never used
[INFO] [stdout]    --> src/entity.rs:260:12
[INFO] [stdout]     |
[INFO] [stdout] 219 | impl Entity {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 260 |     pub fn is_ranged(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 268 |     pub fn seeing_distance(&self) -> f32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 495 |     pub fn can_reach(&self, distance: f32, point: &point::Point, map: &map::Map) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `tick` is never used
[INFO] [stdout]    --> src/game_state.rs:102:12
[INFO] [stdout]     |
[INFO] [stdout]  82 | impl GameState {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 102 |     pub fn tick(&self) -> u32 { self.tick }
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:398:17
[INFO] [stdout]     |
[INFO] [stdout] 398 | /                 canvas.copy(
[INFO] [stdout] 399 | |                    &texture_holder.building_1_texture,
[INFO] [stdout] 400 | |                    None,
[INFO] [stdout] 401 | |                    rect
[INFO] [stdout] 402 | |                );
[INFO] [stdout]     | |________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 398 |                 let _ = canvas.copy(
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/entity_holder.rs:94:30
[INFO] [stdout]    |
[INFO] [stdout] 94 |     pub fn entities_iter_mut(&mut self) -> ValuesMut<u32, Entity> { // Iterator<Item=&Entity> {
[INFO] [stdout]    |                              ^^^^^^^^^     ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 94 |     pub fn entities_iter_mut(&mut self) -> ValuesMut<'_, u32, Entity> { // Iterator<Item=&Entity> {
[INFO] [stdout]    |                                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/entity_holder.rs:99:26
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn entities_iter(&self) -> Values<u32, Entity> { // Iterator<Item=&Entity> {
[INFO] [stdout]    |                          ^^^^^     ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn entities_iter(&self) -> Values<'_, u32, Entity> { // Iterator<Item=&Entity> {
[INFO] [stdout]    |                                           +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/texture_holder.rs:59:29
[INFO] [stdout]    |
[INFO] [stdout] 59 |     pub fn get_team_texture(& self, team_id: usize) -> Result<&Texture, String> {
[INFO] [stdout]    |                             ^^^^^^                            ^^^^^^^^
[INFO] [stdout]    |                             |                                 ||
[INFO] [stdout]    |                             |                                 |the same lifetime is hidden here
[INFO] [stdout]    |                             |                                 the same lifetime is elided here
[INFO] [stdout]    |                             the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 59 |     pub fn get_team_texture(& self, team_id: usize) -> Result<&Texture<'_>, String> {
[INFO] [stdout]    |                                                                       ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]   --> src/binary_helpers.rs:68:39
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let raw_bytes: [u8; 4] = unsafe { std::mem::transmute(input) };
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order
[INFO] [stdout]    = note: `#[warn(unnecessary_transmutes)]` on by default
[INFO] [stdout] help: replace this with
[INFO] [stdout]    |
[INFO] [stdout] 68 -     let raw_bytes: [u8; 4] = unsafe { std::mem::transmute(input) };
[INFO] [stdout] 68 +     let raw_bytes: [u8; 4] = unsafe { f32::to_ne_bytes(input) };
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.14s
[INFO] running `Command { std: "docker" "inspect" "da8ee8121ec35ee7d675c9969b854bfbd33689cc6e471acaf86cae7bbb3561ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "da8ee8121ec35ee7d675c9969b854bfbd33689cc6e471acaf86cae7bbb3561ba", kill_on_drop: false }`
[INFO] [stdout] da8ee8121ec35ee7d675c9969b854bfbd33689cc6e471acaf86cae7bbb3561ba
