[INFO] fetching crate klippa 0.2.6... [INFO] linting klippa-0.2.6 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate klippa 0.2.6 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate klippa 0.2.6 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate klippa 0.2.6 [INFO] tweaked toml for crates.io crate klippa 0.2.6 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate klippa 0.2.6 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 klippa 0.2.6 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror v1.0.68 [INFO] [stderr] Downloaded proc-macro2 v1.0.89 [INFO] [stderr] Downloaded unicode-ident v1.0.13 [INFO] [stderr] Downloaded hermit-abi v0.4.0 [INFO] [stderr] Downloaded crunchy v0.2.2 [INFO] [stderr] Downloaded thiserror-impl v1.0.68 [INFO] [stderr] Downloaded clap_lex v0.7.2 [INFO] [stderr] Downloaded plotters-svg v0.3.7 [INFO] [stderr] Downloaded env_logger v0.11.5 [INFO] [stderr] Downloaded plotters-backend v0.3.7 [INFO] [stderr] Downloaded anes v0.1.6 [INFO] [stderr] Downloaded is-terminal v0.4.13 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.95 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.95 [INFO] [stderr] Downloaded half v2.4.1 [INFO] [stderr] Downloaded clap v4.5.20 [INFO] [stderr] Downloaded js-sys v0.3.72 [INFO] [stderr] Downloaded criterion v0.5.1 [INFO] [stderr] Downloaded libm v0.2.11 [INFO] [stderr] Downloaded plotters v0.3.7 [INFO] [stderr] Downloaded clap_builder v4.5.20 [INFO] [stderr] Downloaded wkt v0.11.1 [INFO] [stderr] Downloaded serde_json v1.0.132 [INFO] [stderr] Downloaded i_overlay v1.7.3 [INFO] [stderr] Downloaded bumpalo v3.16.0 [INFO] [stderr] Downloaded serde_derive v1.0.214 [INFO] [stderr] Downloaded humantime v2.1.0 [INFO] [stderr] Downloaded syn v2.0.87 [INFO] [stderr] Downloaded geographiclib-rs v0.2.4 [INFO] [stderr] Downloaded geo v0.29.1 [INFO] [stderr] Downloaded serde v1.0.214 [INFO] [stderr] Downloaded criterion-plot v0.5.0 [INFO] [stderr] Downloaded wasm-bindgen v0.2.95 [INFO] [stderr] Downloaded csv-core v0.1.11 [INFO] [stderr] Downloaded rstar v0.12.2 [INFO] [stderr] Downloaded oorandom v11.1.4 [INFO] [stderr] Downloaded env_filter v0.1.2 [INFO] [stderr] Downloaded i_float v1.3.1 [INFO] [stderr] Downloaded i_shape v1.3.1 [INFO] [stderr] Downloaded robust v1.1.0 [INFO] [stderr] Downloaded geo-types v0.7.13 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.95 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.95 [INFO] [stderr] Downloaded anstyle-wincon v3.0.6 [INFO] [stderr] Downloaded i_key_sort v0.2.0 [INFO] [stderr] Downloaded float_next_after v1.0.0 [INFO] [stderr] Downloaded web-sys v0.3.72 [INFO] [stderr] Downloaded regex-automata v0.4.8 [INFO] [stderr] Downloaded i_tree v0.8.3 [INFO] [stderr] Downloaded libc v0.2.161 [INFO] [stderr] Downloaded csv v1.3.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] 9368f5623e1dbda1d6bf8ad985f7c595f16c61d5c87a3bba99b3b1acc00ce59c [INFO] running `Command { std: "docker" "start" "-a" "9368f5623e1dbda1d6bf8ad985f7c595f16c61d5c87a3bba99b3b1acc00ce59c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9368f5623e1dbda1d6bf8ad985f7c595f16c61d5c87a3bba99b3b1acc00ce59c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9368f5623e1dbda1d6bf8ad985f7c595f16c61d5c87a3bba99b3b1acc00ce59c", kill_on_drop: false }` [INFO] [stdout] 9368f5623e1dbda1d6bf8ad985f7c595f16c61d5c87a3bba99b3b1acc00ce59c [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] 133c420564289d8c0a6ec6d4743909c01e4be1990ded86d739002dce489d2b0a [INFO] running `Command { std: "docker" "start" "-a" "133c420564289d8c0a6ec6d4743909c01e4be1990ded86d739002dce489d2b0a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling heapless v0.8.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking hash32 v0.3.1 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling thiserror v1.0.68 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking clap_builder v4.5.20 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking i_tree v0.8.3 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking rstar v0.12.2 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking i_key_sort v0.2.0 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking geo-types v0.7.13 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking geographiclib-rs v0.2.4 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking oorandom v11.1.4 [INFO] [stderr] Checking float_next_after v1.0.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking robust v1.1.0 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking klippa v0.2.6 (/opt/rustwide/workdir) [INFO] [stderr] Checking clap v4.5.20 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/geom.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | return a [INFO] [stdout] | ____________________^ [INFO] [stdout] 56 | | .swap_axes() [INFO] [stdout] 57 | | .intersection(&b.swap_axes()) [INFO] [stdout] 58 | | .and_then(|p| Some(p.yx())); [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] = note: `#[warn(clippy::bind_instead_of_map)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 55 ~ return a [INFO] [stdout] 56 + .swap_axes() [INFO] [stdout] 57 ~ .intersection(&b.swap_axes()).map(|p| p.yx()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/rect.rs:81:34 [INFO] [stdout] | [INFO] [stdout] 81 | if self.contains_segment(&seg) { [INFO] [stdout] | ^^^^ help: change this to: `seg` [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: using `clone` on type `Line` which implements the `Copy` trait [INFO] [stdout] --> src/rect.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | return Some(seg.clone()); [INFO] [stdout] | ^^^^^^^^^^^ help: try dereferencing it: `*seg` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Coord` which implements the `Copy` trait [INFO] [stdout] --> src/rect.rs:126:36 [INFO] [stdout] | [INFO] [stdout] 126 | Some(Line::new(seg.start.clone(), p1)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `seg.start` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Coord` which implements the `Copy` trait [INFO] [stdout] --> src/rect.rs:128:40 [INFO] [stdout] | [INFO] [stdout] 128 | Some(Line::new(p1, seg.end.clone())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try removing the `clone` call: `seg.end` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/rect.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 141 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] = note: `#[warn(clippy::into_iter_on_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/rect.rs:252:14 [INFO] [stdout] | [INFO] [stdout] 252 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/rect.rs:257:14 [INFO] [stdout] | [INFO] [stdout] 257 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec` [INFO] [stdout] --> src/util.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | for (p_idx, ls) in queue.into_iter().rev() { [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/lib.rs:69:53 [INFO] [stdout] | [INFO] [stdout] 69 | let p_tail = self.inner.perimeter_index(&a.0.last().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `a.0.last().unwrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Coord` which implements the `Copy` trait [INFO] [stdout] --> src/lib.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | a.0.push(a[0].clone()); [INFO] [stdout] | ^^^^^^^^^^^^ help: try removing the `clone` call: `a[0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map(..).flatten()` on `Iterator` [INFO] [stdout] --> src/lib.rs:126:18 [INFO] [stdout] | [INFO] [stdout] 126 | .map(|ls| self.clip_polygon_ring(&ls.clone().reverse())) [INFO] [stdout] | __________________^ [INFO] [stdout] 127 | | .flatten() [INFO] [stdout] | |__________________________^ help: try replacing `map` with `flat_map` and remove the `.flatten()`: `flat_map(|ls| self.clip_polygon_ring(&ls.clone().reverse()))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten [INFO] [stdout] = note: `#[warn(clippy::map_flatten)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/lib.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/lib.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | Point(g) => self.inner.clip_point(g).and_then(|p| Some(Point(p))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.inner.clip_point(g).map(|p| Point(p))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/lib.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | Line(g) => self.inner.clip_segment(g).and_then(|l| Some(Line(l))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.inner.clip_segment(g).map(|l| Line(l))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map(..).flatten()` on `Iterator` [INFO] [stdout] --> src/lib.rs:191:22 [INFO] [stdout] | [INFO] [stdout] 191 | .map(|ls| self.clip_linestring(ls)) [INFO] [stdout] | ______________________^ [INFO] [stdout] 192 | | .flatten() [INFO] [stdout] | |______________________________^ help: try replacing `map` with `flat_map` and remove the `.flatten()`: `flat_map(|ls| self.clip_linestring(ls))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map(..).flatten()` on `Iterator` [INFO] [stdout] --> src/lib.rs:198:22 [INFO] [stdout] | [INFO] [stdout] 198 | .map(|poly| self.clip_polygon(poly)) [INFO] [stdout] | ______________________^ [INFO] [stdout] 199 | | .flatten() [INFO] [stdout] | |______________________________^ help: try replacing `map` with `flat_map` and remove the `.flatten()`: `flat_map(|poly| self.clip_polygon(poly))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling thiserror-impl v1.0.68 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking wkt v0.11.1 [INFO] [stderr] Checking i_float v1.3.1 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking i_shape v1.3.1 [INFO] [stderr] Checking i_overlay v1.7.3 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking geo v0.29.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/geom.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | return a [INFO] [stdout] | ____________________^ [INFO] [stdout] 56 | | .swap_axes() [INFO] [stdout] 57 | | .intersection(&b.swap_axes()) [INFO] [stdout] 58 | | .and_then(|p| Some(p.yx())); [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] = note: `#[warn(clippy::bind_instead_of_map)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 55 ~ return a [INFO] [stdout] 56 + .swap_axes() [INFO] [stdout] 57 ~ .intersection(&b.swap_axes()).map(|p| p.yx()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> tests/test_geom.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | assert!(!a.intersection(&b).is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `a.intersection(&b).is_none()` [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: this boolean expression can be simplified [INFO] [stdout] --> tests/test_geom.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | assert!(!a.intersection(&b.reverse()).is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `a.intersection(&b.reverse()).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> tests/test_geom.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | assert!(!a.intersection(&b).is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `a.intersection(&b).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> tests/test_geom.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | assert!(!a.intersection(&b.reverse()).is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `a.intersection(&b.reverse()).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> tests/test_geom.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | assert!(!a.intersection(&b).is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `a.intersection(&b).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> tests/test_geom.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | assert!(!a.intersection(&b.reverse()).is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `a.intersection(&b.reverse()).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/rect.rs:81:34 [INFO] [stdout] | [INFO] [stdout] 81 | if self.contains_segment(&seg) { [INFO] [stdout] | ^^^^ help: change this to: `seg` [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: using `clone` on type `Line` which implements the `Copy` trait [INFO] [stdout] --> src/rect.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | return Some(seg.clone()); [INFO] [stdout] | ^^^^^^^^^^^ help: try dereferencing it: `*seg` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Coord` which implements the `Copy` trait [INFO] [stdout] --> src/rect.rs:126:36 [INFO] [stdout] | [INFO] [stdout] 126 | Some(Line::new(seg.start.clone(), p1)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `seg.start` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Coord` which implements the `Copy` trait [INFO] [stdout] --> src/rect.rs:128:40 [INFO] [stdout] | [INFO] [stdout] 128 | Some(Line::new(p1, seg.end.clone())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try removing the `clone` call: `seg.end` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/rect.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 141 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] = note: `#[warn(clippy::into_iter_on_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/rect.rs:252:14 [INFO] [stdout] | [INFO] [stdout] 252 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/rect.rs:257:14 [INFO] [stdout] | [INFO] [stdout] 257 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec` [INFO] [stdout] --> src/util.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | for (p_idx, ls) in queue.into_iter().rev() { [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/lib.rs:69:53 [INFO] [stdout] | [INFO] [stdout] 69 | let p_tail = self.inner.perimeter_index(&a.0.last().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `a.0.last().unwrap()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Coord` which implements the `Copy` trait [INFO] [stdout] --> src/lib.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | a.0.push(a[0].clone()); [INFO] [stdout] | ^^^^^^^^^^^^ help: try removing the `clone` call: `a[0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map(..).flatten()` on `Iterator` [INFO] [stdout] --> src/lib.rs:126:18 [INFO] [stdout] | [INFO] [stdout] 126 | .map(|ls| self.clip_polygon_ring(&ls.clone().reverse())) [INFO] [stdout] | __________________^ [INFO] [stdout] 127 | | .flatten() [INFO] [stdout] | |__________________________^ help: try replacing `map` with `flat_map` and remove the `.flatten()`: `flat_map(|ls| self.clip_polygon_ring(&ls.clone().reverse()))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten [INFO] [stdout] = note: `#[warn(clippy::map_flatten)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/lib.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/lib.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | Point(g) => self.inner.clip_point(g).and_then(|p| Some(Point(p))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.inner.clip_point(g).map(|p| Point(p))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/lib.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | Line(g) => self.inner.clip_segment(g).and_then(|l| Some(Line(l))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.inner.clip_segment(g).map(|l| Line(l))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map(..).flatten()` on `Iterator` [INFO] [stdout] --> src/lib.rs:191:22 [INFO] [stdout] | [INFO] [stdout] 191 | .map(|ls| self.clip_linestring(ls)) [INFO] [stdout] | ______________________^ [INFO] [stdout] 192 | | .flatten() [INFO] [stdout] | |______________________________^ help: try replacing `map` with `flat_map` and remove the `.flatten()`: `flat_map(|ls| self.clip_linestring(ls))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map(..).flatten()` on `Iterator` [INFO] [stdout] --> src/lib.rs:198:22 [INFO] [stdout] | [INFO] [stdout] 198 | .map(|poly| self.clip_polygon(poly)) [INFO] [stdout] | ______________________^ [INFO] [stdout] 199 | | .flatten() [INFO] [stdout] | |______________________________^ help: try replacing `map` with `flat_map` and remove the `.flatten()`: `flat_map(|poly| self.clip_polygon(poly))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> benches/benchmark.rs:62:52 [INFO] [stdout] | [INFO] [stdout] 62 | c.bench_function("lineclip_klippa", |b| b.iter(|| lineclip_klippa())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `lineclip_klippa` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> benches/benchmark.rs:63:49 [INFO] [stdout] | [INFO] [stdout] 63 | c.bench_function("lineclip_geo", |b| b.iter(|| lineclip_geo())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `lineclip_geo` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> benches/benchmark.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | b.iter(|| linestringclip_klippa()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `linestringclip_klippa` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> benches/benchmark.rs:68:55 [INFO] [stdout] | [INFO] [stdout] 68 | c.bench_function("linestringclip_geo", |b| b.iter(|| linestringclip_geo())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `linestringclip_geo` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> benches/benchmark.rs:70:52 [INFO] [stdout] | [INFO] [stdout] 70 | c.bench_function("polyclip_klippa", |b| b.iter(|| polyclip_klippa())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `polyclip_klippa` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> benches/benchmark.rs:71:49 [INFO] [stdout] | [INFO] [stdout] 71 | c.bench_function("polyclip_geo", |b| b.iter(|| polyclip_geo())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `polyclip_geo` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> benches/benchmark.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 74 | b.iter(|| polyclip_holes_klippa()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `polyclip_holes_klippa` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> benches/benchmark.rs:77:16 [INFO] [stdout] | [INFO] [stdout] 77 | b.iter(|| polyclip_holes_geo()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `polyclip_holes_geo` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/test_rect.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | rect.clip_segments(&vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 65 | | Line::new((-1.0, 2.0), (1.0, 2.0)), [INFO] [stdout] 66 | | Line::new((1.0, 2.0), (5.0, 2.0)), [INFO] [stdout] 67 | | ]), [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 a slice directly [INFO] [stdout] | [INFO] [stdout] 64 ~ rect.clip_segments(&[Line::new((-1.0, 2.0), (1.0, 2.0)), [INFO] [stdout] 65 ~ Line::new((1.0, 2.0), (5.0, 2.0))]), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/test_rect.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | rect.clip_segments(&vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 76 | | Line::new((-1.0, 2.0), (1.0, 2.0)), [INFO] [stdout] 77 | | Line::new((1.0, 2.0), (5.0, 2.0)), [INFO] [stdout] 78 | | Line::new((5.0, 2.0), (7.0, 7.0)), [INFO] [stdout] 79 | | ]), [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] 75 ~ rect.clip_segments(&[Line::new((-1.0, 2.0), (1.0, 2.0)), [INFO] [stdout] 76 + Line::new((1.0, 2.0), (5.0, 2.0)), [INFO] [stdout] 77 ~ Line::new((5.0, 2.0), (7.0, 7.0))]), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/test_rect.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | rect.clip_segments(&vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 88 | | Line::new((1.0, 2.0), (5.0, 2.0)), [INFO] [stdout] 89 | | Line::new((5.0, 2.0), (3.0, 4.0)), [INFO] [stdout] 90 | | ]), [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] 87 ~ rect.clip_segments(&[Line::new((1.0, 2.0), (5.0, 2.0)), [INFO] [stdout] 88 ~ Line::new((5.0, 2.0), (3.0, 4.0))]), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/test_rect.rs:98:28 [INFO] [stdout] | [INFO] [stdout] 98 | rect.clip_segments(&vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 99 | | Line::new((2.0, 4.0), (4.0, 2.0)), [INFO] [stdout] 100 | | Line::new((4.0, 2.0), (2.0, 0.0)) [INFO] [stdout] 101 | | ]) [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] 98 ~ rect.clip_segments(&[Line::new((2.0, 4.0), (4.0, 2.0)), [INFO] [stdout] 99 ~ Line::new((4.0, 2.0), (2.0, 0.0))]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/test_rect.rs:107:28 [INFO] [stdout] | [INFO] [stdout] 107 | rect.clip_segments(&vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 108 | | Line::new((2.0, 4.0), (6.0, 2.0)), [INFO] [stdout] 109 | | Line::new((6.0, 2.0), (2.0, 0.0)) [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 a slice directly [INFO] [stdout] | [INFO] [stdout] 107 ~ rect.clip_segments(&[Line::new((2.0, 4.0), (6.0, 2.0)), [INFO] [stdout] 108 ~ Line::new((6.0, 2.0), (2.0, 0.0))]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/test_rect.rs:117:24 [INFO] [stdout] | [INFO] [stdout] 117 | .clip_segments(&vec![ [INFO] [stdout] | ________________________^ [INFO] [stdout] 118 | | Line::new((5.0, 2.0), (5.0, 4.0)), [INFO] [stdout] 119 | | Line::new((5.0, 4.0), (7.0, 0.0)) [INFO] [stdout] 120 | | ]) [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] 117 ~ .clip_segments(&[Line::new((5.0, 2.0), (5.0, 4.0)), [INFO] [stdout] 118 ~ Line::new((5.0, 4.0), (7.0, 0.0))]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> tests/test_rect.rs:146:28 [INFO] [stdout] | [INFO] [stdout] 146 | rect.clip_segments(&vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 147 | | Line::new((-1.0, -1.0), (5.0, 5.0)), [INFO] [stdout] 148 | | Line::new((5.0, 5.0), (5.0, -1.0)), [INFO] [stdout] 149 | | Line::new((5.0, -1.0), (-1.0, 5.0)), [INFO] [stdout] 150 | | ]), [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] 146 ~ rect.clip_segments(&[Line::new((-1.0, -1.0), (5.0, 5.0)), [INFO] [stdout] 147 + Line::new((5.0, 5.0), (5.0, -1.0)), [INFO] [stdout] 148 ~ Line::new((5.0, -1.0), (-1.0, 5.0))]), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.57s [INFO] running `Command { std: "docker" "inspect" "133c420564289d8c0a6ec6d4743909c01e4be1990ded86d739002dce489d2b0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "133c420564289d8c0a6ec6d4743909c01e4be1990ded86d739002dce489d2b0a", kill_on_drop: false }` [INFO] [stdout] 133c420564289d8c0a6ec6d4743909c01e4be1990ded86d739002dce489d2b0a