[INFO] fetching crate fraction 0.15.3... [INFO] linting fraction-0.15.3 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate fraction 0.15.3 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate fraction 0.15.3 [INFO] finished tweaking crates.io crate fraction 0.15.3 [INFO] tweaked toml for crates.io crate fraction 0.15.3 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate fraction 0.15.3 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 194 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.4.0 (available: v0.8.2) [INFO] [stderr] Adding generic-array v0.14.7 (available: v0.14.9) [INFO] [stderr] Adding juniper v0.15.12 (available: v0.17.1) [INFO] [stderr] Adding rand v0.8.5 (available: v0.10.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded graphql-parser v0.3.0 [INFO] [stderr] Downloaded derive_utils v0.11.2 [INFO] [stderr] Downloaded futures-enum v0.1.18 [INFO] [stderr] Downloaded juniper_codegen v0.15.9 [INFO] [stderr] Downloaded bson v1.2.4 [INFO] [stderr] Downloaded juniper v0.15.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8cd8e109a3243259b78bdf77ae14d6b944658c0a3c07b6174f7f224498d93622 [INFO] running `Command { std: "docker" "start" "-a" "8cd8e109a3243259b78bdf77ae14d6b944658c0a3c07b6174f7f224498d93622", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8cd8e109a3243259b78bdf77ae14d6b944658c0a3c07b6174f7f224498d93622", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cd8e109a3243259b78bdf77ae14d6b944658c0a3c07b6174f7f224498d93622", kill_on_drop: false }` [INFO] [stdout] 8cd8e109a3243259b78bdf77ae14d6b944658c0a3c07b6174f7f224498d93622 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b34e9c39981d6629a87d5336ace3938c4bee4c87f2c3ff52e3e5cfdb02d00e0 [INFO] running `Command { std: "docker" "start" "-a" "8b34e9c39981d6629a87d5336ace3938c4bee4c87f2c3ff52e3e5cfdb02d00e0", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking textwrap v0.16.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking fraction v0.15.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/dynaint.rs:890:38 [INFO] [stdout] | [INFO] [stdout] 890 | dyna_impl!(impl_fn_refmath_bool; divides); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/division.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | //! Thus can be efficiently used on any integer type implementing a bunch of required traits (which all primitive ints and num::bigin... [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 5 | //! Thus can be efficiently used on any integer type implementing a bunch of required traits (which all primitive ints and num::bigint implement out of the box). [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/division.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | //! Although in that case the underlying math will be using heap. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 6 | //! Although in that case the underlying math will be using heap. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/generic_fraction.rs:540:6 [INFO] [stdout] | [INFO] [stdout] 540 | impl<'a, T: Clone + Integer> Neg for &'a GenericFraction { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 540 - impl<'a, T: Clone + Integer> Neg for &'a GenericFraction { [INFO] [stdout] 540 + impl Neg for &GenericFraction { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/add.rs:55:6 [INFO] [stdout] | [INFO] [stdout] 55 | impl<'a, T, O> Add for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 55 - impl<'a, T, O> Add for &'a GenericFraction [INFO] [stdout] 55 + impl Add for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/add.rs:105:6 [INFO] [stdout] | [INFO] [stdout] 105 | impl<'a, T> Add for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 105 - impl<'a, T> Add for &'a GenericFraction [INFO] [stdout] 105 + impl Add for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/div.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | impl<'a, T, O> Div for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 56 - impl<'a, T, O> Div for &'a GenericFraction [INFO] [stdout] 56 + impl Div for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/div.rs:106:6 [INFO] [stdout] | [INFO] [stdout] 106 | impl<'a, T> Div for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 106 - impl<'a, T> Div for &'a GenericFraction [INFO] [stdout] 106 + impl Div for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/mul.rs:61:6 [INFO] [stdout] | [INFO] [stdout] 61 | impl<'a, T, O> Mul for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 61 - impl<'a, T, O> Mul for &'a GenericFraction [INFO] [stdout] 61 + impl Mul for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/mul.rs:118:6 [INFO] [stdout] | [INFO] [stdout] 118 | impl<'a, T> Mul for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 118 - impl<'a, T> Mul for &'a GenericFraction [INFO] [stdout] 118 + impl Mul for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/rem.rs:39:6 [INFO] [stdout] | [INFO] [stdout] 39 | impl<'a, T, O> Rem for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 39 - impl<'a, T, O> Rem for &'a GenericFraction [INFO] [stdout] 39 + impl Rem for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/rem.rs:73:6 [INFO] [stdout] | [INFO] [stdout] 73 | impl<'a, T> Rem for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 73 - impl<'a, T> Rem for &'a GenericFraction [INFO] [stdout] 73 + impl Rem for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/sub.rs:53:6 [INFO] [stdout] | [INFO] [stdout] 53 | impl<'a, T, O> Sub for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 53 - impl<'a, T, O> Sub for &'a GenericFraction [INFO] [stdout] 53 + impl Sub for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/sub.rs:101:6 [INFO] [stdout] | [INFO] [stdout] 101 | impl<'a, T> Sub for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 101 - impl<'a, T> Sub for &'a GenericFraction [INFO] [stdout] 101 + impl Sub for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling zerocopy-derive v0.8.42 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking zerocopy v0.8.42 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking criterion v0.4.0 [INFO] [stdout] warning: use of deprecated method `num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/dynaint.rs:890:38 [INFO] [stdout] | [INFO] [stdout] 890 | dyna_impl!(impl_fn_refmath_bool; divides); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/dynaint.rs:1285:26 [INFO] [stdout] | [INFO] [stdout] 1285 | assert!(D::one().divides(&D::one())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/dynaint.rs:1286:27 [INFO] [stdout] | [INFO] [stdout] 1286 | assert!(!D::one().divides(&D::from(257u16))); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/dynaint.rs:1287:33 [INFO] [stdout] | [INFO] [stdout] 1287 | assert!(D::from(257u16).divides(&D::one())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `num::Integer::divides`: Please use is_multiple_of instead [INFO] [stdout] --> src/dynaint.rs:1288:34 [INFO] [stdout] | [INFO] [stdout] 1288 | assert!(!D::from(257u16).divides(&D::from(256u16))); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/division.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | //! Thus can be efficiently used on any integer type implementing a bunch of required traits (which all primitive ints and num::bigin... [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 5 | //! Thus can be efficiently used on any integer type implementing a bunch of required traits (which all primitive ints and num::bigint implement out of the box). [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/division.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | //! Although in that case the underlying math will be using heap. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 6 | //! Although in that case the underlying math will be using heap. [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/division.rs:1141:13 [INFO] [stdout] | [INFO] [stdout] 1141 | assert!(false); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] = note: `#[warn(clippy::assertions_on_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/division.rs:1146:13 [INFO] [stdout] | [INFO] [stdout] 1146 | assert!(false); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/display.rs:461:34 [INFO] [stdout] | [INFO] [stdout] 461 | assert_eq!(format!("{}", ::std::f64::NAN), format!("{}", F32::nan())); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 461 - assert_eq!(format!("{}", ::std::f64::NAN), format!("{}", F32::nan())); [INFO] [stdout] 461 + assert_eq!(format!("{}", f64::NAN), format!("{}", F32::nan())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/display.rs:465:29 [INFO] [stdout] | [INFO] [stdout] 465 | format!("{:+}", ::std::f64::NAN), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 465 - format!("{:+}", ::std::f64::NAN), [INFO] [stdout] 465 + format!("{:+}", f64::NAN), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/display.rs:478:27 [INFO] [stdout] | [INFO] [stdout] 478 | format!("{}", ::std::f64::INFINITY), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 478 - format!("{}", ::std::f64::INFINITY), [INFO] [stdout] 478 + format!("{}", f64::INFINITY), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/display.rs:489:29 [INFO] [stdout] | [INFO] [stdout] 489 | format!("{:+}", ::std::f64::INFINITY), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 489 - format!("{:+}", ::std::f64::INFINITY), [INFO] [stdout] 489 + format!("{:+}", f64::INFINITY), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/display.rs:496:27 [INFO] [stdout] | [INFO] [stdout] 496 | format!("{}", ::std::f64::NEG_INFINITY), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 496 - format!("{}", ::std::f64::NEG_INFINITY), [INFO] [stdout] 496 + format!("{}", f64::NEG_INFINITY), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/display.rs:503:29 [INFO] [stdout] | [INFO] [stdout] 503 | format!("{:+}", ::std::f64::NEG_INFINITY), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 503 - format!("{:+}", ::std::f64::NEG_INFINITY), [INFO] [stdout] 503 + format!("{:+}", f64::NEG_INFINITY), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/display.rs:622:55 [INFO] [stdout] | [INFO] [stdout] 622 | assert_eq!("NaN", format!("{:.64}", F32::from(::std::f32::NAN))); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 622 - assert_eq!("NaN", format!("{:.64}", F32::from(::std::f32::NAN))); [INFO] [stdout] 622 + assert_eq!("NaN", format!("{:.64}", F32::from(f32::NAN))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/display.rs:623:55 [INFO] [stdout] | [INFO] [stdout] 623 | assert_eq!("inf", format!("{:.64}", F32::from(::std::f32::INFINITY))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 623 - assert_eq!("inf", format!("{:.64}", F32::from(::std::f32::INFINITY))); [INFO] [stdout] 623 + assert_eq!("inf", format!("{:.64}", F32::from(f32::INFINITY))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/display.rs:626:41 [INFO] [stdout] | [INFO] [stdout] 626 | format!("{:.64}", F32::from(::std::f32::NEG_INFINITY)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 626 - format!("{:.64}", F32::from(::std::f32::NEG_INFINITY)) [INFO] [stdout] 626 + format!("{:.64}", F32::from(f32::NEG_INFINITY)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/generic_fraction.rs:540:6 [INFO] [stdout] | [INFO] [stdout] 540 | impl<'a, T: Clone + Integer> Neg for &'a GenericFraction { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 540 - impl<'a, T: Clone + Integer> Neg for &'a GenericFraction { [INFO] [stdout] 540 + impl Neg for &GenericFraction { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/fraction/generic_fraction.rs:1354:32 [INFO] [stdout] | [INFO] [stdout] 1354 | let f = Fraction::from(u8::max_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1354 - let f = Fraction::from(u8::max_value()); [INFO] [stdout] 1354 + let f = Fraction::from(u8::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/fraction/generic_fraction.rs:1356:20 [INFO] [stdout] | [INFO] [stdout] 1356 | assert_eq!(u8::max_value() as u64, *f.numer().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1356 - assert_eq!(u8::max_value() as u64, *f.numer().unwrap()); [INFO] [stdout] 1356 + assert_eq!(u8::MAX as u64, *f.numer().unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/fraction/generic_fraction.rs:1575:37 [INFO] [stdout] | [INFO] [stdout] 1575 | BigUint::from_str_radix(&number, 10).ok().unwrap(), [INFO] [stdout] | ^^^^^^^ help: change this to: `number` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/fraction/generic_fraction.rs:1608:26 [INFO] [stdout] | [INFO] [stdout] 1608 | let f = F8::from(u8::max_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1608 - let f = F8::from(u8::max_value()); [INFO] [stdout] 1608 + let f = F8::from(u8::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/fraction/generic_fraction.rs:1610:20 [INFO] [stdout] | [INFO] [stdout] 1610 | assert_eq!(u8::max_value(), *f.numer().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1610 - assert_eq!(u8::max_value(), *f.numer().unwrap()); [INFO] [stdout] 1610 + assert_eq!(u8::MAX, *f.numer().unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1685:17 [INFO] [stdout] | [INFO] [stdout] 1685 | assert!(!(Frac::zero() < Frac::neg_zero())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::zero() >= Frac::neg_zero())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1686:17 [INFO] [stdout] | [INFO] [stdout] 1686 | assert!(!(Frac::neg_zero() < Frac::zero())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::neg_zero() >= Frac::zero())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1688:17 [INFO] [stdout] | [INFO] [stdout] 1688 | assert!(!(Frac::zero() > Frac::neg_zero())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::zero() <= Frac::neg_zero())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1689:17 [INFO] [stdout] | [INFO] [stdout] 1689 | assert!(!(Frac::neg_zero() > Frac::zero())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::neg_zero() <= Frac::zero())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1692:17 [INFO] [stdout] | [INFO] [stdout] 1692 | assert!(!(Frac::neg_zero() > Frac::new(1u8, 2u8))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::neg_zero() <= Frac::new(1u8, 2u8))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1695:17 [INFO] [stdout] | [INFO] [stdout] 1695 | assert!(!(Frac::zero() > Frac::new(1u8, 2u8))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::zero() <= Frac::new(1u8, 2u8))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1700:17 [INFO] [stdout] | [INFO] [stdout] 1700 | assert!(!(Frac::new_neg(1u8, 2u8) > Frac::neg_zero())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::new_neg(1u8, 2u8) <= Frac::neg_zero())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1701:17 [INFO] [stdout] | [INFO] [stdout] 1701 | assert!(!(Frac::new_neg(1u8, 2u8) > Frac::zero())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::new_neg(1u8, 2u8) <= Frac::zero())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1707:17 [INFO] [stdout] | [INFO] [stdout] 1707 | assert!(!(Frac::new(1u8, 2u8) < Frac::new_neg(1u8, 2u8))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::new(1u8, 2u8) >= Frac::new_neg(1u8, 2u8))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1708:17 [INFO] [stdout] | [INFO] [stdout] 1708 | assert!(!(Frac::new_neg(1u8, 2u8) < Frac::new_neg(1u8, 2u8))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::new_neg(1u8, 2u8) >= Frac::new_neg(1u8, 2u8))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1713:17 [INFO] [stdout] | [INFO] [stdout] 1713 | assert!(!(Frac::neg_zero() < Frac::new_neg(1u8, 2u8))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::neg_zero() >= Frac::new_neg(1u8, 2u8))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1714:17 [INFO] [stdout] | [INFO] [stdout] 1714 | assert!(!(Frac::zero() < Frac::new_neg(1u8, 2u8))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::zero() >= Frac::new_neg(1u8, 2u8))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:1719:17 [INFO] [stdout] | [INFO] [stdout] 1719 | assert!(!(Frac::new(1u8, 2u8) < Frac::neg_zero())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::new(1u8, 2u8) >= Frac::neg_zero())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:2185:17 [INFO] [stdout] | [INFO] [stdout] 2185 | assert!(!(Frac::infinity() > Frac::infinity())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::infinity() <= Frac::infinity())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/fraction/generic_fraction.rs:2187:17 [INFO] [stdout] | [INFO] [stdout] 2187 | assert!(!(Frac::neg_infinity() > Frac::infinity())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(Frac::neg_infinity() <= Frac::infinity())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/generic_fraction.rs:2205:13 [INFO] [stdout] | [INFO] [stdout] 2205 | &Frac::new_neg(1, 1) + &Frac::new_neg(1, 1), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] = note: `#[warn(clippy::op_ref)]` on by default [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 2205 - &Frac::new_neg(1, 1) + &Frac::new_neg(1, 1), [INFO] [stdout] 2205 + Frac::new_neg(1, 1) + Frac::new_neg(1, 1), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/generic_fraction.rs:2211:20 [INFO] [stdout] | [INFO] [stdout] 2211 | assert_eq!(&Frac::new_neg(1, 1) - &Frac::new_neg(1, 1), Frac::zero()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 2211 - assert_eq!(&Frac::new_neg(1, 1) - &Frac::new_neg(1, 1), Frac::zero()); [INFO] [stdout] 2211 + assert_eq!(Frac::new_neg(1, 1) - Frac::new_neg(1, 1), Frac::zero()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/generic_fraction.rs:2212:20 [INFO] [stdout] | [INFO] [stdout] 2212 | assert_eq!(&Frac::new_neg(1, 1) - &Frac::new_neg(2, 1), Frac::one()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 2212 - assert_eq!(&Frac::new_neg(1, 1) - &Frac::new_neg(2, 1), Frac::one()); [INFO] [stdout] 2212 + assert_eq!(Frac::new_neg(1, 1) - Frac::new_neg(2, 1), Frac::one()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2361:20 [INFO] [stdout] | [INFO] [stdout] 2361 | assert_eq!(::std::f64::INFINITY, Frac::infinity().to_f64().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2361 - assert_eq!(::std::f64::INFINITY, Frac::infinity().to_f64().unwrap()); [INFO] [stdout] 2361 + assert_eq!(f64::INFINITY, Frac::infinity().to_f64().unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2363:13 [INFO] [stdout] | [INFO] [stdout] 2363 | ::std::f64::NEG_INFINITY, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2363 - ::std::f64::NEG_INFINITY, [INFO] [stdout] 2363 + f64::NEG_INFINITY, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2390:58 [INFO] [stdout] | [INFO] [stdout] 2390 | let f = GenericFraction::<$t>::from(-std::f32::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2390 - let f = GenericFraction::<$t>::from(-std::f32::NAN); [INFO] [stdout] 2390 + let f = GenericFraction::<$t>::from(-f32::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2392:57 [INFO] [stdout] | [INFO] [stdout] 2392 | let f = GenericFraction::<$t>::from(std::f32::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2392 - let f = GenericFraction::<$t>::from(std::f32::NAN); [INFO] [stdout] 2392 + let f = GenericFraction::<$t>::from(f32::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2394:58 [INFO] [stdout] | [INFO] [stdout] 2394 | let f = GenericFraction::<$t>::from(-std::f32::MIN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2394 - let f = GenericFraction::<$t>::from(-std::f32::MIN); [INFO] [stdout] 2394 + let f = GenericFraction::<$t>::from(-f32::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2396:57 [INFO] [stdout] | [INFO] [stdout] 2396 | let f = GenericFraction::<$t>::from(std::f32::MIN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2396 - let f = GenericFraction::<$t>::from(std::f32::MIN); [INFO] [stdout] 2396 + let f = GenericFraction::<$t>::from(f32::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2398:58 [INFO] [stdout] | [INFO] [stdout] 2398 | let f = GenericFraction::<$t>::from(-std::f32::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2398 - let f = GenericFraction::<$t>::from(-std::f32::MAX); [INFO] [stdout] 2398 + let f = GenericFraction::<$t>::from(-f32::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2400:57 [INFO] [stdout] | [INFO] [stdout] 2400 | let f = GenericFraction::<$t>::from(std::f32::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2400 - let f = GenericFraction::<$t>::from(std::f32::MAX); [INFO] [stdout] 2400 + let f = GenericFraction::<$t>::from(f32::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2402:58 [INFO] [stdout] | [INFO] [stdout] 2402 | let f = GenericFraction::<$t>::from(-std::f32::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2402 - let f = GenericFraction::<$t>::from(-std::f32::INFINITY); [INFO] [stdout] 2402 + let f = GenericFraction::<$t>::from(-f32::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2404:57 [INFO] [stdout] | [INFO] [stdout] 2404 | let f = GenericFraction::<$t>::from(std::f32::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2404 - let f = GenericFraction::<$t>::from(std::f32::INFINITY); [INFO] [stdout] 2404 + let f = GenericFraction::<$t>::from(f32::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2415:58 [INFO] [stdout] | [INFO] [stdout] 2415 | let f = GenericFraction::<$t>::from(-std::f64::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2415 - let f = GenericFraction::<$t>::from(-std::f64::NAN); [INFO] [stdout] 2415 + let f = GenericFraction::<$t>::from(-f64::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2417:57 [INFO] [stdout] | [INFO] [stdout] 2417 | let f = GenericFraction::<$t>::from(std::f64::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2417 - let f = GenericFraction::<$t>::from(std::f64::NAN); [INFO] [stdout] 2417 + let f = GenericFraction::<$t>::from(f64::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2419:58 [INFO] [stdout] | [INFO] [stdout] 2419 | let f = GenericFraction::<$t>::from(-std::f64::MIN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2419 - let f = GenericFraction::<$t>::from(-std::f64::MIN); [INFO] [stdout] 2419 + let f = GenericFraction::<$t>::from(-f64::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2421:57 [INFO] [stdout] | [INFO] [stdout] 2421 | let f = GenericFraction::<$t>::from(std::f64::MIN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2421 - let f = GenericFraction::<$t>::from(std::f64::MIN); [INFO] [stdout] 2421 + let f = GenericFraction::<$t>::from(f64::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2423:58 [INFO] [stdout] | [INFO] [stdout] 2423 | let f = GenericFraction::<$t>::from(-std::f64::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2423 - let f = GenericFraction::<$t>::from(-std::f64::MAX); [INFO] [stdout] 2423 + let f = GenericFraction::<$t>::from(-f64::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2425:57 [INFO] [stdout] | [INFO] [stdout] 2425 | let f = GenericFraction::<$t>::from(std::f64::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2425 - let f = GenericFraction::<$t>::from(std::f64::MAX); [INFO] [stdout] 2425 + let f = GenericFraction::<$t>::from(f64::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2427:58 [INFO] [stdout] | [INFO] [stdout] 2427 | let f = GenericFraction::<$t>::from(-std::f64::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2427 - let f = GenericFraction::<$t>::from(-std::f64::INFINITY); [INFO] [stdout] 2427 + let f = GenericFraction::<$t>::from(-f64::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2429:57 [INFO] [stdout] | [INFO] [stdout] 2429 | let f = GenericFraction::<$t>::from(std::f64::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2572 | test_for_smaller_t!(u8, i8, u16, i16); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_smaller_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2429 - let f = GenericFraction::<$t>::from(std::f64::INFINITY); [INFO] [stdout] 2429 + let f = GenericFraction::<$t>::from(f64::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2457:58 [INFO] [stdout] | [INFO] [stdout] 2457 | let f = GenericFraction::<$t>::from(-std::f32::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2457 - let f = GenericFraction::<$t>::from(-std::f32::NAN); [INFO] [stdout] 2457 + let f = GenericFraction::<$t>::from(-f32::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2459:57 [INFO] [stdout] | [INFO] [stdout] 2459 | let f = GenericFraction::<$t>::from(std::f32::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2459 - let f = GenericFraction::<$t>::from(std::f32::NAN); [INFO] [stdout] 2459 + let f = GenericFraction::<$t>::from(f32::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2461:58 [INFO] [stdout] | [INFO] [stdout] 2461 | let f = GenericFraction::<$t>::from(-std::f32::MIN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2461 - let f = GenericFraction::<$t>::from(-std::f32::MIN); [INFO] [stdout] 2461 + let f = GenericFraction::<$t>::from(-f32::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2463:57 [INFO] [stdout] | [INFO] [stdout] 2463 | let f = GenericFraction::<$t>::from(std::f32::MIN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2463 - let f = GenericFraction::<$t>::from(std::f32::MIN); [INFO] [stdout] 2463 + let f = GenericFraction::<$t>::from(f32::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2465:58 [INFO] [stdout] | [INFO] [stdout] 2465 | let f = GenericFraction::<$t>::from(-std::f32::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2465 - let f = GenericFraction::<$t>::from(-std::f32::MAX); [INFO] [stdout] 2465 + let f = GenericFraction::<$t>::from(-f32::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2467:57 [INFO] [stdout] | [INFO] [stdout] 2467 | let f = GenericFraction::<$t>::from(std::f32::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2467 - let f = GenericFraction::<$t>::from(std::f32::MAX); [INFO] [stdout] 2467 + let f = GenericFraction::<$t>::from(f32::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2469:58 [INFO] [stdout] | [INFO] [stdout] 2469 | let f = GenericFraction::<$t>::from(-std::f32::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2469 - let f = GenericFraction::<$t>::from(-std::f32::INFINITY); [INFO] [stdout] 2469 + let f = GenericFraction::<$t>::from(-f32::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2471:57 [INFO] [stdout] | [INFO] [stdout] 2471 | let f = GenericFraction::<$t>::from(std::f32::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2471 - let f = GenericFraction::<$t>::from(std::f32::INFINITY); [INFO] [stdout] 2471 + let f = GenericFraction::<$t>::from(f32::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2482:58 [INFO] [stdout] | [INFO] [stdout] 2482 | let f = GenericFraction::<$t>::from(-std::f64::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2482 - let f = GenericFraction::<$t>::from(-std::f64::NAN); [INFO] [stdout] 2482 + let f = GenericFraction::<$t>::from(-f64::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2484:57 [INFO] [stdout] | [INFO] [stdout] 2484 | let f = GenericFraction::<$t>::from(std::f64::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2484 - let f = GenericFraction::<$t>::from(std::f64::NAN); [INFO] [stdout] 2484 + let f = GenericFraction::<$t>::from(f64::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2486:58 [INFO] [stdout] | [INFO] [stdout] 2486 | let f = GenericFraction::<$t>::from(-std::f64::MIN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2486 - let f = GenericFraction::<$t>::from(-std::f64::MIN); [INFO] [stdout] 2486 + let f = GenericFraction::<$t>::from(-f64::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2488:57 [INFO] [stdout] | [INFO] [stdout] 2488 | let f = GenericFraction::<$t>::from(std::f64::MIN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2488 - let f = GenericFraction::<$t>::from(std::f64::MIN); [INFO] [stdout] 2488 + let f = GenericFraction::<$t>::from(f64::MIN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2490:58 [INFO] [stdout] | [INFO] [stdout] 2490 | let f = GenericFraction::<$t>::from(-std::f64::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2490 - let f = GenericFraction::<$t>::from(-std::f64::MAX); [INFO] [stdout] 2490 + let f = GenericFraction::<$t>::from(-f64::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2492:57 [INFO] [stdout] | [INFO] [stdout] 2492 | let f = GenericFraction::<$t>::from(std::f64::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2492 - let f = GenericFraction::<$t>::from(std::f64::MAX); [INFO] [stdout] 2492 + let f = GenericFraction::<$t>::from(f64::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2494:58 [INFO] [stdout] | [INFO] [stdout] 2494 | let f = GenericFraction::<$t>::from(-std::f64::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2494 - let f = GenericFraction::<$t>::from(-std::f64::INFINITY); [INFO] [stdout] 2494 + let f = GenericFraction::<$t>::from(-f64::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2496:57 [INFO] [stdout] | [INFO] [stdout] 2496 | let f = GenericFraction::<$t>::from(std::f64::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2573 | test_for_larger_t!(u32, i32, u64, i64, usize, isize); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_larger_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2496 - let f = GenericFraction::<$t>::from(std::f64::INFINITY); [INFO] [stdout] 2496 + let f = GenericFraction::<$t>::from(f64::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2524:58 [INFO] [stdout] | [INFO] [stdout] 2524 | let f = GenericFraction::<$t>::from(-std::f32::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2574 | test_for_big_t!(u128, i128); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2524 - let f = GenericFraction::<$t>::from(-std::f32::NAN); [INFO] [stdout] 2524 + let f = GenericFraction::<$t>::from(-f32::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2526:57 [INFO] [stdout] | [INFO] [stdout] 2526 | let f = GenericFraction::<$t>::from(std::f32::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2574 | test_for_big_t!(u128, i128); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2526 - let f = GenericFraction::<$t>::from(std::f32::NAN); [INFO] [stdout] 2526 + let f = GenericFraction::<$t>::from(f32::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2528:58 [INFO] [stdout] | [INFO] [stdout] 2528 | let f = GenericFraction::<$t>::from(-std::f32::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2574 | test_for_big_t!(u128, i128); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2528 - let f = GenericFraction::<$t>::from(-std::f32::INFINITY); [INFO] [stdout] 2528 + let f = GenericFraction::<$t>::from(-f32::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2530:57 [INFO] [stdout] | [INFO] [stdout] 2530 | let f = GenericFraction::<$t>::from(std::f32::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2574 | test_for_big_t!(u128, i128); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2530 - let f = GenericFraction::<$t>::from(std::f32::INFINITY); [INFO] [stdout] 2530 + let f = GenericFraction::<$t>::from(f32::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2541:58 [INFO] [stdout] | [INFO] [stdout] 2541 | let f = GenericFraction::<$t>::from(-std::f64::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2574 | test_for_big_t!(u128, i128); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2541 - let f = GenericFraction::<$t>::from(-std::f64::NAN); [INFO] [stdout] 2541 + let f = GenericFraction::<$t>::from(-f64::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2543:57 [INFO] [stdout] | [INFO] [stdout] 2543 | let f = GenericFraction::<$t>::from(std::f64::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2574 | test_for_big_t!(u128, i128); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2543 - let f = GenericFraction::<$t>::from(std::f64::NAN); [INFO] [stdout] 2543 + let f = GenericFraction::<$t>::from(f64::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2545:58 [INFO] [stdout] | [INFO] [stdout] 2545 | let f = GenericFraction::<$t>::from(-std::f64::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2574 | test_for_big_t!(u128, i128); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2545 - let f = GenericFraction::<$t>::from(-std::f64::INFINITY); [INFO] [stdout] 2545 + let f = GenericFraction::<$t>::from(-f64::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2547:57 [INFO] [stdout] | [INFO] [stdout] 2547 | let f = GenericFraction::<$t>::from(std::f64::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2574 | test_for_big_t!(u128, i128); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2547 - let f = GenericFraction::<$t>::from(std::f64::INFINITY); [INFO] [stdout] 2547 + let f = GenericFraction::<$t>::from(f64::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2524:58 [INFO] [stdout] | [INFO] [stdout] 2524 | let f = GenericFraction::<$t>::from(-std::f32::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2579 | test_for_big_t!(BigUint, BigInt); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2524 - let f = GenericFraction::<$t>::from(-std::f32::NAN); [INFO] [stdout] 2524 + let f = GenericFraction::<$t>::from(-f32::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2526:57 [INFO] [stdout] | [INFO] [stdout] 2526 | let f = GenericFraction::<$t>::from(std::f32::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2579 | test_for_big_t!(BigUint, BigInt); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2526 - let f = GenericFraction::<$t>::from(std::f32::NAN); [INFO] [stdout] 2526 + let f = GenericFraction::<$t>::from(f32::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2528:58 [INFO] [stdout] | [INFO] [stdout] 2528 | let f = GenericFraction::<$t>::from(-std::f32::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2579 | test_for_big_t!(BigUint, BigInt); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2528 - let f = GenericFraction::<$t>::from(-std::f32::INFINITY); [INFO] [stdout] 2528 + let f = GenericFraction::<$t>::from(-f32::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2530:57 [INFO] [stdout] | [INFO] [stdout] 2530 | let f = GenericFraction::<$t>::from(std::f32::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2579 | test_for_big_t!(BigUint, BigInt); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2530 - let f = GenericFraction::<$t>::from(std::f32::INFINITY); [INFO] [stdout] 2530 + let f = GenericFraction::<$t>::from(f32::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2541:58 [INFO] [stdout] | [INFO] [stdout] 2541 | let f = GenericFraction::<$t>::from(-std::f64::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2579 | test_for_big_t!(BigUint, BigInt); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2541 - let f = GenericFraction::<$t>::from(-std::f64::NAN); [INFO] [stdout] 2541 + let f = GenericFraction::<$t>::from(-f64::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2543:57 [INFO] [stdout] | [INFO] [stdout] 2543 | let f = GenericFraction::<$t>::from(std::f64::NAN); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2579 | test_for_big_t!(BigUint, BigInt); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2543 - let f = GenericFraction::<$t>::from(std::f64::NAN); [INFO] [stdout] 2543 + let f = GenericFraction::<$t>::from(f64::NAN); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2545:58 [INFO] [stdout] | [INFO] [stdout] 2545 | let f = GenericFraction::<$t>::from(-std::f64::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2579 | test_for_big_t!(BigUint, BigInt); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2545 - let f = GenericFraction::<$t>::from(-std::f64::INFINITY); [INFO] [stdout] 2545 + let f = GenericFraction::<$t>::from(-f64::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/fraction/generic_fraction.rs:2547:57 [INFO] [stdout] | [INFO] [stdout] 2547 | let f = GenericFraction::<$t>::from(std::f64::INFINITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2579 | test_for_big_t!(BigUint, BigInt); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: this warning originates in the macro `test_for_big_t` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 2547 - let f = GenericFraction::<$t>::from(std::f64::INFINITY); [INFO] [stdout] 2547 + let f = GenericFraction::<$t>::from(f64::INFINITY); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/add.rs:55:6 [INFO] [stdout] | [INFO] [stdout] 55 | impl<'a, T, O> Add for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 55 - impl<'a, T, O> Add for &'a GenericFraction [INFO] [stdout] 55 + impl Add for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/add.rs:105:6 [INFO] [stdout] | [INFO] [stdout] 105 | impl<'a, T> Add for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 105 - impl<'a, T> Add for &'a GenericFraction [INFO] [stdout] 105 + impl Add for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of left operand [INFO] [stdout] --> src/fraction/ops/add.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | assert_eq!(&F::zero() + F::from(1), F::from(1)); [INFO] [stdout] | ----------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: use the left value directly: `F::zero()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of left operand [INFO] [stdout] --> src/fraction/ops/add.rs:171:20 [INFO] [stdout] | [INFO] [stdout] 171 | assert_eq!(&F::zero() + F::from(1.5), F::from(1.5)); [INFO] [stdout] | ----------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: use the left value directly: `F::zero()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/div.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | impl<'a, T, O> Div for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 56 - impl<'a, T, O> Div for &'a GenericFraction [INFO] [stdout] 56 + impl Div for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/div.rs:106:6 [INFO] [stdout] | [INFO] [stdout] 106 | impl<'a, T> Div for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 106 - impl<'a, T> Div for &'a GenericFraction [INFO] [stdout] 106 + impl Div for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/ops/div.rs:172:20 [INFO] [stdout] | [INFO] [stdout] 172 | assert_eq!(&F::from(3) / &F::from(2), F::from(1.5)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 172 - assert_eq!(&F::from(3) / &F::from(2), F::from(1.5)); [INFO] [stdout] 172 + assert_eq!(F::from(3) / F::from(2), F::from(1.5)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/ops/div.rs:173:20 [INFO] [stdout] | [INFO] [stdout] 173 | assert_eq!(&F::from(3) / &F::from(1.5), F::from(2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 173 - assert_eq!(&F::from(3) / &F::from(1.5), F::from(2)); [INFO] [stdout] 173 + assert_eq!(F::from(3) / F::from(1.5), F::from(2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/mul.rs:61:6 [INFO] [stdout] | [INFO] [stdout] 61 | impl<'a, T, O> Mul for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 61 - impl<'a, T, O> Mul for &'a GenericFraction [INFO] [stdout] 61 + impl Mul for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/mul.rs:118:6 [INFO] [stdout] | [INFO] [stdout] 118 | impl<'a, T> Mul for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 118 - impl<'a, T> Mul for &'a GenericFraction [INFO] [stdout] 118 + impl Mul for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/ops/mul.rs:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | assert_eq!(&F::from(1.5) * &F::from(2), F::from(3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 189 - assert_eq!(&F::from(1.5) * &F::from(2), F::from(3)); [INFO] [stdout] 189 + assert_eq!(F::from(1.5) * F::from(2), F::from(3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/ops/mul.rs:190:20 [INFO] [stdout] | [INFO] [stdout] 190 | assert_eq!(&F::from(2) * &F::from(1.5), F::from(3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 190 - assert_eq!(&F::from(2) * &F::from(1.5), F::from(3)); [INFO] [stdout] 190 + assert_eq!(F::from(2) * F::from(1.5), F::from(3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/rem.rs:39:6 [INFO] [stdout] | [INFO] [stdout] 39 | impl<'a, T, O> Rem for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 39 - impl<'a, T, O> Rem for &'a GenericFraction [INFO] [stdout] 39 + impl Rem for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/rem.rs:73:6 [INFO] [stdout] | [INFO] [stdout] 73 | impl<'a, T> Rem for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 73 - impl<'a, T> Rem for &'a GenericFraction [INFO] [stdout] 73 + impl Rem for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/ops/rem.rs:121:20 [INFO] [stdout] | [INFO] [stdout] 121 | assert_eq!(&F::from(3) % &F::from(2), F::from(1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 121 - assert_eq!(&F::from(3) % &F::from(2), F::from(1)); [INFO] [stdout] 121 + assert_eq!(F::from(3) % F::from(2), F::from(1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/ops/rem.rs:122:20 [INFO] [stdout] | [INFO] [stdout] 122 | assert_eq!(&F::from(3) % &F::from(1.5), F::from(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 122 - assert_eq!(&F::from(3) % &F::from(1.5), F::from(0)); [INFO] [stdout] 122 + assert_eq!(F::from(3) % F::from(1.5), F::from(0)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/sub.rs:53:6 [INFO] [stdout] | [INFO] [stdout] 53 | impl<'a, T, O> Sub for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 53 - impl<'a, T, O> Sub for &'a GenericFraction [INFO] [stdout] 53 + impl Sub for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/fraction/ops/sub.rs:101:6 [INFO] [stdout] | [INFO] [stdout] 101 | impl<'a, T> Sub for &'a GenericFraction [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 101 - impl<'a, T> Sub for &'a GenericFraction [INFO] [stdout] 101 + impl Sub for &GenericFraction [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/ops/sub.rs:164:20 [INFO] [stdout] | [INFO] [stdout] 164 | assert_eq!(&F::one() - &F::from(1), F::zero()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 164 - assert_eq!(&F::one() - &F::from(1), F::zero()); [INFO] [stdout] 164 + assert_eq!(F::one() - F::from(1), F::zero()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/fraction/ops/sub.rs:165:20 [INFO] [stdout] | [INFO] [stdout] 165 | assert_eq!(&F::one() - &F::from(0.5), F::from(0.5)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 165 - assert_eq!(&F::one() - &F::from(0.5), F::from(0.5)); [INFO] [stdout] 165 + assert_eq!(F::one() - F::from(0.5), F::from(0.5)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:540:20 [INFO] [stdout] | [INFO] [stdout] 540 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:541:20 [INFO] [stdout] | [INFO] [stdout] 541 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 542 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:543:20 [INFO] [stdout] | [INFO] [stdout] 543 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:544:20 [INFO] [stdout] | [INFO] [stdout] 544 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:545:20 [INFO] [stdout] | [INFO] [stdout] 545 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:614:20 [INFO] [stdout] | [INFO] [stdout] 614 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:615:20 [INFO] [stdout] | [INFO] [stdout] 615 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:616:20 [INFO] [stdout] | [INFO] [stdout] 616 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:617:20 [INFO] [stdout] | [INFO] [stdout] 617 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:618:20 [INFO] [stdout] | [INFO] [stdout] 618 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericFraction` which implements the `Copy` trait [INFO] [stdout] --> src/fraction/try_from.rs:619:20 [INFO] [stdout] | [INFO] [stdout] 619 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/generic.rs:346:55 [INFO] [stdout] | [INFO] [stdout] 346 | let (s, v) = read_generic_integer::(u32::max_value()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 346 - let (s, v) = read_generic_integer::(u32::max_value()).unwrap(); [INFO] [stdout] 346 + let (s, v) = read_generic_integer::(u32::MAX).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/generic.rs:348:23 [INFO] [stdout] | [INFO] [stdout] 348 | assert_eq!(v, u32::max_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 348 - assert_eq!(v, u32::max_value()); [INFO] [stdout] 348 + assert_eq!(v, u32::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of left operand [INFO] [stdout] --> src/decimal/ops/add.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!(&F::zero() + F::from(1), F::from(1)); [INFO] [stdout] | ----------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: use the left value directly: `F::zero()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of left operand [INFO] [stdout] --> src/decimal/ops/add.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | assert_eq!(&F::zero() + F::from(1.5), F::from(1.5)); [INFO] [stdout] | ----------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: use the left value directly: `F::zero()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/decimal/ops/div.rs:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(&F::from(3) / &F::from(2), F::from(1.5)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 78 - assert_eq!(&F::from(3) / &F::from(2), F::from(1.5)); [INFO] [stdout] 78 + assert_eq!(F::from(3) / F::from(2), F::from(1.5)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/decimal/ops/div.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | assert_eq!(&F::from(3) / &F::from(1.5), F::from(2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 79 - assert_eq!(&F::from(3) / &F::from(1.5), F::from(2)); [INFO] [stdout] 79 + assert_eq!(F::from(3) / F::from(1.5), F::from(2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/decimal/ops/mul.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | assert_eq!(&F::from(1.5) * &F::from(2), F::from(3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 79 - assert_eq!(&F::from(1.5) * &F::from(2), F::from(3)); [INFO] [stdout] 79 + assert_eq!(F::from(1.5) * F::from(2), F::from(3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/decimal/ops/mul.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!(&F::from(2) * &F::from(1.5), F::from(3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 80 - assert_eq!(&F::from(2) * &F::from(1.5), F::from(3)); [INFO] [stdout] 80 + assert_eq!(F::from(2) * F::from(1.5), F::from(3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/decimal/ops/rem.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | assert_eq!(&F::from(3) % &F::from(2), F::from(1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 79 - assert_eq!(&F::from(3) % &F::from(2), F::from(1)); [INFO] [stdout] 79 + assert_eq!(F::from(3) % F::from(2), F::from(1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/decimal/ops/rem.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!(&F::from(3) % &F::from(1.5), F::from(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 80 - assert_eq!(&F::from(3) % &F::from(1.5), F::from(0)); [INFO] [stdout] 80 + assert_eq!(F::from(3) % F::from(1.5), F::from(0)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/decimal/ops/sub.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | assert_eq!(&F::one() - &F::from(1), F::zero()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 79 - assert_eq!(&F::one() - &F::from(1), F::zero()); [INFO] [stdout] 79 + assert_eq!(F::one() - F::from(1), F::zero()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/decimal/ops/sub.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!(&F::one() - &F::from(0.5), F::from(0.5)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 80 - assert_eq!(&F::one() - &F::from(0.5), F::from(0.5)); [INFO] [stdout] 80 + assert_eq!(F::one() - F::from(0.5), F::from(0.5)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:512:20 [INFO] [stdout] | [INFO] [stdout] 512 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:513:20 [INFO] [stdout] | [INFO] [stdout] 513 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:514:20 [INFO] [stdout] | [INFO] [stdout] 514 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:515:20 [INFO] [stdout] | [INFO] [stdout] 515 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:516:20 [INFO] [stdout] | [INFO] [stdout] 516 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:517:20 [INFO] [stdout] | [INFO] [stdout] 517 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:586:20 [INFO] [stdout] | [INFO] [stdout] 586 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:587:20 [INFO] [stdout] | [INFO] [stdout] 587 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:588:20 [INFO] [stdout] | [INFO] [stdout] 588 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:589:20 [INFO] [stdout] | [INFO] [stdout] 589 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:590:20 [INFO] [stdout] | [INFO] [stdout] 590 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `GenericDecimal` which implements the `Copy` trait [INFO] [stdout] --> src/decimal/try_from.rs:591:20 [INFO] [stdout] | [INFO] [stdout] 591 | assert_eq!(nan.clone().try_into() as Result, Err(())); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `nan` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/dynaint.rs:946:18 [INFO] [stdout] | [INFO] [stdout] 946 | let m8 = u8::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 946 - let m8 = u8::max_value(); [INFO] [stdout] 946 + let m8 = u8::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `DynaInt` which implements the `Copy` trait [INFO] [stdout] --> src/dynaint.rs:950:24 [INFO] [stdout] | [INFO] [stdout] 950 | assert_eq!(m8, val.clone().unpack().ok().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `val` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `DynaInt` which implements the `Copy` trait [INFO] [stdout] --> src/dynaint.rs:954:24 [INFO] [stdout] | [INFO] [stdout] 954 | assert_eq!(m8, val.clone().unpack().ok().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `val` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `DynaInt` which implements the `Copy` trait [INFO] [stdout] --> src/dynaint.rs:958:39 [INFO] [stdout] | [INFO] [stdout] 958 | assert_eq!(u16::from(m8) + 1, val.clone().unpack().err().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `val` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `DynaInt` which implements the `Copy` trait [INFO] [stdout] --> src/dynaint.rs:962:39 [INFO] [stdout] | [INFO] [stdout] 962 | assert_eq!(u16::from(m8) + 2, val.clone().unpack().err().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `val` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `DynaInt` which implements the `Copy` trait [INFO] [stdout] --> src/dynaint.rs:966:24 [INFO] [stdout] | [INFO] [stdout] 966 | assert_eq!(m8, val.clone().unpack().ok().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ help: try removing the `clone` call: `val` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taken reference of right operand [INFO] [stdout] --> src/dynaint.rs:1057:25 [INFO] [stdout] | [INFO] [stdout] 1057 | assert_eq!(2u8, (D::one() + &D::one()).unpack().ok().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | help: use the right value directly: `D::one()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taken reference of right operand [INFO] [stdout] --> src/dynaint.rs:1060:28 [INFO] [stdout] | [INFO] [stdout] 1060 | assert_eq!(256u16, (D::one() + &D::from(255u8)).unpack().err().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^---------------^ [INFO] [stdout] | | [INFO] [stdout] | help: use the right value directly: `D::from(255u8)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taken reference of right operand [INFO] [stdout] --> src/dynaint.rs:1063:13 [INFO] [stdout] | [INFO] [stdout] 1063 | (D::one() + &D::from(256u16)).unpack().err().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^----------------^ [INFO] [stdout] | | [INFO] [stdout] | help: use the right value directly: `D::from(256u16)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1067:13 [INFO] [stdout] | [INFO] [stdout] 1067 | (&D::one() + &D::from(256u16)).unpack().err().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1067 - (&D::one() + &D::from(256u16)).unpack().err().unwrap() [INFO] [stdout] 1067 + (D::one() + D::from(256u16)).unpack().err().unwrap() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taken reference of right operand [INFO] [stdout] --> src/dynaint.rs:1073:13 [INFO] [stdout] | [INFO] [stdout] 1073 | (D::from(256u16) + &D::one()).unpack().err().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | help: use the right value directly: `D::one()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1077:13 [INFO] [stdout] | [INFO] [stdout] 1077 | (&D::from(256u16) + &D::one()).unpack().err().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1077 - (&D::from(256u16) + &D::one()).unpack().err().unwrap() [INFO] [stdout] 1077 + (D::from(256u16) + D::one()).unpack().err().unwrap() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taken reference of right operand [INFO] [stdout] --> src/dynaint.rs:1086:13 [INFO] [stdout] | [INFO] [stdout] 1086 | (D::from(256u16) + &D::from(256u16)).unpack().err().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^----------------^ [INFO] [stdout] | | [INFO] [stdout] | help: use the right value directly: `D::from(256u16)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1090:13 [INFO] [stdout] | [INFO] [stdout] 1090 | (&D::from(256u16) + &D::from(256u16)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1090 - (&D::from(256u16) + &D::from(256u16)) [INFO] [stdout] 1090 + (D::from(256u16) + D::from(256u16)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1100:30 [INFO] [stdout] | [INFO] [stdout] 1100 | assert_eq!(D::one(), &D::one() & &D::one()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1100 - assert_eq!(D::one(), &D::one() & &D::one()); [INFO] [stdout] 1100 + assert_eq!(D::one(), D::one() & D::one()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1103:31 [INFO] [stdout] | [INFO] [stdout] 1103 | assert_eq!(D::zero(), &D::one() & &D::from(256u16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1103 - assert_eq!(D::zero(), &D::one() & &D::from(256u16)); [INFO] [stdout] 1103 + assert_eq!(D::zero(), D::one() & D::from(256u16)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1106:31 [INFO] [stdout] | [INFO] [stdout] 1106 | assert_eq!(D::zero(), &D::from(256u16) & &D::one()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1106 - assert_eq!(D::zero(), &D::from(256u16) & &D::one()); [INFO] [stdout] 1106 + assert_eq!(D::zero(), D::from(256u16) & D::one()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1109:37 [INFO] [stdout] | [INFO] [stdout] 1109 | assert_eq!(D::from(256u16), &D::from(256u16) & &D::from(257u16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1109 - assert_eq!(D::from(256u16), &D::from(256u16) & &D::from(257u16)); [INFO] [stdout] 1109 + assert_eq!(D::from(256u16), D::from(256u16) & D::from(257u16)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taken reference of right operand [INFO] [stdout] --> src/dynaint.rs:1163:30 [INFO] [stdout] | [INFO] [stdout] 1163 | assert_eq!(D::one(), D::from(3u8) % &D::from(2u8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^------------- [INFO] [stdout] | | [INFO] [stdout] | help: use the right value directly: `D::from(2u8)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1164:30 [INFO] [stdout] | [INFO] [stdout] 1164 | assert_eq!(D::one(), &D::from(3u8) % &D::from(2u8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1164 - assert_eq!(D::one(), &D::from(3u8) % &D::from(2u8)); [INFO] [stdout] 1164 + assert_eq!(D::one(), D::from(3u8) % D::from(2u8)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taken reference of right operand [INFO] [stdout] --> src/dynaint.rs:1179:30 [INFO] [stdout] | [INFO] [stdout] 1179 | assert_eq!(D::one(), D::one() % &D::from(256u16)); [INFO] [stdout] | ^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | help: use the right value directly: `D::from(256u16)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1180:30 [INFO] [stdout] | [INFO] [stdout] 1180 | assert_eq!(D::one(), &D::one() % &D::from(256u16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1180 - assert_eq!(D::one(), &D::one() % &D::from(256u16)); [INFO] [stdout] 1180 + assert_eq!(D::one(), D::one() % D::from(256u16)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taken reference of right operand [INFO] [stdout] --> src/dynaint.rs:1195:31 [INFO] [stdout] | [INFO] [stdout] 1195 | assert_eq!(D::zero(), D::from(256u16) % &D::one()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | help: use the right value directly: `D::one()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1196:31 [INFO] [stdout] | [INFO] [stdout] 1196 | assert_eq!(D::zero(), &D::from(256u16) % &D::one()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1196 - assert_eq!(D::zero(), &D::from(256u16) % &D::one()); [INFO] [stdout] 1196 + assert_eq!(D::zero(), D::from(256u16) % D::one()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taken reference of right operand [INFO] [stdout] --> src/dynaint.rs:1211:31 [INFO] [stdout] | [INFO] [stdout] 1211 | assert_eq!(D::zero(), D::from(256u16) % &D::from(256u16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | help: use the right value directly: `D::from(256u16)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/dynaint.rs:1212:31 [INFO] [stdout] | [INFO] [stdout] 1212 | assert_eq!(D::zero(), &D::from(256u16) % &D::from(256u16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 1212 - assert_eq!(D::zero(), &D::from(256u16) % &D::from(256u16)); [INFO] [stdout] 1212 + assert_eq!(D::zero(), D::from(256u16) % D::from(256u16)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/dynaint.rs:1245:34 [INFO] [stdout] | [INFO] [stdout] 1245 | assert_eq!(None, D::from(u16::max_value()).checked_add(&D::one())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1245 - assert_eq!(None, D::from(u16::max_value()).checked_add(&D::one())); [INFO] [stdout] 1245 + assert_eq!(None, D::from(u16::MAX).checked_add(&D::one())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/dynaint.rs:1246:56 [INFO] [stdout] | [INFO] [stdout] 1246 | assert_eq!(None, D::one().checked_add(&D::from(u16::max_value()))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 1246 - assert_eq!(None, D::one().checked_add(&D::from(u16::max_value()))); [INFO] [stdout] 1246 + assert_eq!(None, D::one().checked_add(&D::from(u16::MAX))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/fraction/generic_fraction.rs:2372:22 [INFO] [stdout] | [INFO] [stdout] 2372 | let values = vec![Fraction::new(2u64, 3u64), Fraction::new(1u64, 3u64)]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[Fraction::new(2u64, 3u64), Fraction::new(1u64, 3u64)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/fraction/generic_fraction.rs:2379:22 [INFO] [stdout] | [INFO] [stdout] 2379 | let values = vec![Fraction::new(2u64, 3u64), Fraction::new(1u64, 3u64)]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[Fraction::new(2u64, 3u64), Fraction::new(1u64, 3u64)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/decimal/mod.rs:1094:22 [INFO] [stdout] | [INFO] [stdout] 1094 | let values = vec![Decimal::from(152.568), Decimal::from(328.76842)]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[Decimal::from(152.568), Decimal::from(328.76842)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/decimal/mod.rs:1101:22 [INFO] [stdout] | [INFO] [stdout] 1101 | let values = vec![Decimal::from(152.568), Decimal::from(328.76842)]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[Decimal::from(152.568), Decimal::from(328.76842)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.51s [INFO] running `Command { std: "docker" "inspect" "8b34e9c39981d6629a87d5336ace3938c4bee4c87f2c3ff52e3e5cfdb02d00e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b34e9c39981d6629a87d5336ace3938c4bee4c87f2c3ff52e3e5cfdb02d00e0", kill_on_drop: false }` [INFO] [stdout] 8b34e9c39981d6629a87d5336ace3938c4bee4c87f2c3ff52e3e5cfdb02d00e0