[INFO] fetching crate raster-retrace 0.1.2... [INFO] checking raster-retrace-0.1.2 against master#db1fb85cff63ad5fffe435e17128f99f9e1d970c for pr-89056 [INFO] extracting crate raster-retrace 0.1.2 into /workspace/builds/worker-31/source [INFO] validating manifest of crates.io crate raster-retrace 0.1.2 on toolchain db1fb85cff63ad5fffe435e17128f99f9e1d970c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-31/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "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-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 34eb9cc1184d1b33b5b8685a49f8b7190ac2e436776e824dd2c6ac3fd47aa0f8 [INFO] running `Command { std: "docker" "start" "-a" "34eb9cc1184d1b33b5b8685a49f8b7190ac2e436776e824dd2c6ac3fd47aa0f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "34eb9cc1184d1b33b5b8685a49f8b7190ac2e436776e824dd2c6ac3fd47aa0f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34eb9cc1184d1b33b5b8685a49f8b7190ac2e436776e824dd2c6ac3fd47aa0f8", kill_on_drop: false }` [INFO] [stdout] 34eb9cc1184d1b33b5b8685a49f8b7190ac2e436776e824dd2c6ac3fd47aa0f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b070db96ea6f4237576b575897f8b8e712474fb4556992126919c4a9482438e7 [INFO] running `Command { std: "docker" "start" "-a" "b070db96ea6f4237576b575897f8b8e712474fb4556992126919c4a9482438e7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - pub const ARGDEF_REQUIRED: u32 = (1 << 0); [INFO] [stdout] 5 + pub const ARGDEF_REQUIRED: u32 = 1 << 0; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - pub const ARGDEF_VARARGS: u32 = (1 << 1); [INFO] [stdout] 6 + pub const ARGDEF_VARARGS: u32 = 1 << 1; [INFO] [stdout] | [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] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 76 - ((i - 1) >> 1) [INFO] [stdout] 76 + (i - 1) >> 1 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 79 - ((i << 1) + 1) [INFO] [stdout] 79 + (i << 1) + 1 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - ((i << 1) + 2) [INFO] [stdout] 82 + (i << 1) + 2 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - (a.value < b.value) [INFO] [stdout] 96 + a.value < b.value [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - pub const L: u8 = (1 << 0); [INFO] [stdout] 45 + pub const L: u8 = 1 << 0; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - pub const R: u8 = (1 << 1); [INFO] [stdout] 46 + pub const R: u8 = 1 << 1; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - pub const D: u8 = (1 << 2); [INFO] [stdout] 47 + pub const D: u8 = 1 << 2; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - pub const U: u8 = (1 << 3); [INFO] [stdout] 48 + pub const U: u8 = 1 << 3; [INFO] [stdout] | [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] | ^ [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - pub const L: u8 = (1 << 0); [INFO] [stdout] 21 + pub const L: u8 = 1 << 0; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - pub const R: u8 = (1 << 1); [INFO] [stdout] 22 + pub const R: u8 = 1 << 1; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - pub const D: u8 = (1 << 2); [INFO] [stdout] 23 + pub const D: u8 = 1 << 2; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - pub const U: u8 = (1 << 3); [INFO] [stdout] 24 + pub const U: u8 = 1 << 3; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - pub const LD: u8 = (1 << 4); [INFO] [stdout] 26 + pub const LD: u8 = 1 << 4; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - pub const LU: u8 = (1 << 5); [INFO] [stdout] 27 + pub const LU: u8 = 1 << 5; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - pub const RD: u8 = (1 << 6); [INFO] [stdout] 28 + pub const RD: u8 = 1 << 6; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - pub const RU: u8 = (1 << 7); [INFO] [stdout] 29 + pub const RU: u8 = 1 << 7; [INFO] [stdout] | [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] | |__________________________^ [INFO] [stdout] ... [INFO] [stdout] 212 | ... } [INFO] [stdout] | ____________________________^ [INFO] [stdout] 213 | | ... ) [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 ~ (x == xy_a[0] && x == xy_b[0]) || [INFO] [stdout] 193 | (y == xy_a[1] && y == xy_b[1]) || [INFO] [stdout] 194 | // diagonal [INFO] [stdout] 195 | { [INFO] [stdout] 196 | let x_a_delta = xy_a[0] - xy_b[0]; [INFO] [stdout] 197 | let y_a_delta = xy_a[1] - xy_b[1]; [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] | ^ [INFO] [stdout] ... [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - if neighbors & DIR_S != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] 218 + if neighbors & DIR_S != 0 { 1 << 4 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 219 - if neighbors & DIR_E != 0 { (1 << 1) } else { 0 } | [INFO] [stdout] 219 + if neighbors & DIR_E != 0 { 1 << 1 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 226 - if neighbors & DIR_W != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] 226 + if neighbors & DIR_W != 0 { 1 << 4 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 227 - if neighbors & DIR_S != 0 { (1 << 2) } else { 0 } | [INFO] [stdout] 227 + if neighbors & DIR_S != 0 { 1 << 2 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 234 - if neighbors & DIR_N != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] 234 + if neighbors & DIR_N != 0 { 1 << 4 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 235 - if neighbors & DIR_E != 0 { (1 << 1) } else { 0 } | [INFO] [stdout] 235 + if neighbors & DIR_E != 0 { 1 << 1 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 242 - if neighbors & DIR_N != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] 242 + if neighbors & DIR_N != 0 { 1 << 4 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 243 - if neighbors & DIR_W != 0 { (1 << 2) } else { 0 } | [INFO] [stdout] 243 + if neighbors & DIR_W != 0 { 1 << 2 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - pub const ARGDEF_REQUIRED: u32 = (1 << 0); [INFO] [stdout] 5 + pub const ARGDEF_REQUIRED: u32 = 1 << 0; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - pub const ARGDEF_VARARGS: u32 = (1 << 1); [INFO] [stdout] 6 + pub const ARGDEF_VARARGS: u32 = 1 << 1; [INFO] [stdout] | [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] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 76 - ((i - 1) >> 1) [INFO] [stdout] 76 + (i - 1) >> 1 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 79 - ((i << 1) + 1) [INFO] [stdout] 79 + (i << 1) + 1 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - ((i << 1) + 2) [INFO] [stdout] 82 + (i << 1) + 2 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - (a.value < b.value) [INFO] [stdout] 96 + a.value < b.value [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - pub const L: u8 = (1 << 0); [INFO] [stdout] 45 + pub const L: u8 = 1 << 0; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - pub const R: u8 = (1 << 1); [INFO] [stdout] 46 + pub const R: u8 = 1 << 1; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - pub const D: u8 = (1 << 2); [INFO] [stdout] 47 + pub const D: u8 = 1 << 2; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - pub const U: u8 = (1 << 3); [INFO] [stdout] 48 + pub const U: u8 = 1 << 3; [INFO] [stdout] | [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] | ^ [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - pub const L: u8 = (1 << 0); [INFO] [stdout] 21 + pub const L: u8 = 1 << 0; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - pub const R: u8 = (1 << 1); [INFO] [stdout] 22 + pub const R: u8 = 1 << 1; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - pub const D: u8 = (1 << 2); [INFO] [stdout] 23 + pub const D: u8 = 1 << 2; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - pub const U: u8 = (1 << 3); [INFO] [stdout] 24 + pub const U: u8 = 1 << 3; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - pub const LD: u8 = (1 << 4); [INFO] [stdout] 26 + pub const LD: u8 = 1 << 4; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - pub const LU: u8 = (1 << 5); [INFO] [stdout] 27 + pub const LU: u8 = 1 << 5; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - pub const RD: u8 = (1 << 6); [INFO] [stdout] 28 + pub const RD: u8 = 1 << 6; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - pub const RU: u8 = (1 << 7); [INFO] [stdout] 29 + pub const RU: u8 = 1 << 7; [INFO] [stdout] | [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] | |__________________________^ [INFO] [stdout] ... [INFO] [stdout] 212 | ... } [INFO] [stdout] | ____________________________^ [INFO] [stdout] 213 | | ... ) [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 ~ (x == xy_a[0] && x == xy_b[0]) || [INFO] [stdout] 193 | (y == xy_a[1] && y == xy_b[1]) || [INFO] [stdout] 194 | // diagonal [INFO] [stdout] 195 | { [INFO] [stdout] 196 | let x_a_delta = xy_a[0] - xy_b[0]; [INFO] [stdout] 197 | let y_a_delta = xy_a[1] - xy_b[1]; [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] | ^ [INFO] [stdout] ... [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - if neighbors & DIR_S != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] 218 + if neighbors & DIR_S != 0 { 1 << 4 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 219 - if neighbors & DIR_E != 0 { (1 << 1) } else { 0 } | [INFO] [stdout] 219 + if neighbors & DIR_E != 0 { 1 << 1 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 226 - if neighbors & DIR_W != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] 226 + if neighbors & DIR_W != 0 { 1 << 4 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 227 - if neighbors & DIR_S != 0 { (1 << 2) } else { 0 } | [INFO] [stdout] 227 + if neighbors & DIR_S != 0 { 1 << 2 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 234 - if neighbors & DIR_N != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] 234 + if neighbors & DIR_N != 0 { 1 << 4 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 235 - if neighbors & DIR_E != 0 { (1 << 1) } else { 0 } | [INFO] [stdout] 235 + if neighbors & DIR_E != 0 { 1 << 1 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 242 - if neighbors & DIR_N != 0 { (1 << 4) } else { 0 } | [INFO] [stdout] 242 + if neighbors & DIR_N != 0 { 1 << 4 } else { 0 } | [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 243 - if neighbors & DIR_W != 0 { (1 << 2) } else { 0 } | [INFO] [stdout] 243 + if neighbors & DIR_W != 0 { 1 << 2 } else { 0 } | [INFO] [stdout] | [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 1.25s [INFO] running `Command { std: "docker" "inspect" "b070db96ea6f4237576b575897f8b8e712474fb4556992126919c4a9482438e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b070db96ea6f4237576b575897f8b8e712474fb4556992126919c4a9482438e7", kill_on_drop: false }` [INFO] [stdout] b070db96ea6f4237576b575897f8b8e712474fb4556992126919c4a9482438e7