[INFO] cloning repository https://github.com/questmaster/rust_sweeper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/questmaster/rust_sweeper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquestmaster%2Frust_sweeper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquestmaster%2Frust_sweeper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b27667c96983eb22d36bab24112866bd3a66a6a3 [INFO] checking questmaster/rust_sweeper against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquestmaster%2Frust_sweeper" "/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/questmaster/rust_sweeper [INFO] finished tweaking git repo https://github.com/questmaster/rust_sweeper [INFO] tweaked toml for git repo https://github.com/questmaster/rust_sweeper written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/questmaster/rust_sweeper on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/questmaster/rust_sweeper 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 845b74d8d9b60d22bf5cc741113bd535e7678def318389308477db0c7d07307b [INFO] running `Command { std: "docker" "start" "-a" "845b74d8d9b60d22bf5cc741113bd535e7678def318389308477db0c7d07307b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "845b74d8d9b60d22bf5cc741113bd535e7678def318389308477db0c7d07307b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "845b74d8d9b60d22bf5cc741113bd535e7678def318389308477db0c7d07307b", kill_on_drop: false }` [INFO] [stdout] 845b74d8d9b60d22bf5cc741113bd535e7678def318389308477db0c7d07307b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d765ce97a41098da2204e43cd7f621879f1eea09f75051b1f31d6409ab94c791 [INFO] running `Command { std: "docker" "start" "-a" "d765ce97a41098da2204e43cd7f621879f1eea09f75051b1f31d6409ab94c791", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Compiling sdl2 v0.34.3 [INFO] [stderr] Compiling rust_sweeper v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling sdl2-sys v0.34.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Checking structopt v0.3.21 [INFO] [stdout] warning: unused import: `Point` [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::rect::{Point, Rect}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:247:14 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = (0usize, 0usize); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:247:17 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = (0usize, 0usize); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/lib.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | let mut x = 0usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/lib.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let mut y = 0usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unload_all` is never used [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'s> TextureManager<'s> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | fn unload_all(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(texture_creator: &TextureCreator) -> TextureManager { [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] 26 | pub fn new(texture_creator: &TextureCreator) -> TextureManager<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn from_surface(&mut self, resource_id: &str, surface: Surface) -> &Texture { [INFO] [stdout] | ^^^^^^^^^ -------- [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | the lifetime is elided here the same 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] 33 | pub fn from_surface(&mut self, resource_id: &str, surface: Surface) -> &Texture<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 47 | .insert(resource_id.clone().to_string(), new_texture); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:49:55 [INFO] [stdout] | [INFO] [stdout] 49 | return self.textures.get(resource_id).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Texture<'_>` does not implement `Clone`, so calling `clone` on `&Texture<'_>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 49 - return self.textures.get(resource_id).unwrap().clone(); [INFO] [stdout] 49 + return self.textures.get(resource_id).unwrap(); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Texture<'_>`, implement `Clone` for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sdl2-0.34.3/src/sdl2/render.rs:1524:1 [INFO] [stdout] | [INFO] [stdout] 152+ #[derive(Clone)] [INFO] [stdout] 152| pub struct Texture<'r> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | fn get(&self, resource_id: &str) -> &Texture { [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] 52 | fn get(&self, resource_id: &str) -> &Texture<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:53:48 [INFO] [stdout] | [INFO] [stdout] 53 | self.textures.get(resource_id).unwrap().clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Texture<'_>` does not implement `Clone`, so calling `clone` on `&Texture<'_>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 53 - self.textures.get(resource_id).unwrap().clone() [INFO] [stdout] 53 + self.textures.get(resource_id).unwrap() [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Texture<'_>`, implement `Clone` for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sdl2-0.34.3/src/sdl2/render.rs:1524:1 [INFO] [stdout] | [INFO] [stdout] 152+ #[derive(Clone)] [INFO] [stdout] 152| pub struct Texture<'r> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | canvas.draw_rects(&rect); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 212 | let _ = canvas.draw_rects(&rect); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point` [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::rect::{Point, Rect}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:247:14 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = (0usize, 0usize); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:247:17 [INFO] [stdout] | [INFO] [stdout] 247 | let (x, y) = (0usize, 0usize); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/lib.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | let mut x = 0usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/lib.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let mut y = 0usize; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unload_all` is never used [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'s> TextureManager<'s> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | fn unload_all(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(texture_creator: &TextureCreator) -> TextureManager { [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] 26 | pub fn new(texture_creator: &TextureCreator) -> TextureManager<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn from_surface(&mut self, resource_id: &str, surface: Surface) -> &Texture { [INFO] [stdout] | ^^^^^^^^^ -------- [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | the lifetime is elided here the same 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] 33 | pub fn from_surface(&mut self, resource_id: &str, surface: Surface) -> &Texture<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 47 | .insert(resource_id.clone().to_string(), new_texture); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:49:55 [INFO] [stdout] | [INFO] [stdout] 49 | return self.textures.get(resource_id).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Texture<'_>` does not implement `Clone`, so calling `clone` on `&Texture<'_>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 49 - return self.textures.get(resource_id).unwrap().clone(); [INFO] [stdout] 49 + return self.textures.get(resource_id).unwrap(); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Texture<'_>`, implement `Clone` for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sdl2-0.34.3/src/sdl2/render.rs:1524:1 [INFO] [stdout] | [INFO] [stdout] 152+ #[derive(Clone)] [INFO] [stdout] 152| pub struct Texture<'r> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | fn get(&self, resource_id: &str) -> &Texture { [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] 52 | fn get(&self, resource_id: &str) -> &Texture<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:53:48 [INFO] [stdout] | [INFO] [stdout] 53 | self.textures.get(resource_id).unwrap().clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Texture<'_>` does not implement `Clone`, so calling `clone` on `&Texture<'_>` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 53 - self.textures.get(resource_id).unwrap().clone() [INFO] [stdout] 53 + self.textures.get(resource_id).unwrap() [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Texture<'_>`, implement `Clone` for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sdl2-0.34.3/src/sdl2/render.rs:1524:1 [INFO] [stdout] | [INFO] [stdout] 152+ #[derive(Clone)] [INFO] [stdout] 152| pub struct Texture<'r> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game_area_ui/sdl_ui.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | canvas.draw_rects(&rect); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 212 | let _ = canvas.draw_rects(&rect); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.18s [INFO] running `Command { std: "docker" "inspect" "d765ce97a41098da2204e43cd7f621879f1eea09f75051b1f31d6409ab94c791", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d765ce97a41098da2204e43cd7f621879f1eea09f75051b1f31d6409ab94c791", kill_on_drop: false }` [INFO] [stdout] d765ce97a41098da2204e43cd7f621879f1eea09f75051b1f31d6409ab94c791