[INFO] cloning repository https://github.com/cmaves/bg-setter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cmaves/bg-setter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcmaves%2Fbg-setter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcmaves%2Fbg-setter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56ee92f80a181ceab9e0fd16d846a48e428e33ad [INFO] checking cmaves/bg-setter against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcmaves%2Fbg-setter" "/workspace/builds/worker-16/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-16/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cmaves/bg-setter 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/cmaves/bg-setter [INFO] finished tweaking git repo https://github.com/cmaves/bg-setter [INFO] tweaked toml for git repo https://github.com/cmaves/bg-setter written to /workspace/builds/worker-16/source/Cargo.toml [INFO] crate git repo https://github.com/cmaves/bg-setter 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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] 7cfdb80d95aad57086546dd823cc700e84f160e1ad89242b9725d32eb685ce63 [INFO] running `Command { std: "docker" "start" "-a" "7cfdb80d95aad57086546dd823cc700e84f160e1ad89242b9725d32eb685ce63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7cfdb80d95aad57086546dd823cc700e84f160e1ad89242b9725d32eb685ce63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cfdb80d95aad57086546dd823cc700e84f160e1ad89242b9725d32eb685ce63", kill_on_drop: false }` [INFO] [stdout] 7cfdb80d95aad57086546dd823cc700e84f160e1ad89242b9725d32eb685ce63 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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] 31a462da4020716bf36716088e6d10759a096c52e53fde70bd113f3b44540568 [INFO] running `Command { std: "docker" "start" "-a" "31a462da4020716bf36716088e6d10759a096c52e53fde70bd113f3b44540568", 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] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Compiling xcb v0.9.0 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking crossbeam-deque v0.7.2 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking jpeg-decoder v0.1.18 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking image v0.22.4 [INFO] [stderr] Checking bg-setter v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/lib.rs (2 fixes) [INFO] [stdout] warning: function is never used: `xcb_image_annotate` [INFO] [stdout] --> src/ffi_image.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn xcb_image_annotate(image: *mut xcb_image_t); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_create_native` [INFO] [stdout] --> src/ffi_image.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn xcb_image_create_native(c: *mut xcb_connection_t, width: u16, height: u16, format: xcb_image_format_t, depth: u8, base: *mut c_void, bytes: u32, data: *mut u8) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_put_pixel` [INFO] [stdout] --> src/ffi_image.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn xcb_image_put_pixel(image: *mut xcb_image_t, x: u32, y: u32, pixel: u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_convert` [INFO] [stdout] --> src/ffi_image.rs:34:2 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn xcb_image_convert(src: *const xcb_image_t, dst: *mut xcb_image_t) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_subimage` [INFO] [stdout] --> src/ffi_image.rs:35:2 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn xcb_image_subimage(image: *const xcb_image_t, x: u32, y: u32, width: u32, height: u32, base: *mut c_void, bytes: u32, data: *mut u8) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `annotate` [INFO] [stdout] --> src/shm_img.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn annotate(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put` [INFO] [stdout] --> src/shm_img.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn put(&mut self, x: u32, y: u32, pixel: u32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/shm_img.rs:76:2 [INFO] [stdout] | [INFO] [stdout] 76 | width: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/shm_img.rs:77:2 [INFO] [stdout] | [INFO] [stdout] 77 | height: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resize` [INFO] [stdout] --> src/shm_img.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn resize(&mut self, width: u16, height: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `restore` [INFO] [stdout] --> src/shm_img.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn restore(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `actual_width` [INFO] [stdout] --> src/shm_img.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn actual_width(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `actual_height` [INFO] [stdout] --> src/shm_img.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn actual_height(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/shm_img.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn area<'a>(c: &xcb::Connection, drawable: xcb::Drawable, output: &'a mut Image<'a>, x: i16, y: i16, width: u16, height: u16, plane_m... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> src/lib.rs:28:2 [INFO] [stdout] | [INFO] [stdout] 28 | index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rgb_to_zpix` [INFO] [stdout] --> src/lib.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn rgb_to_zpix(r: u8, g: u8, b: u8, order: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | self.resize_shm(rgb); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 259 | / shm_img::put(&self.conn, pid, self.gc, &self.shm_img, 0, 0, [INFO] [stdout] 260 | | x as i16, y as i16, width as u16, height as u16, false); [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:293:3 [INFO] [stdout] | [INFO] [stdout] 293 | self.fade_abs(screen, x, y , rgb, secs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/lib.rs from 2018 edition to 2021 [INFO] [stdout] warning: function is never used: `xcb_image_annotate` [INFO] [stdout] --> src/ffi_image.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn xcb_image_annotate(image: *mut xcb_image_t); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_create_native` [INFO] [stdout] --> src/ffi_image.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn xcb_image_create_native(c: *mut xcb_connection_t, width: u16, height: u16, format: xcb_image_format_t, depth: u8, base: *mut c_void, bytes: u32, data: *mut u8) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_put_pixel` [INFO] [stdout] --> src/ffi_image.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn xcb_image_put_pixel(image: *mut xcb_image_t, x: u32, y: u32, pixel: u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_convert` [INFO] [stdout] --> src/ffi_image.rs:34:2 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn xcb_image_convert(src: *const xcb_image_t, dst: *mut xcb_image_t) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_subimage` [INFO] [stdout] --> src/ffi_image.rs:35:2 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn xcb_image_subimage(image: *const xcb_image_t, x: u32, y: u32, width: u32, height: u32, base: *mut c_void, bytes: u32, data: *mut u8) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `annotate` [INFO] [stdout] --> src/shm_img.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn annotate(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put` [INFO] [stdout] --> src/shm_img.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn put(&mut self, x: u32, y: u32, pixel: u32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/shm_img.rs:76:2 [INFO] [stdout] | [INFO] [stdout] 76 | width: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/shm_img.rs:77:2 [INFO] [stdout] | [INFO] [stdout] 77 | height: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resize` [INFO] [stdout] --> src/shm_img.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn resize(&mut self, width: u16, height: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `restore` [INFO] [stdout] --> src/shm_img.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn restore(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `actual_width` [INFO] [stdout] --> src/shm_img.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn actual_width(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `actual_height` [INFO] [stdout] --> src/shm_img.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn actual_height(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/shm_img.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn area<'a>(c: &xcb::Connection, drawable: xcb::Drawable, output: &'a mut Image<'a>, x: i16, y: i16, width: u16, height: u16, plane_m... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> src/lib.rs:28:2 [INFO] [stdout] | [INFO] [stdout] 28 | index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rgb_to_zpix` [INFO] [stdout] --> src/lib.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn rgb_to_zpix(r: u8, g: u8, b: u8, order: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | self.resize_shm(rgb); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 259 | / shm_img::put(&self.conn, pid, self.gc, &self.shm_img, 0, 0, [INFO] [stdout] 260 | | x as i16, y as i16, width as u16, height as u16, false); [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:293:3 [INFO] [stdout] | [INFO] [stdout] 293 | self.fade_abs(screen, x, y , rgb, secs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed tests/lib.rs (1 fix) [INFO] [stdout] warning: static variable `images` should have an upper case name [INFO] [stdout] --> tests/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | static ref images: Vec = { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `IMAGES` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 44.69s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking bg-setter v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: function is never used: `xcb_image_annotate` [INFO] [stdout] --> src/ffi_image.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn xcb_image_annotate(image: *mut xcb_image_t); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_create_native` [INFO] [stdout] --> src/ffi_image.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn xcb_image_create_native(c: *mut xcb_connection_t, width: u16, height: u16, format: xcb_image_format_t, depth: u8, base: *mut c_void, bytes: u32, data: *mut u8) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_put_pixel` [INFO] [stdout] --> src/ffi_image.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn xcb_image_put_pixel(image: *mut xcb_image_t, x: u32, y: u32, pixel: u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_convert` [INFO] [stdout] --> src/ffi_image.rs:34:2 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn xcb_image_convert(src: *const xcb_image_t, dst: *mut xcb_image_t) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_subimage` [INFO] [stdout] --> src/ffi_image.rs:35:2 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn xcb_image_subimage(image: *const xcb_image_t, x: u32, y: u32, width: u32, height: u32, base: *mut c_void, bytes: u32, data: *mut u8) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `annotate` [INFO] [stdout] --> src/shm_img.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn annotate(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put` [INFO] [stdout] --> src/shm_img.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn put(&mut self, x: u32, y: u32, pixel: u32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/shm_img.rs:76:2 [INFO] [stdout] | [INFO] [stdout] 76 | width: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/shm_img.rs:77:2 [INFO] [stdout] | [INFO] [stdout] 77 | height: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resize` [INFO] [stdout] --> src/shm_img.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn resize(&mut self, width: u16, height: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `restore` [INFO] [stdout] --> src/shm_img.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn restore(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `actual_width` [INFO] [stdout] --> src/shm_img.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn actual_width(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `actual_height` [INFO] [stdout] --> src/shm_img.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn actual_height(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/shm_img.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn area<'a>(c: &xcb::Connection, drawable: xcb::Drawable, output: &'a mut Image<'a>, x: i16, y: i16, width: u16, height: u16, plane_m... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> src/lib.rs:28:2 [INFO] [stdout] | [INFO] [stdout] 28 | index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rgb_to_zpix` [INFO] [stdout] --> src/lib.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn rgb_to_zpix(r: u8, g: u8, b: u8, order: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_annotate` [INFO] [stdout] --> src/ffi_image.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn xcb_image_annotate(image: *mut xcb_image_t); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_create_native` [INFO] [stdout] --> src/ffi_image.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn xcb_image_create_native(c: *mut xcb_connection_t, width: u16, height: u16, format: xcb_image_format_t, depth: u8, base: *mut c_void, bytes: u32, data: *mut u8) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_put_pixel` [INFO] [stdout] --> src/ffi_image.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn xcb_image_put_pixel(image: *mut xcb_image_t, x: u32, y: u32, pixel: u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_convert` [INFO] [stdout] --> src/ffi_image.rs:34:2 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn xcb_image_convert(src: *const xcb_image_t, dst: *mut xcb_image_t) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xcb_image_subimage` [INFO] [stdout] --> src/ffi_image.rs:35:2 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn xcb_image_subimage(image: *const xcb_image_t, x: u32, y: u32, width: u32, height: u32, base: *mut c_void, bytes: u32, data: *mut u8) -> *mut xcb_image_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `annotate` [INFO] [stdout] --> src/shm_img.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn annotate(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put` [INFO] [stdout] --> src/shm_img.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn put(&mut self, x: u32, y: u32, pixel: u32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/shm_img.rs:76:2 [INFO] [stdout] | [INFO] [stdout] 76 | width: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/shm_img.rs:77:2 [INFO] [stdout] | [INFO] [stdout] 77 | height: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resize` [INFO] [stdout] --> src/shm_img.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn resize(&mut self, width: u16, height: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `restore` [INFO] [stdout] --> src/shm_img.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn restore(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `actual_width` [INFO] [stdout] --> src/shm_img.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn actual_width(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `actual_height` [INFO] [stdout] --> src/shm_img.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn actual_height(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/shm_img.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn area<'a>(c: &xcb::Connection, drawable: xcb::Drawable, output: &'a mut Image<'a>, x: i16, y: i16, width: u16, height: u16, plane_m... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> src/lib.rs:28:2 [INFO] [stdout] | [INFO] [stdout] 28 | index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rgb_to_zpix` [INFO] [stdout] --> src/lib.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn rgb_to_zpix(r: u8, g: u8, b: u8, order: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | self.resize_shm(rgb); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | self.resize_shm(rgb); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 259 | / shm_img::put(&self.conn, pid, self.gc, &self.shm_img, 0, 0, [INFO] [stdout] 260 | | x as i16, y as i16, width as u16, height as u16, false); [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:293:3 [INFO] [stdout] | [INFO] [stdout] 293 | self.fade_abs(screen, x, y , rgb, secs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 259 | / shm_img::put(&self.conn, pid, self.gc, &self.shm_img, 0, 0, [INFO] [stdout] 260 | | x as i16, y as i16, width as u16, height as u16, false); [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:293:3 [INFO] [stdout] | [INFO] [stdout] 293 | self.fade_abs(screen, x, y , rgb, secs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `images` should have an upper case name [INFO] [stdout] --> tests/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | static ref images: Vec = { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `IMAGES` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 13s [INFO] running `Command { std: "docker" "inspect" "31a462da4020716bf36716088e6d10759a096c52e53fde70bd113f3b44540568", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31a462da4020716bf36716088e6d10759a096c52e53fde70bd113f3b44540568", kill_on_drop: false }` [INFO] [stdout] 31a462da4020716bf36716088e6d10759a096c52e53fde70bd113f3b44540568