[INFO] crate rsmath 0.1.6 is already in cache [INFO] extracting crate rsmath 0.1.6 into work/ex/clippy-test-run/sources/stable/reg/rsmath/0.1.6 [INFO] extracting crate rsmath 0.1.6 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/rsmath/0.1.6 [INFO] validating manifest of rsmath-0.1.6 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of rsmath-0.1.6 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing rsmath-0.1.6 [INFO] finished frobbing rsmath-0.1.6 [INFO] frobbed toml for rsmath-0.1.6 written to work/ex/clippy-test-run/sources/stable/reg/rsmath/0.1.6/Cargo.toml [INFO] started frobbing rsmath-0.1.6 [INFO] finished frobbing rsmath-0.1.6 [INFO] frobbed toml for rsmath-0.1.6 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/rsmath/0.1.6/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting rsmath-0.1.6 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/rsmath/0.1.6:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] f5ca971504cbfeb4b4ae928c3ba5642d8d16d8965066617920423b2da589bcae [INFO] running `"docker" "start" "-a" "f5ca971504cbfeb4b4ae928c3ba5642d8d16d8965066617920423b2da589bcae"` [INFO] [stderr] Checking rsmath v0.1.6 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/point.rs:58:18 [INFO] [stderr] | [INFO] [stderr] 58 | Point3D {x: x, y: y, z: z} [INFO] [stderr] | ^^^^ help: replace it with: `x` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/point.rs:58:24 [INFO] [stderr] | [INFO] [stderr] 58 | Point3D {x: x, y: y, z: z} [INFO] [stderr] | ^^^^ help: replace it with: `y` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/point.rs:58:30 [INFO] [stderr] | [INFO] [stderr] 58 | Point3D {x: x, y: y, z: z} [INFO] [stderr] | ^^^^ help: replace it with: `z` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/vector.rs:105:20 [INFO] [stderr] | [INFO] [stderr] 105 | Vector3D { x: x, [INFO] [stderr] | ^^^^ help: replace it with: `x` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/vector.rs:106:20 [INFO] [stderr] | [INFO] [stderr] 106 | y: y, [INFO] [stderr] | ^^^^ help: replace it with: `y` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/vector.rs:107:20 [INFO] [stderr] | [INFO] [stderr] 107 | z: z } [INFO] [stderr] | ^^^^ help: replace it with: `z` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/quat.rs:45:16 [INFO] [stderr] | [INFO] [stderr] 45 | Quat { x: x, [INFO] [stderr] | ^^^^ help: replace it with: `x` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/quat.rs:46:16 [INFO] [stderr] | [INFO] [stderr] 46 | y: y, [INFO] [stderr] | ^^^^ help: replace it with: `y` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/quat.rs:47:16 [INFO] [stderr] | [INFO] [stderr] 47 | z: z, [INFO] [stderr] | ^^^^ help: replace it with: `z` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/quat.rs:48:16 [INFO] [stderr] | [INFO] [stderr] 48 | w: w } [INFO] [stderr] | ^^^^ help: replace it with: `w` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/point.rs:58:18 [INFO] [stderr] | [INFO] [stderr] 58 | Point3D {x: x, y: y, z: z} [INFO] [stderr] | ^^^^ help: replace it with: `x` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/point.rs:58:24 [INFO] [stderr] | [INFO] [stderr] 58 | Point3D {x: x, y: y, z: z} [INFO] [stderr] | ^^^^ help: replace it with: `y` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/point.rs:58:30 [INFO] [stderr] | [INFO] [stderr] 58 | Point3D {x: x, y: y, z: z} [INFO] [stderr] | ^^^^ help: replace it with: `z` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/vector.rs:105:20 [INFO] [stderr] | [INFO] [stderr] 105 | Vector3D { x: x, [INFO] [stderr] | ^^^^ help: replace it with: `x` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/vector.rs:106:20 [INFO] [stderr] | [INFO] [stderr] 106 | y: y, [INFO] [stderr] | ^^^^ help: replace it with: `y` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/vector.rs:107:20 [INFO] [stderr] | [INFO] [stderr] 107 | z: z } [INFO] [stderr] | ^^^^ help: replace it with: `z` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/quat.rs:45:16 [INFO] [stderr] | [INFO] [stderr] 45 | Quat { x: x, [INFO] [stderr] | ^^^^ help: replace it with: `x` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/quat.rs:46:16 [INFO] [stderr] | [INFO] [stderr] 46 | y: y, [INFO] [stderr] | ^^^^ help: replace it with: `y` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/quat.rs:47:16 [INFO] [stderr] | [INFO] [stderr] 47 | z: z, [INFO] [stderr] | ^^^^ help: replace it with: `z` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/linspace/quat.rs:48:16 [INFO] [stderr] | [INFO] [stderr] 48 | w: w } [INFO] [stderr] | ^^^^ help: replace it with: `w` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/linspace/point.rs:113:29 [INFO] [stderr] | [INFO] [stderr] 113 | let val: f64 = (pow((a.x() - b.x()), 2) + [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_parens)] on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/linspace/point.rs:114:29 [INFO] [stderr] | [INFO] [stderr] 114 | pow((a.y() - b.y()), 2) + [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/linspace/point.rs:115:29 [INFO] [stderr] | [INFO] [stderr] 115 | pow((a.z() - b.z()), 2)).into(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/linspace/point.rs:113:29 [INFO] [stderr] | [INFO] [stderr] 113 | let val: f64 = (pow((a.x() - b.x()), 2) + [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_parens)] on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/linspace/point.rs:114:29 [INFO] [stderr] | [INFO] [stderr] 114 | pow((a.y() - b.y()), 2) + [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/linspace/point.rs:115:29 [INFO] [stderr] | [INFO] [stderr] 115 | pow((a.z() - b.z()), 2)).into(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `algebra::matrix::Matrix` [INFO] [stderr] --> src/algebra/matrix.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | / pub fn new() -> Matrix { [INFO] [stderr] 34 | | Matrix:: { values: Vec::new(), [INFO] [stderr] 35 | | nrows: 0, [INFO] [stderr] 36 | | ncols: 0 } [INFO] [stderr] 37 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default_derive)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 19 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is only used to index `vec`. [INFO] [stderr] --> src/algebra/matrix.rs:49:18 [INFO] [stderr] | [INFO] [stderr] 49 | for i in 0..vec.len() { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_range_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 49 | for in &mut vec { [INFO] [stderr] | ^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/matrix.rs:63:22 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn init(val: &Vec>) -> Matrix { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] help: change this to [INFO] [stderr] | [INFO] [stderr] 63 | pub fn init(val: &[Vec]) -> Matrix { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] help: change `val.clone()` to [INFO] [stderr] | [INFO] [stderr] 65 | m.values = val.to_owned(); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/matrix.rs:201:54 [INFO] [stderr] | [INFO] [stderr] 201 | pub fn set_row(&mut self, index: usize, new_row: &Vec) { [INFO] [stderr] | ^^^^^^^ help: change this to: `&[N]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/matrix.rs:237:54 [INFO] [stderr] | [INFO] [stderr] 237 | pub fn set_col(&mut self, index: usize, new_col: &Vec) { [INFO] [stderr] | ^^^^^^^ help: change this to: `&[N]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `new_col` [INFO] [stderr] --> src/algebra/matrix.rs:245:18 [INFO] [stderr] | [INFO] [stderr] 245 | for i in 0..self.nrows() { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 245 | for (i, ) in new_col.iter().enumerate().take(self.nrows()) { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/matrix.rs:303:37 [INFO] [stderr] | [INFO] [stderr] 303 | pub fn contains_row(&self, row: &Vec) -> Option [INFO] [stderr] | ^^^^^^^ help: change this to: `&[N]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/matrix.rs:319:40 [INFO] [stderr] | [INFO] [stderr] 319 | pub fn contains_col(&self, column: &Vec) -> Option [INFO] [stderr] | ^^^^^^^ help: change this to: `&[N]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: an inclusive range would be more readable [INFO] [stderr] --> src/algebra/matrix.rs:640:18 [INFO] [stderr] | [INFO] [stderr] 640 | for i in range_row[0]..(range_row[1]+1) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `range_row[0]..=range_row[1]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::range_plus_one)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one [INFO] [stderr] [INFO] [stderr] warning: an inclusive range would be more readable [INFO] [stderr] --> src/algebra/matrix.rs:642:22 [INFO] [stderr] | [INFO] [stderr] 642 | for j in range_col[0]..(range_col[1]+1) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `range_col[0]..=range_col[1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/algebra/matrix.rs:667:21 [INFO] [stderr] | [INFO] [stderr] 667 | val = val + (pow(row_i[x] - row_j[x], 2)).into(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `val += (pow(row_i[x] - row_j[x], 2)).into()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::assign_op_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/algebra/matrix.rs:925:9 [INFO] [stderr] | [INFO] [stderr] 925 | / match self.index > self.m.ncols() { [INFO] [stderr] 926 | | true => None, [INFO] [stderr] 927 | | false => self.m.col(self.index - 1) [INFO] [stderr] 928 | | } [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if self.index > self.m.ncols() { None } else { self.m.col(self.index - 1) }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/algebra/matrix.rs:944:9 [INFO] [stderr] | [INFO] [stderr] 944 | / match self.index > self.m.nrows() { [INFO] [stderr] 945 | | true => None, [INFO] [stderr] 946 | | false => self.m.row(self.index - 1) [INFO] [stderr] 947 | | } [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if self.index > self.m.nrows() { None } else { self.m.row(self.index - 1) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `algebra::vector::Vector` [INFO] [stderr] --> src/algebra/vector.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | / pub fn new() -> Vector { [INFO] [stderr] 25 | | Vector:: { [INFO] [stderr] 26 | | values: Vec::new()} [INFO] [stderr] 27 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 16 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/vector.rs:35:22 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn init(val: &Vec) -> Vector { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] help: change this to [INFO] [stderr] | [INFO] [stderr] 35 | pub fn init(val: &[N]) -> Vector { [INFO] [stderr] | ^^^^ [INFO] [stderr] help: change `val.clone()` to [INFO] [stderr] | [INFO] [stderr] 37 | v.values = val.to_owned(); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: you should consider adding a `Default` implementation for `linspace::point::Point3D` [INFO] [stderr] --> src/linspace/point.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | / pub fn new() -> Point3D where N: Default { [INFO] [stderr] 46 | | Point3D {x: N::default(), y: N::default(), z: N::default()} [INFO] [stderr] 47 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 23 | impl Default for linspace::point::Point3D { [INFO] [stderr] 24 | fn default() -> Self { [INFO] [stderr] 25 | Self::new() [INFO] [stderr] 26 | } [INFO] [stderr] 27 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you should consider adding a `Default` implementation for `linspace::vector::Vector3D` [INFO] [stderr] --> src/linspace/vector.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 90 | / pub fn new() -> Vector3D where N: Default { [INFO] [stderr] 91 | | Vector3D { x: N::default(), [INFO] [stderr] 92 | | y: N::default(), [INFO] [stderr] 93 | | z: N::default() } [INFO] [stderr] 94 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 24 | impl Default for linspace::vector::Vector3D { [INFO] [stderr] 25 | fn default() -> Self { [INFO] [stderr] 26 | Self::new() [INFO] [stderr] 27 | } [INFO] [stderr] 28 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you should consider adding a `Default` implementation for `linspace::quat::Quat` [INFO] [stderr] --> src/linspace/quat.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | / pub fn new() -> Quat where N: Default { [INFO] [stderr] 29 | | Quat { x: N::default(), [INFO] [stderr] 30 | | y: N::default(), [INFO] [stderr] 31 | | z: N::default(), [INFO] [stderr] 32 | | w: N::default()} [INFO] [stderr] 33 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 24 | impl Default for linspace::quat::Quat { [INFO] [stderr] 25 | fn default() -> Self { [INFO] [stderr] 26 | Self::new() [INFO] [stderr] 27 | } [INFO] [stderr] 28 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `algebra::matrix::Matrix` [INFO] [stderr] --> src/algebra/matrix.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | / pub fn new() -> Matrix { [INFO] [stderr] 34 | | Matrix:: { values: Vec::new(), [INFO] [stderr] 35 | | nrows: 0, [INFO] [stderr] 36 | | ncols: 0 } [INFO] [stderr] 37 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default_derive)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 19 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is only used to index `vec`. [INFO] [stderr] --> src/algebra/matrix.rs:49:18 [INFO] [stderr] | [INFO] [stderr] 49 | for i in 0..vec.len() { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_range_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 49 | for in &mut vec { [INFO] [stderr] | ^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/matrix.rs:63:22 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn init(val: &Vec>) -> Matrix { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] help: change this to [INFO] [stderr] | [INFO] [stderr] 63 | pub fn init(val: &[Vec]) -> Matrix { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] help: change `val.clone()` to [INFO] [stderr] | [INFO] [stderr] 65 | m.values = val.to_owned(); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/matrix.rs:201:54 [INFO] [stderr] | [INFO] [stderr] 201 | pub fn set_row(&mut self, index: usize, new_row: &Vec) { [INFO] [stderr] | ^^^^^^^ help: change this to: `&[N]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/matrix.rs:237:54 [INFO] [stderr] | [INFO] [stderr] 237 | pub fn set_col(&mut self, index: usize, new_col: &Vec) { [INFO] [stderr] | ^^^^^^^ help: change this to: `&[N]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `new_col` [INFO] [stderr] --> src/algebra/matrix.rs:245:18 [INFO] [stderr] | [INFO] [stderr] 245 | for i in 0..self.nrows() { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 245 | for (i, ) in new_col.iter().enumerate().take(self.nrows()) { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/matrix.rs:303:37 [INFO] [stderr] | [INFO] [stderr] 303 | pub fn contains_row(&self, row: &Vec) -> Option [INFO] [stderr] | ^^^^^^^ help: change this to: `&[N]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/matrix.rs:319:40 [INFO] [stderr] | [INFO] [stderr] 319 | pub fn contains_col(&self, column: &Vec) -> Option [INFO] [stderr] | ^^^^^^^ help: change this to: `&[N]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: an inclusive range would be more readable [INFO] [stderr] --> src/algebra/matrix.rs:640:18 [INFO] [stderr] | [INFO] [stderr] 640 | for i in range_row[0]..(range_row[1]+1) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `range_row[0]..=range_row[1]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::range_plus_one)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one [INFO] [stderr] [INFO] [stderr] warning: an inclusive range would be more readable [INFO] [stderr] --> src/algebra/matrix.rs:642:22 [INFO] [stderr] | [INFO] [stderr] 642 | for j in range_col[0]..(range_col[1]+1) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `range_col[0]..=range_col[1]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/algebra/matrix.rs:667:21 [INFO] [stderr] | [INFO] [stderr] 667 | val = val + (pow(row_i[x] - row_j[x], 2)).into(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `val += (pow(row_i[x] - row_j[x], 2)).into()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::assign_op_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/algebra/matrix.rs:925:9 [INFO] [stderr] | [INFO] [stderr] 925 | / match self.index > self.m.ncols() { [INFO] [stderr] 926 | | true => None, [INFO] [stderr] 927 | | false => self.m.col(self.index - 1) [INFO] [stderr] 928 | | } [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if self.index > self.m.ncols() { None } else { self.m.col(self.index - 1) }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/algebra/matrix.rs:944:9 [INFO] [stderr] | [INFO] [stderr] 944 | / match self.index > self.m.nrows() { [INFO] [stderr] 945 | | true => None, [INFO] [stderr] 946 | | false => self.m.row(self.index - 1) [INFO] [stderr] 947 | | } [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if self.index > self.m.nrows() { None } else { self.m.row(self.index - 1) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `algebra::vector::Vector` [INFO] [stderr] --> src/algebra/vector.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | / pub fn new() -> Vector { [INFO] [stderr] 25 | | Vector:: { [INFO] [stderr] 26 | | values: Vec::new()} [INFO] [stderr] 27 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 16 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/algebra/vector.rs:35:22 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn init(val: &Vec) -> Vector { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] help: change this to [INFO] [stderr] | [INFO] [stderr] 35 | pub fn init(val: &[N]) -> Vector { [INFO] [stderr] | ^^^^ [INFO] [stderr] help: change `val.clone()` to [INFO] [stderr] | [INFO] [stderr] 37 | v.values = val.to_owned(); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: you should consider adding a `Default` implementation for `linspace::point::Point3D` [INFO] [stderr] --> src/linspace/point.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | / pub fn new() -> Point3D where N: Default { [INFO] [stderr] 46 | | Point3D {x: N::default(), y: N::default(), z: N::default()} [INFO] [stderr] 47 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 23 | impl Default for linspace::point::Point3D { [INFO] [stderr] 24 | fn default() -> Self { [INFO] [stderr] 25 | Self::new() [INFO] [stderr] 26 | } [INFO] [stderr] 27 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you should consider adding a `Default` implementation for `linspace::vector::Vector3D` [INFO] [stderr] --> src/linspace/vector.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 90 | / pub fn new() -> Vector3D where N: Default { [INFO] [stderr] 91 | | Vector3D { x: N::default(), [INFO] [stderr] 92 | | y: N::default(), [INFO] [stderr] 93 | | z: N::default() } [INFO] [stderr] 94 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 24 | impl Default for linspace::vector::Vector3D { [INFO] [stderr] 25 | fn default() -> Self { [INFO] [stderr] 26 | Self::new() [INFO] [stderr] 27 | } [INFO] [stderr] 28 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you should consider adding a `Default` implementation for `linspace::quat::Quat` [INFO] [stderr] --> src/linspace/quat.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | / pub fn new() -> Quat where N: Default { [INFO] [stderr] 29 | | Quat { x: N::default(), [INFO] [stderr] 30 | | y: N::default(), [INFO] [stderr] 31 | | z: N::default(), [INFO] [stderr] 32 | | w: N::default()} [INFO] [stderr] 33 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 24 | impl Default for linspace::quat::Quat { [INFO] [stderr] 25 | fn default() -> Self { [INFO] [stderr] 26 | Self::new() [INFO] [stderr] 27 | } [INFO] [stderr] 28 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: this `.fold` can be written more succinctly using another method [INFO] [stderr] --> examples/onemax.rs:42:34 [INFO] [stderr] | [INFO] [stderr] 42 | let sum = gene.iter().fold(0u32, |sum, &el| sum + el); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `.sum()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unnecessary_fold)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/linspace.rs:71:23 [INFO] [stderr] | [INFO] [stderr] 71 | assert_eq!(d, 5.916079783099616); // using online euclidean distance calculator [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: consider: `5.916_079_783_099_616` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/linspace.rs:206:27 [INFO] [stderr] | [INFO] [stderr] 206 | assert_eq!(a.x(), 0.5345224838248488f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0.534_522_483_824_848_8f64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/linspace.rs:207:27 [INFO] [stderr] | [INFO] [stderr] 207 | assert_eq!(a.y(), 0.2672612419124244f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0.267_261_241_912_424_4f64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/linspace.rs:208:27 [INFO] [stderr] | [INFO] [stderr] 208 | assert_eq!(a.z(), 0.8017837257372732f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0.801_783_725_737_273_2f64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/linspace.rs:347:23 [INFO] [stderr] | [INFO] [stderr] 347 | assert_eq!(m, 3.605551275463989f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: consider: `3.605_551_275_463_989f64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/linspace.rs:362:18 [INFO] [stderr] | [INFO] [stderr] 362 | let pi = 3.14159265358979323846264338327950288f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider: `3.141_592_653_589_793_238_462_643_383_279_502_88f64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'test' (see issue #27812) [INFO] [stderr] --> benches/matrix.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | extern crate test; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'test' (see issue #27812) [INFO] [stderr] --> benches/matrix.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | use test::Bencher; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'test' (see issue #27812) [INFO] [stderr] --> benches/matrix.rs:11:36 [INFO] [stderr] | [INFO] [stderr] 11 | fn create_random_bench(b: &mut Bencher) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'test' (see issue #27812) [INFO] [stderr] --> benches/matrix.rs:13:4 [INFO] [stderr] | [INFO] [stderr] 13 | b.iter(|| Matrix::::random(3, 3, &range)); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] error: Could not compile `rsmath`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | assert_eq!(p3.x(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | assert_eq!(p3.x(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | assert_eq!(p3.y(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | assert_eq!(p3.y(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | assert_eq!(p3.z(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | assert_eq!(p3.z(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | assert_eq!(p3.x(), 1.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | assert_eq!(p3.x(), 1.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 25 | assert_eq!(p3.y(), 2.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 25 | assert_eq!(p3.y(), 2.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | assert_eq!(p3.z(), -3.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | assert_eq!(p3.z(), -3.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | assert_eq!(a.x(), a.x()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | assert_eq!(a.x(), a.x()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | assert_eq!(a.y(), a.y()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | assert_eq!(a.y(), a.y()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 53 | assert_eq!(a.z(), 2.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 53 | assert_eq!(a.z(), 2.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:60:9 [INFO] [stderr] | [INFO] [stderr] 60 | assert_eq!(a.x(), 2.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:60:9 [INFO] [stderr] | [INFO] [stderr] 60 | assert_eq!(a.x(), 2.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:61:9 [INFO] [stderr] | [INFO] [stderr] 61 | assert_eq!(a.y(), 0.1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:61:9 [INFO] [stderr] | [INFO] [stderr] 61 | assert_eq!(a.y(), 0.1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:62:9 [INFO] [stderr] | [INFO] [stderr] 62 | assert_eq!(a.z(), 1.2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:62:9 [INFO] [stderr] | [INFO] [stderr] 62 | assert_eq!(a.z(), 1.2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:71:9 [INFO] [stderr] | [INFO] [stderr] 71 | assert_eq!(d, 5.916079783099616); // using online euclidean distance calculator [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:71:9 [INFO] [stderr] | [INFO] [stderr] 71 | assert_eq!(d, 5.916079783099616); // using online euclidean distance calculator [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:80:9 [INFO] [stderr] | [INFO] [stderr] 80 | assert_eq!(v.x(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:80:9 [INFO] [stderr] | [INFO] [stderr] 80 | assert_eq!(v.x(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:81:9 [INFO] [stderr] | [INFO] [stderr] 81 | assert_eq!(v.y(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:81:9 [INFO] [stderr] | [INFO] [stderr] 81 | assert_eq!(v.y(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 82 | assert_eq!(v.z(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 82 | assert_eq!(v.z(), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:88:9 [INFO] [stderr] | [INFO] [stderr] 88 | assert_eq!(v.x(), 2.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:88:9 [INFO] [stderr] | [INFO] [stderr] 88 | assert_eq!(v.x(), 2.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:89:9 [INFO] [stderr] | [INFO] [stderr] 89 | assert_eq!(v.y(), 3.1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:89:9 [INFO] [stderr] | [INFO] [stderr] 89 | assert_eq!(v.y(), 3.1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:90:9 [INFO] [stderr] | [INFO] [stderr] 90 | assert_eq!(v.z(), 5.2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:90:9 [INFO] [stderr] | [INFO] [stderr] 90 | assert_eq!(v.z(), 5.2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: using `clone` on a `Copy` type [INFO] [stderr] --> tests/linspace.rs:95:20 [INFO] [stderr] | [INFO] [stderr] 95 | let copy = v3.clone(); [INFO] [stderr] | ^^^^^^^^^^ help: try removing the `clone` call: `v3` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::clone_on_copy)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:120:9 [INFO] [stderr] | [INFO] [stderr] 120 | assert_eq!(sub.x(), a.x() - b.x()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:120:9 [INFO] [stderr] | [INFO] [stderr] 120 | assert_eq!(sub.x(), a.x() - b.x()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:121:9 [INFO] [stderr] | [INFO] [stderr] 121 | assert_eq!(sub.y(), a.y() - b.y()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:121:9 [INFO] [stderr] | [INFO] [stderr] 121 | assert_eq!(sub.y(), a.y() - b.y()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:122:9 [INFO] [stderr] | [INFO] [stderr] 122 | assert_eq!(sub.z(), a.z() - b.z()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:122:9 [INFO] [stderr] | [INFO] [stderr] 122 | assert_eq!(sub.z(), a.z() - b.z()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:169:9 [INFO] [stderr] | [INFO] [stderr] 169 | assert_eq!(a.x(), a.x()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:169:9 [INFO] [stderr] | [INFO] [stderr] 169 | assert_eq!(a.x(), a.x()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:170:9 [INFO] [stderr] | [INFO] [stderr] 170 | assert_eq!(a.y(), a.y()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:170:9 [INFO] [stderr] | [INFO] [stderr] 170 | assert_eq!(a.y(), a.y()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:171:9 [INFO] [stderr] | [INFO] [stderr] 171 | assert_eq!(a.z(), 2.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:171:9 [INFO] [stderr] | [INFO] [stderr] 171 | assert_eq!(a.z(), 2.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:178:9 [INFO] [stderr] | [INFO] [stderr] 178 | assert_eq!(a.x(), 2.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:178:9 [INFO] [stderr] | [INFO] [stderr] 178 | assert_eq!(a.x(), 2.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:179:9 [INFO] [stderr] | [INFO] [stderr] 179 | assert_eq!(a.y(), 0.1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:179:9 [INFO] [stderr] | [INFO] [stderr] 179 | assert_eq!(a.y(), 0.1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:180:9 [INFO] [stderr] | [INFO] [stderr] 180 | assert_eq!(a.z(), 1.2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:180:9 [INFO] [stderr] | [INFO] [stderr] 180 | assert_eq!(a.z(), 1.2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: the operation is ineffective. Consider reducing it to `2*1` [INFO] [stderr] --> tests/linspace.rs:198:31 [INFO] [stderr] | [INFO] [stderr] 198 | assert_eq!(a.dot(&b), 1*0 + 0*2 + 2*1); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::identity_op)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] warning: the operation is ineffective. Consider reducing it to `0*2` [INFO] [stderr] --> tests/linspace.rs:198:31 [INFO] [stderr] | [INFO] [stderr] 198 | assert_eq!(a.dot(&b), 1*0 + 0*2 + 2*1); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] warning: the operation is ineffective. Consider reducing it to `1*0` [INFO] [stderr] --> tests/linspace.rs:198:31 [INFO] [stderr] | [INFO] [stderr] 198 | assert_eq!(a.dot(&b), 1*0 + 0*2 + 2*1); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] warning: the operation is ineffective. Consider reducing it to `0` [INFO] [stderr] --> tests/linspace.rs:198:31 [INFO] [stderr] | [INFO] [stderr] 198 | assert_eq!(a.dot(&b), 1*0 + 0*2 + 2*1); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] error: this operation will always return zero. This is likely not the intended outcome [INFO] [stderr] --> tests/linspace.rs:198:31 [INFO] [stderr] | [INFO] [stderr] 198 | assert_eq!(a.dot(&b), 1*0 + 0*2 + 2*1); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::erasing_op)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op [INFO] [stderr] [INFO] [stderr] error: this operation will always return zero. This is likely not the intended outcome [INFO] [stderr] --> tests/linspace.rs:198:37 [INFO] [stderr] | [INFO] [stderr] 198 | assert_eq!(a.dot(&b), 1*0 + 0*2 + 2*1); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op [INFO] [stderr] [INFO] [stderr] warning: the operation is ineffective. Consider reducing it to `2` [INFO] [stderr] --> tests/linspace.rs:198:43 [INFO] [stderr] | [INFO] [stderr] 198 | assert_eq!(a.dot(&b), 1*0 + 0*2 + 2*1); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:206:9 [INFO] [stderr] | [INFO] [stderr] 206 | assert_eq!(a.x(), 0.5345224838248488f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:206:9 [INFO] [stderr] | [INFO] [stderr] 206 | assert_eq!(a.x(), 0.5345224838248488f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:207:9 [INFO] [stderr] | [INFO] [stderr] 207 | assert_eq!(a.y(), 0.2672612419124244f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:207:9 [INFO] [stderr] | [INFO] [stderr] 207 | assert_eq!(a.y(), 0.2672612419124244f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:208:9 [INFO] [stderr] | [INFO] [stderr] 208 | assert_eq!(a.z(), 0.8017837257372732f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:208:9 [INFO] [stderr] | [INFO] [stderr] 208 | assert_eq!(a.z(), 0.8017837257372732f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:215:9 [INFO] [stderr] | [INFO] [stderr] 215 | assert_eq!(dist, (2f64*2f64 + 2f64*2f64 + 1f64).sqrt()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:215:9 [INFO] [stderr] | [INFO] [stderr] 215 | assert_eq!(dist, (2f64*2f64 + 2f64*2f64 + 1f64).sqrt()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:223:9 [INFO] [stderr] | [INFO] [stderr] 223 | assert_eq!(q.x(), 2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:223:9 [INFO] [stderr] | [INFO] [stderr] 223 | assert_eq!(q.x(), 2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:224:9 [INFO] [stderr] | [INFO] [stderr] 224 | assert_eq!(q.y(), 1.5f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:224:9 [INFO] [stderr] | [INFO] [stderr] 224 | assert_eq!(q.y(), 1.5f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:225:9 [INFO] [stderr] | [INFO] [stderr] 225 | assert_eq!(q.z(), -0.2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:225:9 [INFO] [stderr] | [INFO] [stderr] 225 | assert_eq!(q.z(), -0.2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:226:9 [INFO] [stderr] | [INFO] [stderr] 226 | assert_eq!(q.w(), 3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:226:9 [INFO] [stderr] | [INFO] [stderr] 226 | assert_eq!(q.w(), 3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:279:9 [INFO] [stderr] | [INFO] [stderr] 279 | assert_eq!(q.x(), 4f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:279:9 [INFO] [stderr] | [INFO] [stderr] 279 | assert_eq!(q.x(), 4f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:280:9 [INFO] [stderr] | [INFO] [stderr] 280 | assert_eq!(q.y(), 3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:280:9 [INFO] [stderr] | [INFO] [stderr] 280 | assert_eq!(q.y(), 3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:281:9 [INFO] [stderr] | [INFO] [stderr] 281 | assert_eq!(q.z(), -0.4f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:281:9 [INFO] [stderr] | [INFO] [stderr] 281 | assert_eq!(q.z(), -0.4f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:282:9 [INFO] [stderr] | [INFO] [stderr] 282 | assert_eq!(q.w(), 6f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:282:9 [INFO] [stderr] | [INFO] [stderr] 282 | assert_eq!(q.w(), 6f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:313:9 [INFO] [stderr] | [INFO] [stderr] 313 | assert_eq!(neg.x(), -2.3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:313:9 [INFO] [stderr] | [INFO] [stderr] 313 | assert_eq!(neg.x(), -2.3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:314:9 [INFO] [stderr] | [INFO] [stderr] 314 | assert_eq!(neg.y(), -1f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:314:9 [INFO] [stderr] | [INFO] [stderr] 314 | assert_eq!(neg.y(), -1f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:315:9 [INFO] [stderr] | [INFO] [stderr] 315 | assert_eq!(neg.z(), 0.2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:315:9 [INFO] [stderr] | [INFO] [stderr] 315 | assert_eq!(neg.z(), 0.2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:316:9 [INFO] [stderr] | [INFO] [stderr] 316 | assert_eq!(neg.w(), -2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:316:9 [INFO] [stderr] | [INFO] [stderr] 316 | assert_eq!(neg.w(), -2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:336:9 [INFO] [stderr] | [INFO] [stderr] 336 | assert_eq!(c.x(), -2.3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:336:9 [INFO] [stderr] | [INFO] [stderr] 336 | assert_eq!(c.x(), -2.3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:337:9 [INFO] [stderr] | [INFO] [stderr] 337 | assert_eq!(c.y(), -1f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:337:9 [INFO] [stderr] | [INFO] [stderr] 337 | assert_eq!(c.y(), -1f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:338:9 [INFO] [stderr] | [INFO] [stderr] 338 | assert_eq!(c.z(), 0.2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:338:9 [INFO] [stderr] | [INFO] [stderr] 338 | assert_eq!(c.z(), 0.2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:339:9 [INFO] [stderr] | [INFO] [stderr] 339 | assert_eq!(c.w(), 2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:339:9 [INFO] [stderr] | [INFO] [stderr] 339 | assert_eq!(c.w(), 2f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:347:9 [INFO] [stderr] | [INFO] [stderr] 347 | assert_eq!(m, 3.605551275463989f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:347:9 [INFO] [stderr] | [INFO] [stderr] 347 | assert_eq!(m, 3.605551275463989f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> tests/linspace.rs:355:30 [INFO] [stderr] | [INFO] [stderr] 355 | assert_eq!(norm.x(), (q.x() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: try: `f64::from(q.x())` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:355:9 [INFO] [stderr] | [INFO] [stderr] 355 | assert_eq!(norm.x(), (q.x() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:355:9 [INFO] [stderr] | [INFO] [stderr] 355 | assert_eq!(norm.x(), (q.x() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> tests/linspace.rs:356:30 [INFO] [stderr] | [INFO] [stderr] 356 | assert_eq!(norm.y(), (q.y() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: try: `f64::from(q.y())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:356:9 [INFO] [stderr] | [INFO] [stderr] 356 | assert_eq!(norm.y(), (q.y() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:356:9 [INFO] [stderr] | [INFO] [stderr] 356 | assert_eq!(norm.y(), (q.y() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> tests/linspace.rs:357:30 [INFO] [stderr] | [INFO] [stderr] 357 | assert_eq!(norm.z(), (q.z() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: try: `f64::from(q.z())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:357:9 [INFO] [stderr] | [INFO] [stderr] 357 | assert_eq!(norm.z(), (q.z() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:357:9 [INFO] [stderr] | [INFO] [stderr] 357 | assert_eq!(norm.z(), (q.z() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> tests/linspace.rs:358:30 [INFO] [stderr] | [INFO] [stderr] 358 | assert_eq!(norm.w(), (q.w() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: try: `f64::from(q.w())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:358:9 [INFO] [stderr] | [INFO] [stderr] 358 | assert_eq!(norm.w(), (q.w() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:358:9 [INFO] [stderr] | [INFO] [stderr] 358 | assert_eq!(norm.w(), (q.w() as f64)/m); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: float has excessive precision [INFO] [stderr] --> tests/linspace.rs:362:18 [INFO] [stderr] | [INFO] [stderr] 362 | let pi = 3.14159265358979323846264338327950288f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `3.141_592_653_589_793` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::excessive_precision)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:365:9 [INFO] [stderr] | [INFO] [stderr] 365 | assert_eq!(r.x().round(), 0f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:365:9 [INFO] [stderr] | [INFO] [stderr] 365 | assert_eq!(r.x().round(), 0f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:366:9 [INFO] [stderr] | [INFO] [stderr] 366 | assert_eq!(r.y().round(), 0f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:366:9 [INFO] [stderr] | [INFO] [stderr] 366 | assert_eq!(r.y().round(), 0f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:367:9 [INFO] [stderr] | [INFO] [stderr] 367 | assert_eq!(r.z().round(), 0f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:367:9 [INFO] [stderr] | [INFO] [stderr] 367 | assert_eq!(r.z().round(), 0f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/linspace.rs:368:9 [INFO] [stderr] | [INFO] [stderr] 368 | assert_eq!(r.w().round(), -1f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/linspace.rs:368:9 [INFO] [stderr] | [INFO] [stderr] 368 | assert_eq!(r.w().round(), -1f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 59 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `rsmath`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 34 | assert_eq!(m.get_element(0, 0), 1.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 34 | assert_eq!(m.get_element(0, 0), 1.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | assert_eq!(m.get_element(0, 1), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | assert_eq!(m.get_element(0, 1), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | assert_eq!(m.get_element(0, 2), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | assert_eq!(m.get_element(0, 2), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | assert_eq!(m.get_element(1, 0), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | assert_eq!(m.get_element(1, 0), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | assert_eq!(m.get_element(1, 1), 1.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | assert_eq!(m.get_element(1, 1), 1.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | assert_eq!(m.get_element(1, 2), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | assert_eq!(m.get_element(1, 2), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | assert_eq!(m.get_element(2, 0), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | assert_eq!(m.get_element(2, 0), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | assert_eq!(m.get_element(2, 1), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | assert_eq!(m.get_element(2, 1), 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | assert_eq!(m.get_element(2, 2), 1.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | assert_eq!(m.get_element(2, 2), 1.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:504:9 [INFO] [stderr] | [INFO] [stderr] 504 | assert_eq!(v.el(0), 2.5f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:504:9 [INFO] [stderr] | [INFO] [stderr] 504 | assert_eq!(v.el(0), 2.5f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:505:9 [INFO] [stderr] | [INFO] [stderr] 505 | assert_eq!(v.el(1), -2.1f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:505:9 [INFO] [stderr] | [INFO] [stderr] 505 | assert_eq!(v.el(1), -2.1f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:506:9 [INFO] [stderr] | [INFO] [stderr] 506 | assert_eq!(v.el(2), 5.3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:506:9 [INFO] [stderr] | [INFO] [stderr] 506 | assert_eq!(v.el(2), 5.3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:541:9 [INFO] [stderr] | [INFO] [stderr] 541 | assert_eq!(v.el(0), 1f32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:541:9 [INFO] [stderr] | [INFO] [stderr] 541 | assert_eq!(v.el(0), 1f32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:549:9 [INFO] [stderr] | [INFO] [stderr] 549 | assert_eq!(v.el(0), 2.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:549:9 [INFO] [stderr] | [INFO] [stderr] 549 | assert_eq!(v.el(0), 2.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:550:9 [INFO] [stderr] | [INFO] [stderr] 550 | assert_eq!(v.el(1), 2.1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:550:9 [INFO] [stderr] | [INFO] [stderr] 550 | assert_eq!(v.el(1), 2.1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:558:9 [INFO] [stderr] | [INFO] [stderr] 558 | assert_eq!(v.el(0), 2.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:558:9 [INFO] [stderr] | [INFO] [stderr] 558 | assert_eq!(v.el(0), 2.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:559:9 [INFO] [stderr] | [INFO] [stderr] 559 | assert_eq!(v.el(1), 3.1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:559:9 [INFO] [stderr] | [INFO] [stderr] 559 | assert_eq!(v.el(1), 3.1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> tests/algebra.rs:633:9 [INFO] [stderr] | [INFO] [stderr] 633 | assert_eq!(median, 3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> tests/algebra.rs:633:9 [INFO] [stderr] | [INFO] [stderr] 633 | assert_eq!(median, 3f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 18 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `rsmath`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "f5ca971504cbfeb4b4ae928c3ba5642d8d16d8965066617920423b2da589bcae"` [INFO] running `"docker" "rm" "-f" "f5ca971504cbfeb4b4ae928c3ba5642d8d16d8965066617920423b2da589bcae"` [INFO] [stdout] f5ca971504cbfeb4b4ae928c3ba5642d8d16d8965066617920423b2da589bcae