[INFO] fetching crate i_overlay 4.4.1... [INFO] linting i_overlay-4.4.1 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate i_overlay 4.4.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate i_overlay 4.4.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate i_overlay 4.4.1 [INFO] tweaked toml for crates.io crate i_overlay 4.4.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate i_overlay 4.4.1 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate i_overlay 4.4.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded i_shape v1.16.0 [INFO] [stderr] Downloaded i_float v1.16.0 [INFO] [stderr] Downloaded i_tree v0.18.0 [INFO] [stderr] Downloaded glam v0.31.0 [INFO] [stderr] Downloaded i_key_sort v0.10.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 46b36259f9b64dd270223731c380f5bd4f8f08bc28034dbc830507a017681640 [INFO] running `Command { std: "docker" "start" "-a" "46b36259f9b64dd270223731c380f5bd4f8f08bc28034dbc830507a017681640", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "46b36259f9b64dd270223731c380f5bd4f8f08bc28034dbc830507a017681640", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46b36259f9b64dd270223731c380f5bd4f8f08bc28034dbc830507a017681640", kill_on_drop: false }` [INFO] [stdout] 46b36259f9b64dd270223731c380f5bd4f8f08bc28034dbc830507a017681640 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 100595b42d44a1edc1a5675582a24a03148b03083263c34725b616e3abe56f62 [INFO] running `Command { std: "docker" "start" "-a" "100595b42d44a1edc1a5675582a24a03148b03083263c34725b616e3abe56f62", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling unicode-ident v1.0.23 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling zmij v1.0.20 [INFO] [stderr] Checking i_key_sort v0.10.1 [INFO] [stderr] Checking i_tree v0.18.0 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Checking getrandom v0.4.1 [INFO] [stderr] Checking rand v0.10.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking i_float v1.16.0 [INFO] [stderr] Checking i_shape v1.16.0 [INFO] [stderr] Checking i_overlay v4.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:691:25 [INFO] [stdout] | [INFO] [stdout] 691 | [410_000.0, 5847_000.0], [INFO] [stdout] | ^^^^^^^^^^ help: consider: `5_847_000.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] = note: `#[warn(clippy::inconsistent_digit_grouping)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:692:25 [INFO] [stdout] | [INFO] [stdout] 692 | [413_000.0, 5847_000.0], [INFO] [stdout] | ^^^^^^^^^^ help: consider: `5_847_000.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:693:25 [INFO] [stdout] | [INFO] [stdout] 693 | [413_000.0, 5850_000.0], [INFO] [stdout] | ^^^^^^^^^^ help: consider: `5_850_000.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:694:25 [INFO] [stdout] | [INFO] [stdout] 694 | [410_000.0, 5850_000.0], [INFO] [stdout] | ^^^^^^^^^^ help: consider: `5_850_000.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:698:34 [INFO] [stdout] | [INFO] [stdout] 698 | [411_294.2500422625, 5848_072.3189725485], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: consider: `5_848_072.318_972_548_5` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:699:34 [INFO] [stdout] | [INFO] [stdout] 699 | [411_373.9180110125, 5848_124.016970595], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_848_124.016_970_595` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:700:35 [INFO] [stdout] | [INFO] [stdout] 700 | [411_377.22904616874, 5848_118.990969619], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_848_118.990_969_619` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:701:34 [INFO] [stdout] | [INFO] [stdout] 701 | [411_393.0859797625, 5848_020.979983291], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_848_020.979_983_291` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:702:34 [INFO] [stdout] | [INFO] [stdout] 702 | [411_394.7030451922, 5848_005.639040908], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_848_005.639_040_908` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:703:34 [INFO] [stdout] | [INFO] [stdout] 703 | [411_397.4359553484, 5848_003.376955947], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_848_003.376_955_947` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:704:34 [INFO] [stdout] | [INFO] [stdout] 704 | [411_431.1029475359, 5847_937.537966689], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_847_937.537_966_689` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:705:34 [INFO] [stdout] | [INFO] [stdout] 705 | [411_431.2639582781, 5847_933.187991103], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_847_933.187_991_103` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:706:34 [INFO] [stdout] | [INFO] [stdout] 706 | [411_314.8390315203, 5848_005.308962783], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_848_005.308_962_783` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:707:34 [INFO] [stdout] | [INFO] [stdout] 707 | [411_314.5590022234, 5848_009.708010634], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_848_009.708_010_634` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:708:34 [INFO] [stdout] | [INFO] [stdout] 708 | [411_309.3459895281, 5848_009.447024306], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_848_009.447_024_306` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/mesh/outline/offset.rs:709:34 [INFO] [stdout] | [INFO] [stdout] 709 | [411_305.3719905047, 5848_010.244997939], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider: `5_848_010.244_997_939` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/split/cross_solver.rs:383:22 [INFO] [stdout] | [INFO] [stdout] 383 | let s: i32 = 1024_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ help: consider: `1_024_000_000` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/split/cross_solver.rs:402:22 [INFO] [stdout] | [INFO] [stdout] 402 | let s: i32 = 1024_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ help: consider: `1_024_000_000` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/split/cross_solver.rs:421:22 [INFO] [stdout] | [INFO] [stdout] 421 | let s: i32 = 1024_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ help: consider: `1_024_000_000` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/split/cross_solver.rs:441:22 [INFO] [stdout] | [INFO] [stdout] 441 | let s: i32 = 1024_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ help: consider: `1_024_000_000` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/split/cross_solver.rs:460:22 [INFO] [stdout] | [INFO] [stdout] 460 | let s: i32 = 1024_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ help: consider: `1_024_000_000` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/split/cross_solver.rs:479:22 [INFO] [stdout] | [INFO] [stdout] 479 | let s: i32 = 1024_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ help: consider: `1_024_000_000` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/split/grid_layout.rs:1108:21 [INFO] [stdout] | [INFO] [stdout] 1108 | min_x: -1000_000, [INFO] [stdout] | ^^^^^^^^ help: consider: `1_000_000` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> src/split/grid_layout.rs:1109:20 [INFO] [stdout] | [INFO] [stdout] 1109 | max_x: 1000_000, [INFO] [stdout] | ^^^^^^^^ help: consider: `1_000_000` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/core/divide.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | anchors.sort_by(|p0, p1| p0.id.cmp(&p1.id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `#[warn(clippy::unnecessary_sort_by)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 71 - anchors.sort_by(|p0, p1| p0.id.cmp(&p1.id)); [INFO] [stdout] 71 + anchors.sort_by_key(|p0| p0.id); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/core/extract.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 173 - anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] 173 + anchors.sort_by_key(|s0| s0.v_segment.a); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/core/extract_ogc.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 171 - anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] 171 + anchors.sort_by_key(|s0| s0.v_segment.a); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/mesh/extract.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 133 - anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] 133 + anchors.sort_by_key(|s0| s0.v_segment.a); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/vector/extract.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 108 - anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] 108 + anchors.sort_by_key(|s0| s0.v_segment.a); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_unstable_by_key` [INFO] [stdout] --> src/split/solver_fragment.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | fragments.sort_unstable_by(|a, b| a.rect.min_y.cmp(&b.rect.min_y)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 151 - fragments.sort_unstable_by(|a, b| a.rect.min_y.cmp(&b.rect.min_y)); [INFO] [stdout] 151 + fragments.sort_unstable_by_key(|a| a.rect.min_y); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_unstable_by_key` [INFO] [stdout] --> src/split/solver_fragment.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | points.sort_unstable_by(|p0, p1| p0.y.cmp(&p1.y)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 196 - points.sort_unstable_by(|p0, p1| p0.y.cmp(&p1.y)); [INFO] [stdout] 196 + points.sort_unstable_by_key(|p0| p0.y); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/split/solver_fragment.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | vertical_segments.sort_by(|s0, s1| s0.y_range.min.cmp(&s1.y_range.min)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 197 - vertical_segments.sort_by(|s0, s1| s0.y_range.min.cmp(&s1.y_range.min)); [INFO] [stdout] 197 + vertical_segments.sort_by_key(|s0| s0.y_range.min); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> tests/dynamic_tests.rs:157:41 [INFO] [stdout] | [INFO] [stdout] 157 | let subj_paths = random_polygon(1000_000.0, 0.0, n); [INFO] [stdout] | ^^^^^^^^^^ help: consider: `1_000_000.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] = note: `#[warn(clippy::inconsistent_digit_grouping)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: digits grouped inconsistently by underscores [INFO] [stdout] --> tests/dynamic_tests.rs:289:21 [INFO] [stdout] | [INFO] [stdout] 289 | for _ in 0..1000_000 { [INFO] [stdout] | ^^^^^^^^ help: consider: `1_000_000` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> tests/util.rs:64:69 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn is_group_of_shapes_one_of(group: &Vec, groups: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 64 - pub fn is_group_of_shapes_one_of(group: &Vec, groups: &Vec>) -> bool { [INFO] [stdout] 64 + pub fn is_group_of_shapes_one_of(group: &Vec, groups: &[Vec]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> tests/util.rs:75:54 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn is_paths_one_of(paths: &IntPaths, groups: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 75 - pub fn is_paths_one_of(paths: &IntPaths, groups: &Vec) -> bool { [INFO] [stdout] 75 + pub fn is_paths_one_of(paths: &IntPaths, groups: &[IntPaths]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/direction_tests.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 13 | | IntPoint::new(-5, 0), [INFO] [stdout] 14 | | IntPoint::new(0, -5), [INFO] [stdout] 15 | | IntPoint::new(5, 0), [INFO] [stdout] 16 | | IntPoint::new(0, 5), [INFO] [stdout] 17 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 12 ~ let path = [IntPoint::new(-5, 0), [INFO] [stdout] 13 + IntPoint::new(0, -5), [INFO] [stdout] 14 + IntPoint::new(5, 0), [INFO] [stdout] 15 ~ IntPoint::new(0, 5)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/direction_tests.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 45 | | vec![ [INFO] [stdout] 46 | | IntPoint::new(-10, 0), [INFO] [stdout] 47 | | IntPoint::new(0, -10), [INFO] [stdout] ... | [INFO] [stdout] 56 | | ], [INFO] [stdout] 57 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 44 ~ let path = [vec![ [INFO] [stdout] 45 + IntPoint::new(-10, 0), [INFO] [stdout] 46 + IntPoint::new(0, -10), [INFO] [stdout] 47 + IntPoint::new(10, 0), [INFO] [stdout] 48 + IntPoint::new(0, 10), [INFO] [stdout] 49 + ], [INFO] [stdout] 50 + vec![ [INFO] [stdout] 51 + IntPoint::new(-5, 0), [INFO] [stdout] 52 + IntPoint::new(0, 5), [INFO] [stdout] 53 + IntPoint::new(5, 0), [INFO] [stdout] 54 + IntPoint::new(0, -5), [INFO] [stdout] 55 ~ ]]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> tests/simplify_tests.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | solver_0.precision = Precision::ABSOLUTE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `i_overlay::core::solver::Solver { precision: Precision::ABSOLUTE, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> tests/simplify_tests.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let mut solver_0 = Solver::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] = note: `#[warn(clippy::field_reassign_with_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> tests/simplify_tests.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | solver_1.precision = Precision::MEDIUM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `i_overlay::core::solver::Solver { precision: Precision::MEDIUM, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> tests/simplify_tests.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let mut solver_1 = Solver::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> tests/util.rs:64:69 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn is_group_of_shapes_one_of(group: &Vec, groups: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 64 - pub fn is_group_of_shapes_one_of(group: &Vec, groups: &Vec>) -> bool { [INFO] [stdout] 64 + pub fn is_group_of_shapes_one_of(group: &Vec, groups: &[Vec]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: float has excessive precision [INFO] [stdout] --> tests/dynamic_tests.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | let a = -9.9999999999999995E-7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision [INFO] [stdout] = note: `#[warn(clippy::excessive_precision)]` on by default [INFO] [stdout] help: consider changing the type or truncating it to [INFO] [stdout] | [INFO] [stdout] 120 - let a = -9.9999999999999995E-7; [INFO] [stdout] 120 + let a = -1E-6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> tests/util.rs:75:54 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn is_paths_one_of(paths: &IntPaths, groups: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 75 - pub fn is_paths_one_of(paths: &IntPaths, groups: &Vec) -> bool { [INFO] [stdout] 75 + pub fn is_paths_one_of(paths: &IntPaths, groups: &[IntPaths]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/simplify_tests.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | let paths = vec![ [INFO] [stdout] | _____________________^ [INFO] [stdout] 137 | | vec![IntPoint::new(-5, 0), IntPoint::new(0, 0), IntPoint::new(0, 5)], [INFO] [stdout] 138 | | vec![IntPoint::new(-3, 2), IntPoint::new(-1, 2), IntPoint::new(-1, 1)], [INFO] [stdout] 139 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 136 ~ let paths = [vec![IntPoint::new(-5, 0), IntPoint::new(0, 0), IntPoint::new(0, 5)], [INFO] [stdout] 137 ~ vec![IntPoint::new(-3, 2), IntPoint::new(-1, 2), IntPoint::new(-1, 1)]]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:165:21 [INFO] [stdout] | [INFO] [stdout] 165 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:183:33 [INFO] [stdout] | [INFO] [stdout] 183 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:208:33 [INFO] [stdout] | [INFO] [stdout] 208 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: float has excessive precision [INFO] [stdout] --> tests/dynamic_tests.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | let a = 0.44000000000000028; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision [INFO] [stdout] help: consider changing the type or truncating it to [INFO] [stdout] | [INFO] [stdout] 221 - let a = 0.44000000000000028; [INFO] [stdout] 221 + let a = 0.440_000_000_000_000_3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:230:21 [INFO] [stdout] | [INFO] [stdout] 230 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:248:25 [INFO] [stdout] | [INFO] [stdout] 248 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:263:25 [INFO] [stdout] | [INFO] [stdout] 263 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:306:25 [INFO] [stdout] | [INFO] [stdout] 306 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> tests/dynamic_tests.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | assert!(result.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!result.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `points` [INFO] [stdout] --> tests/float_overlay_tests.rs:260:26 [INFO] [stdout] | [INFO] [stdout] 260 | for i in 0..n { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 260 - for i in 0..n { [INFO] [stdout] 260 + for in points.iter_mut().take(n) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/float_overlay_tests.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 279 | assert_eq!(shapes.is_empty(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 279 - assert_eq!(shapes.is_empty(), true); [INFO] [stdout] 279 + assert!(shapes.is_empty()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to one [INFO] [stdout] --> tests/slice_tests.rs:414:25 [INFO] [stdout] | [INFO] [stdout] 414 | assert!(shape.len() >= 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!shape.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to one [INFO] [stdout] --> tests/slice_tests.rs:431:25 [INFO] [stdout] | [INFO] [stdout] 431 | assert!(shape.len() >= 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!shape.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to one [INFO] [stdout] --> tests/slice_tests.rs:448:25 [INFO] [stdout] | [INFO] [stdout] 448 | assert!(shape.len() >= 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!shape.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to one [INFO] [stdout] --> tests/slice_tests.rs:465:25 [INFO] [stdout] | [INFO] [stdout] 465 | assert!(shape.len() >= 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!shape.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to one [INFO] [stdout] --> tests/slice_tests.rs:482:25 [INFO] [stdout] | [INFO] [stdout] 482 | assert!(shape.len() >= 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!shape.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: expression with side effects as the initial value in a zero-sized array initializer [INFO] [stdout] --> tests/float_overlay_tests.rs:581:9 [INFO] [stdout] | [INFO] [stdout] 581 | let contour = [FPoint::new(0.0, 0.0); 0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zero_repeat_side_effects [INFO] [stdout] = note: `#[warn(clippy::zero_repeat_side_effects)]` on by default [INFO] [stdout] help: consider performing the side effect separately [INFO] [stdout] | [INFO] [stdout] 581 ~ FPoint::new(0.0, 0.0); [INFO] [stdout] 582 + let contour: [tests::FPoint; 0] = []; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/slice_tests.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 67 | | IntPoint::new(-10, -10), [INFO] [stdout] 68 | | IntPoint::new(-10, 10), [INFO] [stdout] 69 | | IntPoint::new(10, 10), [INFO] [stdout] 70 | | IntPoint::new(10, -10), [INFO] [stdout] 71 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 66 ~ let path = [IntPoint::new(-10, -10), [INFO] [stdout] 67 + IntPoint::new(-10, 10), [INFO] [stdout] 68 + IntPoint::new(10, 10), [INFO] [stdout] 69 ~ IntPoint::new(10, -10)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/slice_tests.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 83 | | IntPoint::new(-10, -10), [INFO] [stdout] 84 | | IntPoint::new(-10, 10), [INFO] [stdout] 85 | | IntPoint::new(10, 10), [INFO] [stdout] 86 | | IntPoint::new(10, -10), [INFO] [stdout] 87 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 82 ~ let path = [IntPoint::new(-10, -10), [INFO] [stdout] 83 + IntPoint::new(-10, 10), [INFO] [stdout] 84 + IntPoint::new(10, 10), [INFO] [stdout] 85 ~ IntPoint::new(10, -10)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/slice_tests.rs:105:20 [INFO] [stdout] | [INFO] [stdout] 105 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 106 | | IntPoint::new(-10, -10), [INFO] [stdout] 107 | | IntPoint::new(-10, 10), [INFO] [stdout] 108 | | IntPoint::new(10, 10), [INFO] [stdout] 109 | | IntPoint::new(10, -10), [INFO] [stdout] 110 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 105 ~ let path = [IntPoint::new(-10, -10), [INFO] [stdout] 106 + IntPoint::new(-10, 10), [INFO] [stdout] 107 + IntPoint::new(10, 10), [INFO] [stdout] 108 ~ IntPoint::new(10, -10)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/slice_tests.rs:125:20 [INFO] [stdout] | [INFO] [stdout] 125 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 126 | | IntPoint::new(10, -10), [INFO] [stdout] 127 | | IntPoint::new(10, 10), [INFO] [stdout] 128 | | IntPoint::new(-10, 10), [INFO] [stdout] 129 | | IntPoint::new(-10, -10), [INFO] [stdout] 130 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 125 ~ let path = [IntPoint::new(10, -10), [INFO] [stdout] 126 + IntPoint::new(10, 10), [INFO] [stdout] 127 + IntPoint::new(-10, 10), [INFO] [stdout] 128 ~ IntPoint::new(-10, -10)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/slice_tests.rs:149:20 [INFO] [stdout] | [INFO] [stdout] 149 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 150 | | IntPoint::new(15, -15), [INFO] [stdout] 151 | | IntPoint::new(15, 15), [INFO] [stdout] 152 | | IntPoint::new(-15, 15), [INFO] [stdout] 153 | | IntPoint::new(-15, -15), [INFO] [stdout] 154 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 149 ~ let path = [IntPoint::new(15, -15), [INFO] [stdout] 150 + IntPoint::new(15, 15), [INFO] [stdout] 151 + IntPoint::new(-15, 15), [INFO] [stdout] 152 ~ IntPoint::new(-15, -15)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/slice_tests.rs:182:20 [INFO] [stdout] | [INFO] [stdout] 182 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 183 | | IntPoint::new(-10, -10), [INFO] [stdout] 184 | | IntPoint::new(-10, 10), [INFO] [stdout] 185 | | IntPoint::new(10, 10), [INFO] [stdout] 186 | | IntPoint::new(10, -10), [INFO] [stdout] 187 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 182 ~ let path = [IntPoint::new(-10, -10), [INFO] [stdout] 183 + IntPoint::new(-10, 10), [INFO] [stdout] 184 + IntPoint::new(10, 10), [INFO] [stdout] 185 ~ IntPoint::new(10, -10)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/slice_tests.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 205 | | IntPoint::new(-10, -10), [INFO] [stdout] 206 | | IntPoint::new(-10, 10), [INFO] [stdout] 207 | | IntPoint::new(10, 10), [INFO] [stdout] 208 | | IntPoint::new(10, -10), [INFO] [stdout] 209 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 204 ~ let path = [IntPoint::new(-10, -10), [INFO] [stdout] 205 + IntPoint::new(-10, 10), [INFO] [stdout] 206 + IntPoint::new(10, 10), [INFO] [stdout] 207 ~ IntPoint::new(10, -10)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/slice_tests.rs:226:20 [INFO] [stdout] | [INFO] [stdout] 226 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 227 | | IntPoint::new(-4, -4), [INFO] [stdout] 228 | | IntPoint::new(-4, 4), [INFO] [stdout] 229 | | IntPoint::new(4, 4), [INFO] [stdout] 230 | | IntPoint::new(4, -4), [INFO] [stdout] 231 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 226 ~ let path = [IntPoint::new(-4, -4), [INFO] [stdout] 227 + IntPoint::new(-4, 4), [INFO] [stdout] 228 + IntPoint::new(4, 4), [INFO] [stdout] 229 ~ IntPoint::new(4, -4)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/slice_tests.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 250 | | IntPoint::new(-2, -2), [INFO] [stdout] 251 | | IntPoint::new(-2, 2), [INFO] [stdout] 252 | | IntPoint::new(2, 2), [INFO] [stdout] 253 | | IntPoint::new(2, -2), [INFO] [stdout] 254 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 249 ~ let path = [IntPoint::new(-2, -2), [INFO] [stdout] 250 + IntPoint::new(-2, 2), [INFO] [stdout] 251 + IntPoint::new(2, 2), [INFO] [stdout] 252 ~ IntPoint::new(2, -2)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/float_overlay_tests.rs:271:20 [INFO] [stdout] | [INFO] [stdout] 271 | let path = vec![FPoint::new(-10.0, -10.0), FPoint::new(-10.0, 10.0)]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[FPoint::new(-10.0, -10.0), FPoint::new(-10.0, 10.0)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> tests/util.rs:64:69 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn is_group_of_shapes_one_of(group: &Vec, groups: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 64 - pub fn is_group_of_shapes_one_of(group: &Vec, groups: &Vec>) -> bool { [INFO] [stdout] 64 + pub fn is_group_of_shapes_one_of(group: &Vec, groups: &[Vec]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> tests/util.rs:75:54 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn is_paths_one_of(paths: &IntPaths, groups: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 75 - pub fn is_paths_one_of(paths: &IntPaths, groups: &Vec) -> bool { [INFO] [stdout] 75 + pub fn is_paths_one_of(paths: &IntPaths, groups: &[IntPaths]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_tests.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | assert_eq!(true, overlay::is_group_of_shapes_one_of(&slice, &test.slice)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 18 - assert_eq!(true, overlay::is_group_of_shapes_one_of(&slice, &test.slice)); [INFO] [stdout] 18 + assert!(overlay::is_group_of_shapes_one_of(&slice, &test.slice)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_tests.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(true, overlay::is_paths_one_of(&clip_direct, &test.clip_direct)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 28 - assert_eq!(true, overlay::is_paths_one_of(&clip_direct, &test.clip_direct)); [INFO] [stdout] 28 + assert!(overlay::is_paths_one_of(&clip_direct, &test.clip_direct)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_tests.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | assert_eq!(true, overlay::is_paths_one_of(&clip_invert, &test.clip_invert)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 38 - assert_eq!(true, overlay::is_paths_one_of(&clip_invert, &test.clip_invert)); [INFO] [stdout] 38 + assert!(overlay::is_paths_one_of(&clip_invert, &test.clip_invert)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> tests/util.rs:64:69 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn is_group_of_shapes_one_of(group: &Vec, groups: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 64 - pub fn is_group_of_shapes_one_of(group: &Vec, groups: &Vec>) -> bool { [INFO] [stdout] 64 + pub fn is_group_of_shapes_one_of(group: &Vec, groups: &[Vec]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> tests/util.rs:75:54 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn is_paths_one_of(paths: &IntPaths, groups: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 75 - pub fn is_paths_one_of(paths: &IntPaths, groups: &Vec) -> bool { [INFO] [stdout] 75 + pub fn is_paths_one_of(paths: &IntPaths, groups: &[IntPaths]) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | assert_eq!(true, overlay::is_group_of_shapes_one_of(&clip_0, &test.clip)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 72 - assert_eq!(true, overlay::is_group_of_shapes_one_of(&clip_0, &test.clip)); [INFO] [stdout] 72 + assert!(overlay::is_group_of_shapes_one_of(&clip_0, &test.clip)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | / assert_eq!( [INFO] [stdout] 74 | | true, [INFO] [stdout] 75 | | overlay::is_group_of_shapes_one_of(&subject_0, &test.subject) [INFO] [stdout] 76 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 73 ~ assert!( [INFO] [stdout] 74 ~ overlay::is_group_of_shapes_one_of(&subject_0, &test.subject) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | / assert_eq!( [INFO] [stdout] 78 | | true, [INFO] [stdout] 79 | | overlay::is_group_of_shapes_one_of(&difference_0, &test.difference) [INFO] [stdout] 80 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 77 ~ assert!( [INFO] [stdout] 78 ~ overlay::is_group_of_shapes_one_of(&difference_0, &test.difference) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | / assert_eq!( [INFO] [stdout] 82 | | true, [INFO] [stdout] 83 | | overlay::is_group_of_shapes_one_of(&inverse_difference_0, &test.inverse_difference) [INFO] [stdout] 84 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 81 ~ assert!( [INFO] [stdout] 82 ~ overlay::is_group_of_shapes_one_of(&inverse_difference_0, &test.inverse_difference) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | / assert_eq!( [INFO] [stdout] 86 | | true, [INFO] [stdout] 87 | | overlay::is_group_of_shapes_one_of(&intersect_0, &test.intersect) [INFO] [stdout] 88 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 85 ~ assert!( [INFO] [stdout] 86 ~ overlay::is_group_of_shapes_one_of(&intersect_0, &test.intersect) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | assert_eq!(true, overlay::is_group_of_shapes_one_of(&union_0, &test.union)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 89 - assert_eq!(true, overlay::is_group_of_shapes_one_of(&union_0, &test.union)); [INFO] [stdout] 89 + assert!(overlay::is_group_of_shapes_one_of(&union_0, &test.union)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | assert_eq!(true, overlay::is_group_of_shapes_one_of(&xor_0, &test.xor)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 90 - assert_eq!(true, overlay::is_group_of_shapes_one_of(&xor_0, &test.xor)); [INFO] [stdout] 90 + assert!(overlay::is_group_of_shapes_one_of(&xor_0, &test.xor)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(true, overlay::is_group_of_shapes_one_of(&result, &test.subject)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 105 - assert_eq!(true, overlay::is_group_of_shapes_one_of(&result, &test.subject)) [INFO] [stdout] 105 + assert!(overlay::is_group_of_shapes_one_of(&result, &test.subject)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | OverlayRule::Clip => assert_eq!(true, overlay::is_group_of_shapes_one_of(&result, &test.clip)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 107 - OverlayRule::Clip => assert_eq!(true, overlay::is_group_of_shapes_one_of(&result, &test.clip)), [INFO] [stdout] 107 + OverlayRule::Clip => assert!(overlay::is_group_of_shapes_one_of(&result, &test.clip)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | assert_eq!(true, overlay::is_group_of_shapes_one_of(&result, &test.intersect)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 109 - assert_eq!(true, overlay::is_group_of_shapes_one_of(&result, &test.intersect)) [INFO] [stdout] 109 + assert!(overlay::is_group_of_shapes_one_of(&result, &test.intersect)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 111 | OverlayRule::Union => assert_eq!(true, overlay::is_group_of_shapes_one_of(&result, &test.union)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 111 - OverlayRule::Union => assert_eq!(true, overlay::is_group_of_shapes_one_of(&result, &test.union)), [INFO] [stdout] 111 + OverlayRule::Union => assert!(overlay::is_group_of_shapes_one_of(&result, &test.union)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:112:40 [INFO] [stdout] | [INFO] [stdout] 112 | OverlayRule::Difference => assert_eq!( [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 113 | | true, [INFO] [stdout] 114 | | overlay::is_group_of_shapes_one_of(&result, &test.difference) [INFO] [stdout] 115 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 112 ~ OverlayRule::Difference => assert!( [INFO] [stdout] 113 ~ overlay::is_group_of_shapes_one_of(&result, &test.difference) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:116:47 [INFO] [stdout] | [INFO] [stdout] 116 | OverlayRule::InverseDifference => assert_eq!( [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 117 | | true, [INFO] [stdout] 118 | | overlay::is_group_of_shapes_one_of(&result, &test.inverse_difference) [INFO] [stdout] 119 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 116 ~ OverlayRule::InverseDifference => assert!( [INFO] [stdout] 117 ~ overlay::is_group_of_shapes_one_of(&result, &test.inverse_difference) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/overlay_tests.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | assert_eq!(true, overlay::is_group_of_shapes_one_of(&result, &test.xor)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 121 - assert_eq!(true, overlay::is_group_of_shapes_one_of(&result, &test.xor)) [INFO] [stdout] 121 + assert!(overlay::is_group_of_shapes_one_of(&result, &test.xor)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the variable `y` is used as a loop counter [INFO] [stdout] --> tests/ocg_tests.rs:550:9 [INFO] [stdout] | [INFO] [stdout] 550 | for i in 0..2 * m - 1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `for (y, i) in (y0..).zip((0..2 * m - 1))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop [INFO] [stdout] = note: `#[warn(clippy::explicit_counter_loop)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/core/divide.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | anchors.sort_by(|p0, p1| p0.id.cmp(&p1.id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `#[warn(clippy::unnecessary_sort_by)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 71 - anchors.sort_by(|p0, p1| p0.id.cmp(&p1.id)); [INFO] [stdout] 71 + anchors.sort_by_key(|p0| p0.id); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/core/extract.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 173 - anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] 173 + anchors.sort_by_key(|s0| s0.v_segment.a); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/core/extract_ogc.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 171 - anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] 171 + anchors.sort_by_key(|s0| s0.v_segment.a); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core/overlay.rs:818:50 [INFO] [stdout] | [INFO] [stdout] 818 | let mut overlay = Overlay::with_contours(&subj, &[]); [INFO] [stdout] | ^^^^^ help: change this to: `subj` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: items after a test module [INFO] [stdout] --> src/float/clip.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | / impl FloatClip for R1 [INFO] [stdout] 150 | | where [INFO] [stdout] 151 | | R0: ShapeResource, [INFO] [stdout] 152 | | R1: ShapeResource, [INFO] [stdout] 153 | | P: FloatPointCompatible, [INFO] [stdout] 154 | | T: FloatNumber, [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_test_module [INFO] [stdout] = note: `#[warn(clippy::items_after_test_module)]` on by default [INFO] [stdout] = help: move the items to before the test module was defined [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/float/scale.rs:425:17 [INFO] [stdout] | [INFO] [stdout] 425 | assert!(!result.is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `result.is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/mesh/extract.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 133 - anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] 133 + anchors.sort_by_key(|s0| s0.v_segment.a); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/vector/extract.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 108 - anchors.sort_by(|s0, s1| s0.v_segment.a.cmp(&s1.v_segment.a)); [INFO] [stdout] 108 + anchors.sort_by_key(|s0| s0.v_segment.a); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_unstable_by_key` [INFO] [stdout] --> src/split/solver_fragment.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | fragments.sort_unstable_by(|a, b| a.rect.min_y.cmp(&b.rect.min_y)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 151 - fragments.sort_unstable_by(|a, b| a.rect.min_y.cmp(&b.rect.min_y)); [INFO] [stdout] 151 + fragments.sort_unstable_by_key(|a| a.rect.min_y); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_unstable_by_key` [INFO] [stdout] --> src/split/solver_fragment.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | points.sort_unstable_by(|p0, p1| p0.y.cmp(&p1.y)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 196 - points.sort_unstable_by(|p0, p1| p0.y.cmp(&p1.y)); [INFO] [stdout] 196 + points.sort_unstable_by_key(|p0| p0.y); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/split/solver_fragment.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | vertical_segments.sort_by(|s0, s1| s0.y_range.min.cmp(&s1.y_range.min)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 197 - vertical_segments.sort_by(|s0, s1| s0.y_range.min.cmp(&s1.y_range.min)); [INFO] [stdout] 197 + vertical_segments.sort_by_key(|s0| s0.y_range.min); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/clip.rs:285:20 [INFO] [stdout] | [INFO] [stdout] 285 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 286 | | IntPoint::new(-10, -10), [INFO] [stdout] 287 | | IntPoint::new(-10, 10), [INFO] [stdout] 288 | | IntPoint::new(10, 10), [INFO] [stdout] 289 | | IntPoint::new(10, -10), [INFO] [stdout] 290 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 285 ~ let path = [IntPoint::new(-10, -10), [INFO] [stdout] 286 + IntPoint::new(-10, 10), [INFO] [stdout] 287 + IntPoint::new(10, 10), [INFO] [stdout] 288 ~ IntPoint::new(10, -10)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/clip.rs:316:20 [INFO] [stdout] | [INFO] [stdout] 316 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 317 | | IntPoint::new(-10, -10), [INFO] [stdout] 318 | | IntPoint::new(-10, 10), [INFO] [stdout] 319 | | IntPoint::new(10, 10), [INFO] [stdout] 320 | | IntPoint::new(10, -10), [INFO] [stdout] 321 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 316 ~ let path = [IntPoint::new(-10, -10), [INFO] [stdout] 317 + IntPoint::new(-10, 10), [INFO] [stdout] 318 + IntPoint::new(10, 10), [INFO] [stdout] 319 ~ IntPoint::new(10, -10)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/clip.rs:347:20 [INFO] [stdout] | [INFO] [stdout] 347 | let rect = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 348 | | IntPoint::new(-10, -10), [INFO] [stdout] 349 | | IntPoint::new(-10, 10), [INFO] [stdout] 350 | | IntPoint::new(10, 10), [INFO] [stdout] 351 | | IntPoint::new(10, -10), [INFO] [stdout] 352 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 347 ~ let rect = [IntPoint::new(-10, -10), [INFO] [stdout] 348 + IntPoint::new(-10, 10), [INFO] [stdout] 349 + IntPoint::new(10, 10), [INFO] [stdout] 350 ~ IntPoint::new(10, -10)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/clip.rs:391:20 [INFO] [stdout] | [INFO] [stdout] 391 | let path = vec![IntPoint::new(-1, 0), IntPoint::new(1, 0), IntPoint::new(0, 1)]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[IntPoint::new(-1, 0), IntPoint::new(1, 0), IntPoint::new(0, 1)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/clip.rs:417:20 [INFO] [stdout] | [INFO] [stdout] 417 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 418 | | IntPoint::new(-1, -1), [INFO] [stdout] 419 | | IntPoint::new(1, -1), [INFO] [stdout] 420 | | IntPoint::new(1, 1), [INFO] [stdout] 421 | | IntPoint::new(-1, 1), [INFO] [stdout] 422 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 417 ~ let path = [IntPoint::new(-1, -1), [INFO] [stdout] 418 + IntPoint::new(1, -1), [INFO] [stdout] 419 + IntPoint::new(1, 1), [INFO] [stdout] 420 ~ IntPoint::new(-1, 1)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/clip.rs:448:23 [INFO] [stdout] | [INFO] [stdout] 448 | let contour = vec![ [INFO] [stdout] | _______________________^ [INFO] [stdout] 449 | | IntPoint::new(-2, -2), [INFO] [stdout] 450 | | IntPoint::new(2, -2), [INFO] [stdout] 451 | | IntPoint::new(3, 0), [INFO] [stdout] 452 | | IntPoint::new(-3, 0), [INFO] [stdout] 453 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 448 ~ let contour = [IntPoint::new(-2, -2), [INFO] [stdout] 449 + IntPoint::new(2, -2), [INFO] [stdout] 450 + IntPoint::new(3, 0), [INFO] [stdout] 451 ~ IntPoint::new(-3, 0)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/clip.rs:486:20 [INFO] [stdout] | [INFO] [stdout] 486 | let path = vec![ [INFO] [stdout] | ____________________^ [INFO] [stdout] 487 | | IntPoint::new(0, 0), [INFO] [stdout] 488 | | IntPoint::new(2, 0), [INFO] [stdout] 489 | | IntPoint::new(2, 2), [INFO] [stdout] 490 | | IntPoint::new(1, 0), [INFO] [stdout] 491 | | IntPoint::new(0, 2), [INFO] [stdout] 492 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 486 ~ let path = [IntPoint::new(0, 0), [INFO] [stdout] 487 + IntPoint::new(2, 0), [INFO] [stdout] 488 + IntPoint::new(2, 2), [INFO] [stdout] 489 + IntPoint::new(1, 0), [INFO] [stdout] 490 ~ IntPoint::new(0, 2)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/slice.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 257 | / &vec![ [INFO] [stdout] 258 | | [IntPoint::new(15, 5), IntPoint::new(20, 5)], [INFO] [stdout] 259 | | [IntPoint::new(15, 15), IntPoint::new(20, 15)], [INFO] [stdout] 260 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 257 ~ &[[IntPoint::new(15, 5), IntPoint::new(20, 5)], [INFO] [stdout] 258 ~ [IntPoint::new(15, 15), IntPoint::new(20, 15)]], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/slice.rs:305:13 [INFO] [stdout] | [INFO] [stdout] 305 | / &vec![ [INFO] [stdout] 306 | | [IntPoint::new(10, 15), IntPoint::new(10, 20)], [INFO] [stdout] 307 | | [IntPoint::new(25, 15), IntPoint::new(25, 20)], [INFO] [stdout] 308 | | [IntPoint::new(15, 10), IntPoint::new(20, 10)], [INFO] [stdout] 309 | | [IntPoint::new(15, 25), IntPoint::new(20, 25)], [INFO] [stdout] 310 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 305 ~ &[[IntPoint::new(10, 15), IntPoint::new(10, 20)], [INFO] [stdout] 306 + [IntPoint::new(25, 15), IntPoint::new(25, 20)], [INFO] [stdout] 307 + [IntPoint::new(15, 10), IntPoint::new(20, 10)], [INFO] [stdout] 308 ~ [IntPoint::new(15, 25), IntPoint::new(20, 25)]], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/slice.rs:322:22 [INFO] [stdout] | [INFO] [stdout] 322 | let shapes = vec![ [INFO] [stdout] | ______________________^ [INFO] [stdout] 323 | | IntPoint::new(-2, -2), [INFO] [stdout] 324 | | IntPoint::new(2, -2), [INFO] [stdout] 325 | | IntPoint::new(2, 2), [INFO] [stdout] 326 | | IntPoint::new(-2, 2), [INFO] [stdout] 327 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 322 ~ let shapes = [IntPoint::new(-2, -2), [INFO] [stdout] 323 + IntPoint::new(2, -2), [INFO] [stdout] 324 + IntPoint::new(2, 2), [INFO] [stdout] 325 + IntPoint::new(-2, 2)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/slice.rs:341:22 [INFO] [stdout] | [INFO] [stdout] 341 | let shapes = vec![ [INFO] [stdout] | ______________________^ [INFO] [stdout] 342 | | IntPoint::new(-2, -2), [INFO] [stdout] 343 | | IntPoint::new(2, -2), [INFO] [stdout] 344 | | IntPoint::new(2, 2), [INFO] [stdout] 345 | | IntPoint::new(-2, 2), [INFO] [stdout] 346 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 341 ~ let shapes = [IntPoint::new(-2, -2), [INFO] [stdout] 342 + IntPoint::new(2, -2), [INFO] [stdout] 343 + IntPoint::new(2, 2), [INFO] [stdout] 344 + IntPoint::new(-2, 2)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/slice.rs:358:22 [INFO] [stdout] | [INFO] [stdout] 358 | let shapes = vec![ [INFO] [stdout] | ______________________^ [INFO] [stdout] 359 | | IntPoint::new(0, 0), [INFO] [stdout] 360 | | IntPoint::new(2, 0), [INFO] [stdout] 361 | | IntPoint::new(2, 3), [INFO] [stdout] 362 | | IntPoint::new(1, 1), [INFO] [stdout] 363 | | IntPoint::new(0, 3), [INFO] [stdout] 364 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 358 ~ let shapes = [IntPoint::new(0, 0), [INFO] [stdout] 359 + IntPoint::new(2, 0), [INFO] [stdout] 360 + IntPoint::new(2, 3), [INFO] [stdout] 361 + IntPoint::new(1, 1), [INFO] [stdout] 362 + IntPoint::new(0, 3)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/slice.rs:379:22 [INFO] [stdout] | [INFO] [stdout] 379 | let shapes = vec![ [INFO] [stdout] | ______________________^ [INFO] [stdout] 380 | | IntPoint::new(-2, -2), [INFO] [stdout] 381 | | IntPoint::new(2, -2), [INFO] [stdout] 382 | | IntPoint::new(2, 2), [INFO] [stdout] 383 | | IntPoint::new(-2, 2), [INFO] [stdout] 384 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 379 ~ let shapes = [IntPoint::new(-2, -2), [INFO] [stdout] 380 + IntPoint::new(2, -2), [INFO] [stdout] 381 + IntPoint::new(2, 2), [INFO] [stdout] 382 + IntPoint::new(-2, 2)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/string/slice.rs:396:22 [INFO] [stdout] | [INFO] [stdout] 396 | let shapes = vec![ [INFO] [stdout] | ______________________^ [INFO] [stdout] 397 | | IntPoint::new(-2, 0), [INFO] [stdout] 398 | | IntPoint::new(2, 0), [INFO] [stdout] 399 | | IntPoint::new(0, 2), [INFO] [stdout] 400 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 396 ~ let shapes = [IntPoint::new(-2, 0), [INFO] [stdout] 397 + IntPoint::new(2, 0), [INFO] [stdout] 398 + IntPoint::new(0, 2)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:318:24 [INFO] [stdout] | [INFO] [stdout] 318 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:372:24 [INFO] [stdout] | [INFO] [stdout] 372 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:426:24 [INFO] [stdout] | [INFO] [stdout] 426 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:480:24 [INFO] [stdout] | [INFO] [stdout] 480 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:534:24 [INFO] [stdout] | [INFO] [stdout] 534 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:588:24 [INFO] [stdout] | [INFO] [stdout] 588 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:642:24 [INFO] [stdout] | [INFO] [stdout] 642 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:696:24 [INFO] [stdout] | [INFO] [stdout] 696 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:750:24 [INFO] [stdout] | [INFO] [stdout] 750 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:804:24 [INFO] [stdout] | [INFO] [stdout] 804 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:845:24 [INFO] [stdout] | [INFO] [stdout] 845 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:895:24 [INFO] [stdout] | [INFO] [stdout] 895 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:945:24 [INFO] [stdout] | [INFO] [stdout] 945 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:995:24 [INFO] [stdout] | [INFO] [stdout] 995 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1054:24 [INFO] [stdout] | [INFO] [stdout] 1054 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1086:24 [INFO] [stdout] | [INFO] [stdout] 1086 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1125:24 [INFO] [stdout] | [INFO] [stdout] 1125 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1157:24 [INFO] [stdout] | [INFO] [stdout] 1157 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1231:24 [INFO] [stdout] | [INFO] [stdout] 1231 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1264:24 [INFO] [stdout] | [INFO] [stdout] 1264 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1288:24 [INFO] [stdout] | [INFO] [stdout] 1288 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1323:32 [INFO] [stdout] | [INFO] [stdout] 1323 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1362:32 [INFO] [stdout] | [INFO] [stdout] 1362 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1401:32 [INFO] [stdout] | [INFO] [stdout] 1401 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1440:32 [INFO] [stdout] | [INFO] [stdout] 1440 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1485:28 [INFO] [stdout] | [INFO] [stdout] 1485 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/split/grid_layout.rs:1526:28 [INFO] [stdout] | [INFO] [stdout] 1526 | let segments = vec![segment]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[segment]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.46s [INFO] running `Command { std: "docker" "inspect" "100595b42d44a1edc1a5675582a24a03148b03083263c34725b616e3abe56f62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "100595b42d44a1edc1a5675582a24a03148b03083263c34725b616e3abe56f62", kill_on_drop: false }` [INFO] [stdout] 100595b42d44a1edc1a5675582a24a03148b03083263c34725b616e3abe56f62