[INFO] fetching crate raster-retrace 0.1.2... [INFO] checking raster-retrace-0.1.2 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] extracting crate raster-retrace 0.1.2 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate raster-retrace 0.1.2 on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate raster-retrace 0.1.2 [INFO] finished tweaking crates.io crate raster-retrace 0.1.2 [INFO] tweaked toml for crates.io crate raster-retrace 0.1.2 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 43efd93b3c41ddc03d2372c845e38661e8b18aa221ee158f73ba6b3ae48b390d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "43efd93b3c41ddc03d2372c845e38661e8b18aa221ee158f73ba6b3ae48b390d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "43efd93b3c41ddc03d2372c845e38661e8b18aa221ee158f73ba6b3ae48b390d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43efd93b3c41ddc03d2372c845e38661e8b18aa221ee158f73ba6b3ae48b390d", kill_on_drop: false }` [INFO] [stdout] 43efd93b3c41ddc03d2372c845e38661e8b18aa221ee158f73ba6b3ae48b390d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9b53c4ee69e08f14fa2917e9fa1d9de269c00170e2bfa3f080889d16aaae5b37 [INFO] running `Command { std: "docker" "start" "-a" "9b53c4ee69e08f14fa2917e9fa1d9de269c00170e2bfa3f080889d16aaae5b37", kill_on_drop: false }` [INFO] [stderr] Checking raster-retrace v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/intern/argparse/mod.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | pub const ARGDEF_REQUIRED: u32 = (1 << 0); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/intern/argparse/mod.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | pub const ARGDEF_VARARGS: u32 = (1 << 1); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/intern/argparse/mod.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | callback: Box Result>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&mut T, &[String]) -> Result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/intern/argparse/mod.rs:87:23 [INFO] [stdout] | [INFO] [stdout] 87 | callback: Box Result>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&mut T, &[String]) -> Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/intern/min_heap/mod.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | ((i - 1) >> 1) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/intern/min_heap/mod.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | ((i << 1) + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/intern/min_heap/mod.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | ((i << 1) + 2) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/intern/min_heap/mod.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | (a.value < b.value) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_outline.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | pub const L: u8 = (1 << 0); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_outline.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | pub const R: u8 = (1 << 1); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_outline.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | pub const D: u8 = (1 << 2); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_outline.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | pub const U: u8 = (1 << 3); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/polys_from_raster_outline.rs:149:29 [INFO] [stdout] | [INFO] [stdout] 149 | / ... ((x == xy_a[0] && x == xy_b[0]) || [INFO] [stdout] 150 | | ... (y == xy_a[1] && y == xy_b[1])) [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 | (x == xy_a[0] && x == xy_b[0]) || [INFO] [stdout] 150 | (y == xy_a[1] && y == xy_b[1]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | pub const L: u8 = (1 << 0); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | pub const R: u8 = (1 << 1); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | pub const D: u8 = (1 << 2); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | pub const U: u8 = (1 << 3); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub const LD: u8 = (1 << 4); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | pub const LU: u8 = (1 << 5); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | pub const RD: u8 = (1 << 6); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | pub const RU: u8 = (1 << 7); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | / ... ( [INFO] [stdout] 193 | | ... // axis aligned [INFO] [stdout] 194 | | ... (x == xy_a[0] && x == xy_b[0]) || [INFO] [stdout] 195 | | ... (y == xy_a[1] && y == xy_b[1]) || [INFO] [stdout] ... | [INFO] [stdout] 212 | | ... } [INFO] [stdout] 213 | | ... ) [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 | // axis aligned [INFO] [stdout] 193 | (x == xy_a[0] && x == xy_b[0]) || [INFO] [stdout] 194 | (y == xy_a[1] && y == xy_b[1]) || [INFO] [stdout] 195 | // diagonal [INFO] [stdout] 196 | { [INFO] [stdout] 197 | let x_a_delta = xy_a[0] - xy_b[0]; [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:203:37 [INFO] [stdout] | [INFO] [stdout] 203 | / ... (x_a_delta != 0 && y_a_delta != 0 && [INFO] [stdout] 204 | | ... // no need to check 'b', signum accounts for that case. [INFO] [stdout] 205 | | ... [INFO] [stdout] 206 | | ... x_a_delta.abs() == y_a_delta.abs() && [INFO] [stdout] ... | [INFO] [stdout] 210 | | ... x_a_delta.signum() == x_b_delta.signum() && [INFO] [stdout] 211 | | ... y_a_delta.signum() == y_b_delta.signum()) [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 203 | x_a_delta != 0 && y_a_delta != 0 && [INFO] [stdout] 204 | // no need to check 'b', signum accounts for that case. [INFO] [stdout] 205 | [INFO] [stdout] 206 | x_a_delta.abs() == y_a_delta.abs() && [INFO] [stdout] 207 | x_b_delta.abs() == y_b_delta.abs() && [INFO] [stdout] 208 | [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:218:37 [INFO] [stdout] | [INFO] [stdout] 218 | if neighbors & DIR_S != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:219:37 [INFO] [stdout] | [INFO] [stdout] 219 | if neighbors & DIR_E != 0 { (1 << 1) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:226:37 [INFO] [stdout] | [INFO] [stdout] 226 | if neighbors & DIR_W != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:227:37 [INFO] [stdout] | [INFO] [stdout] 227 | if neighbors & DIR_S != 0 { (1 << 2) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:234:37 [INFO] [stdout] | [INFO] [stdout] 234 | if neighbors & DIR_N != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:235:37 [INFO] [stdout] | [INFO] [stdout] 235 | if neighbors & DIR_E != 0 { (1 << 1) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:242:37 [INFO] [stdout] | [INFO] [stdout] 242 | if neighbors & DIR_N != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:243:37 [INFO] [stdout] | [INFO] [stdout] 243 | if neighbors & DIR_W != 0 { (1 << 2) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/curve_write.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::prelude::Write; [INFO] [stdout] | ----------------------- the item `Write` is already imported here [INFO] [stdout] ... [INFO] [stdout] 45 | use std::io::prelude::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/curve_write.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::prelude::Write; [INFO] [stdout] | ----------------------- the item `Write` is already imported here [INFO] [stdout] ... [INFO] [stdout] 83 | use std::io::prelude::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/curve_write.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::prelude::Write; [INFO] [stdout] | ----------------------- the item `Write` is already imported here [INFO] [stdout] ... [INFO] [stdout] 192 | use std::io::prelude::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/curve_write.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::prelude::Write; [INFO] [stdout] | ----------------------- the item `Write` is already imported here [INFO] [stdout] ... [INFO] [stdout] 256 | use std::io::prelude::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/curve_write.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::prelude::Write; [INFO] [stdout] | ----------------------- the item `Write` is already imported here [INFO] [stdout] ... [INFO] [stdout] 355 | use std::io::prelude::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `polys_from_raster_centerline` is imported redundantly [INFO] [stdout] --> src/main.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 13 | mod polys_from_raster_centerline; [INFO] [stdout] | --------------------------------- the item `polys_from_raster_centerline` is already defined here [INFO] [stdout] ... [INFO] [stdout] 96 | use polys_from_raster_centerline; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `image_skeletonize` is imported redundantly [INFO] [stdout] --> src/main.rs:541:21 [INFO] [stdout] | [INFO] [stdout] 17 | mod image_skeletonize; [INFO] [stdout] | ---------------------- the item `image_skeletonize` is already defined here [INFO] [stdout] ... [INFO] [stdout] 541 | use image_skeletonize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/intern/argparse/mod.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | pub const ARGDEF_REQUIRED: u32 = (1 << 0); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/intern/argparse/mod.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | pub const ARGDEF_VARARGS: u32 = (1 << 1); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/intern/argparse/mod.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | callback: Box Result>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&mut T, &[String]) -> Result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/intern/argparse/mod.rs:87:23 [INFO] [stdout] | [INFO] [stdout] 87 | callback: Box Result>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&mut T, &[String]) -> Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/intern/min_heap/mod.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | ((i - 1) >> 1) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/intern/min_heap/mod.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | ((i << 1) + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/intern/min_heap/mod.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | ((i << 1) + 2) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/intern/min_heap/mod.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | (a.value < b.value) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_outline.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | pub const L: u8 = (1 << 0); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_outline.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | pub const R: u8 = (1 << 1); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_outline.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | pub const D: u8 = (1 << 2); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_outline.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | pub const U: u8 = (1 << 3); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/polys_from_raster_outline.rs:149:29 [INFO] [stdout] | [INFO] [stdout] 149 | / ... ((x == xy_a[0] && x == xy_b[0]) || [INFO] [stdout] 150 | | ... (y == xy_a[1] && y == xy_b[1])) [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 | (x == xy_a[0] && x == xy_b[0]) || [INFO] [stdout] 150 | (y == xy_a[1] && y == xy_b[1]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | pub const L: u8 = (1 << 0); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | pub const R: u8 = (1 << 1); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | pub const D: u8 = (1 << 2); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | pub const U: u8 = (1 << 3); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub const LD: u8 = (1 << 4); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | pub const LU: u8 = (1 << 5); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | pub const RD: u8 = (1 << 6); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | pub const RU: u8 = (1 << 7); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | / ... ( [INFO] [stdout] 193 | | ... // axis aligned [INFO] [stdout] 194 | | ... (x == xy_a[0] && x == xy_b[0]) || [INFO] [stdout] 195 | | ... (y == xy_a[1] && y == xy_b[1]) || [INFO] [stdout] ... | [INFO] [stdout] 212 | | ... } [INFO] [stdout] 213 | | ... ) [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 | // axis aligned [INFO] [stdout] 193 | (x == xy_a[0] && x == xy_b[0]) || [INFO] [stdout] 194 | (y == xy_a[1] && y == xy_b[1]) || [INFO] [stdout] 195 | // diagonal [INFO] [stdout] 196 | { [INFO] [stdout] 197 | let x_a_delta = xy_a[0] - xy_b[0]; [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/polys_from_raster_centerline.rs:203:37 [INFO] [stdout] | [INFO] [stdout] 203 | / ... (x_a_delta != 0 && y_a_delta != 0 && [INFO] [stdout] 204 | | ... // no need to check 'b', signum accounts for that case. [INFO] [stdout] 205 | | ... [INFO] [stdout] 206 | | ... x_a_delta.abs() == y_a_delta.abs() && [INFO] [stdout] ... | [INFO] [stdout] 210 | | ... x_a_delta.signum() == x_b_delta.signum() && [INFO] [stdout] 211 | | ... y_a_delta.signum() == y_b_delta.signum()) [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 203 | x_a_delta != 0 && y_a_delta != 0 && [INFO] [stdout] 204 | // no need to check 'b', signum accounts for that case. [INFO] [stdout] 205 | [INFO] [stdout] 206 | x_a_delta.abs() == y_a_delta.abs() && [INFO] [stdout] 207 | x_b_delta.abs() == y_b_delta.abs() && [INFO] [stdout] 208 | [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:218:37 [INFO] [stdout] | [INFO] [stdout] 218 | if neighbors & DIR_S != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:219:37 [INFO] [stdout] | [INFO] [stdout] 219 | if neighbors & DIR_E != 0 { (1 << 1) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:226:37 [INFO] [stdout] | [INFO] [stdout] 226 | if neighbors & DIR_W != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:227:37 [INFO] [stdout] | [INFO] [stdout] 227 | if neighbors & DIR_S != 0 { (1 << 2) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:234:37 [INFO] [stdout] | [INFO] [stdout] 234 | if neighbors & DIR_N != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:235:37 [INFO] [stdout] | [INFO] [stdout] 235 | if neighbors & DIR_E != 0 { (1 << 1) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:242:37 [INFO] [stdout] | [INFO] [stdout] 242 | if neighbors & DIR_N != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/image_skeletonize.rs:243:37 [INFO] [stdout] | [INFO] [stdout] 243 | if neighbors & DIR_W != 0 { (1 << 2) } else { 0 } | [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/curve_write.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::prelude::Write; [INFO] [stdout] | ----------------------- the item `Write` is already imported here [INFO] [stdout] ... [INFO] [stdout] 45 | use std::io::prelude::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/curve_write.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::prelude::Write; [INFO] [stdout] | ----------------------- the item `Write` is already imported here [INFO] [stdout] ... [INFO] [stdout] 83 | use std::io::prelude::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/curve_write.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::prelude::Write; [INFO] [stdout] | ----------------------- the item `Write` is already imported here [INFO] [stdout] ... [INFO] [stdout] 192 | use std::io::prelude::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/curve_write.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::prelude::Write; [INFO] [stdout] | ----------------------- the item `Write` is already imported here [INFO] [stdout] ... [INFO] [stdout] 256 | use std::io::prelude::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Write` is imported redundantly [INFO] [stdout] --> src/curve_write.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::prelude::Write; [INFO] [stdout] | ----------------------- the item `Write` is already imported here [INFO] [stdout] ... [INFO] [stdout] 355 | use std::io::prelude::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `polys_from_raster_centerline` is imported redundantly [INFO] [stdout] --> src/main.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 13 | mod polys_from_raster_centerline; [INFO] [stdout] | --------------------------------- the item `polys_from_raster_centerline` is already defined here [INFO] [stdout] ... [INFO] [stdout] 96 | use polys_from_raster_centerline; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `image_skeletonize` is imported redundantly [INFO] [stdout] --> src/main.rs:541:21 [INFO] [stdout] | [INFO] [stdout] 17 | mod image_skeletonize; [INFO] [stdout] | ---------------------- the item `image_skeletonize` is already defined here [INFO] [stdout] ... [INFO] [stdout] 541 | use image_skeletonize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.29s [INFO] running `Command { std: "docker" "inspect" "9b53c4ee69e08f14fa2917e9fa1d9de269c00170e2bfa3f080889d16aaae5b37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b53c4ee69e08f14fa2917e9fa1d9de269c00170e2bfa3f080889d16aaae5b37", kill_on_drop: false }` [INFO] [stdout] 9b53c4ee69e08f14fa2917e9fa1d9de269c00170e2bfa3f080889d16aaae5b37