[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] [stderr] fatal: write error: No space left on device [INFO] [stderr] fatal: fetch-pack: invalid index-pack output [WARN] Retrying crate fetch in 3 seconds (attempt 1) [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 master#e9182f195b8505c87c4bd055b9f6e114ccda0981 for pr-144098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquestmaster%2Frust_sweeper" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/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-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/questmaster/rust_sweeper on toolchain e9182f195b8505c87c4bd055b9f6e114ccda0981 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "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" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d67c7f6ca76289e40520e563cc7ddabd07b23c16dab86bfe89442028baa4c58 [INFO] running `Command { std: "docker" "start" "-a" "2d67c7f6ca76289e40520e563cc7ddabd07b23c16dab86bfe89442028baa4c58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d67c7f6ca76289e40520e563cc7ddabd07b23c16dab86bfe89442028baa4c58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d67c7f6ca76289e40520e563cc7ddabd07b23c16dab86bfe89442028baa4c58", kill_on_drop: false }` [INFO] [stdout] 2d67c7f6ca76289e40520e563cc7ddabd07b23c16dab86bfe89442028baa4c58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aab9c33eeafa1afe65695044445ff1103ae399c3efc4c5bde762b933e376250b [INFO] running `Command { std: "docker" "start" "-a" "aab9c33eeafa1afe65695044445ff1103ae399c3efc4c5bde762b933e376250b", 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 unicode-xid v0.2.2 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking vec_map v0.8.2 [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 proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling sdl2-sys v0.34.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking rand_core v0.6.2 [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 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: 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: 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: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(texture_creator: &TextureCreator) -> TextureManager<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be 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 lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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: 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: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(texture_creator: &TextureCreator) -> TextureManager<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be 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 lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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: 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: lifetime flowing from input to output with different syntax can be 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 lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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: lifetime flowing from input to output with different syntax can be 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 lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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 7.33s [INFO] running `Command { std: "docker" "inspect" "aab9c33eeafa1afe65695044445ff1103ae399c3efc4c5bde762b933e376250b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aab9c33eeafa1afe65695044445ff1103ae399c3efc4c5bde762b933e376250b", kill_on_drop: false }` [INFO] [stdout] aab9c33eeafa1afe65695044445ff1103ae399c3efc4c5bde762b933e376250b