[INFO] crate binn-ir 0.9.0 is already in cache [INFO] extracting crate binn-ir 0.9.0 into work/ex/clippy-test-run/sources/stable/reg/binn-ir/0.9.0 [INFO] extracting crate binn-ir 0.9.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/binn-ir/0.9.0 [INFO] validating manifest of binn-ir-0.9.0 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of binn-ir-0.9.0 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing binn-ir-0.9.0 [INFO] finished frobbing binn-ir-0.9.0 [INFO] frobbed toml for binn-ir-0.9.0 written to work/ex/clippy-test-run/sources/stable/reg/binn-ir/0.9.0/Cargo.toml [INFO] started frobbing binn-ir-0.9.0 [INFO] finished frobbing binn-ir-0.9.0 [INFO] frobbed toml for binn-ir-0.9.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/binn-ir/0.9.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting binn-ir-0.9.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-1/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/binn-ir/0.9.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] ab168d5627d93747085902712dfe18ba30ac0ffe3b9063a56978931845600ac9 [INFO] running `"docker" "start" "-a" "ab168d5627d93747085902712dfe18ba30ac0ffe3b9063a56978931845600ac9"` [INFO] [stderr] Checking binn-ir v0.9.0 (/opt/crater/workdir) [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:438:18 [INFO] [stderr] | [INFO] [stderr] 438 | pub const NAME: &'static str = "Binn-IR"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:441:23 [INFO] [stderr] | [INFO] [stderr] 441 | pub const CODE_NAME: &'static str = code_name!(); [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:444:21 [INFO] [stderr] | [INFO] [stderr] 444 | pub const VERSION: &'static str = version!(); [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:450:18 [INFO] [stderr] | [INFO] [stderr] 450 | pub const UUID: &'static str = "acea8479-f233-4686-af1c-fe198f506ddb"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:453:17 [INFO] [stderr] | [INFO] [stderr] 453 | pub const TAG: &'static str = concat!(code_name!(), "::149dc8a5::", version!()); [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/int_ordering.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | pub const UUID: &'static str = "d895be5b-7831-4a1e-9ea3-53d1c315ab82"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/int_ordering.rs:11:21 [INFO] [stderr] | [INFO] [stderr] 11 | pub const VERSION: &'static str = "0.2.0"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:438:18 [INFO] [stderr] | [INFO] [stderr] 438 | pub const NAME: &'static str = "Binn-IR"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:441:23 [INFO] [stderr] | [INFO] [stderr] 441 | pub const CODE_NAME: &'static str = code_name!(); [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:444:21 [INFO] [stderr] | [INFO] [stderr] 444 | pub const VERSION: &'static str = version!(); [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:450:18 [INFO] [stderr] | [INFO] [stderr] 450 | pub const UUID: &'static str = "acea8479-f233-4686-af1c-fe198f506ddb"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:453:17 [INFO] [stderr] | [INFO] [stderr] 453 | pub const TAG: &'static str = concat!(code_name!(), "::149dc8a5::", version!()); [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/int_ordering.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | pub const UUID: &'static str = "d895be5b-7831-4a1e-9ea3-53d1c315ab82"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/int_ordering.rs:11:21 [INFO] [stderr] | [INFO] [stderr] 11 | pub const VERSION: &'static str = "0.2.0"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/value.rs:846:33 [INFO] [stderr] | [INFO] [stderr] 846 | assert_eq!(as_bytes!(i64, (-3372036854775808 as i64).to_be()), [0xFF, 0xF4, 0x05, 0x26, 0x7D, 0x1A, 0x00, 0x00]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: consider: `3_372_036_854_775_808` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | i8, u8, u8, [INFO] [stderr] 48 | i8, u16, u16, [INFO] [stderr] 49 | i8, u32, u32, [INFO] [stderr] 50 | i8, u64, u64, [INFO] [stderr] 51 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | i8, u8, u8, [INFO] [stderr] 58 | i8, u16, u16, [INFO] [stderr] 59 | i8, u32, u32, [INFO] [stderr] 60 | i8, u64, u64, [INFO] [stderr] 61 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | i8, u8, u8, [INFO] [stderr] 48 | i8, u16, u16, [INFO] [stderr] 49 | i8, u32, u32, [INFO] [stderr] 50 | i8, u64, u64, [INFO] [stderr] 51 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 99 | / impl_signed_unsigned! { [INFO] [stderr] 100 | | isize, usize, usize, [INFO] [stderr] 101 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | isize, usize, usize, [INFO] [stderr] 48 | } } else { impl_signed_unsigned! { [INFO] [stderr] 49 | isize, usize, usize, [INFO] [stderr] 50 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 99 | / impl_signed_unsigned! { [INFO] [stderr] 100 | | isize, usize, usize, [INFO] [stderr] 101 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | isize, usize, usize, [INFO] [stderr] 58 | } } else { impl_signed_unsigned! { [INFO] [stderr] 59 | isize, usize, usize, [INFO] [stderr] 60 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | isize, u8, u64, [INFO] [stderr] 48 | isize, u16, u64, [INFO] [stderr] 49 | isize, u32, u64, [INFO] [stderr] 50 | isize, u64, u64, [INFO] [stderr] 51 | isize, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | isize, u8, u64, [INFO] [stderr] 58 | isize, u16, u64, [INFO] [stderr] 59 | isize, u32, u64, [INFO] [stderr] 60 | isize, u64, u64, [INFO] [stderr] 61 | isize, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i64 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i64 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 32 [INFO] [stderr] --> src/value.rs:505:5 [INFO] [stderr] | [INFO] [stderr] 505 | / fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> { [INFO] [stderr] 506 | | match *self { [INFO] [stderr] 507 | | Value::Null => write!(formatter, "Null"), [INFO] [stderr] 508 | | Value::True => write!(formatter, "True"), [INFO] [stderr] ... | [INFO] [stderr] 532 | | } [INFO] [stderr] 533 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:573:9 [INFO] [stderr] | [INFO] [stderr] 573 | / match b { [INFO] [stderr] 574 | | true => Value::True, [INFO] [stderr] 575 | | false => Value::False, [INFO] [stderr] 576 | | } [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if b { Value::True } else { Value::False }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:907:18 [INFO] [stderr] | [INFO] [stderr] 907 | _ => Ok((first_byte as u32, mem::size_of::() as u32)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: try: `u32::from(first_byte)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: item `value::Value` has a public `len` method but no corresponding `is_empty` method [INFO] [stderr] --> src/value.rs:1250:1 [INFO] [stderr] | [INFO] [stderr] 1250 | / impl Value { [INFO] [stderr] 1251 | | [INFO] [stderr] 1252 | | /// # Calculates length of this value [INFO] [stderr] 1253 | | pub fn len(&self) -> io::Result { [INFO] [stderr] ... | [INFO] [stderr] 1332 | | [INFO] [stderr] 1333 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_without_is_empty)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 62 [INFO] [stderr] --> src/value.rs:1253:5 [INFO] [stderr] | [INFO] [stderr] 1253 | / pub fn len(&self) -> io::Result { [INFO] [stderr] 1254 | | match *self { [INFO] [stderr] 1255 | | Value::Null => Ok(1), [INFO] [stderr] 1256 | | Value::True => Ok(1), [INFO] [stderr] ... | [INFO] [stderr] 1283 | | } [INFO] [stderr] 1284 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(t.len())?, 2, t.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1269 | Value::Text(ref t) => sum!(bytes_for_len!(t.len())?, 2, t.len()), [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(t.len())?, 2, t.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1269 | Value::Text(ref t) => sum!(bytes_for_len!(t.len())?, 2, t.len()), [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(dt.len())?, 2, dt.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1271 | Value::DateTime(ref dt) => sum!(bytes_for_len!(dt.len())?, 2, dt.len()), [INFO] [stderr] | -------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(d.len())?, 2, d.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1273 | Value::Date(ref d) => sum!(bytes_for_len!(d.len())?, 2, d.len()), [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(t.len())?, 2, t.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1275 | Value::Time(ref t) => sum!(bytes_for_len!(t.len())?, 2, t.len()), [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(ds.len())?, 2, ds.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1277 | Value::DecimalStr(ref ds) => sum!(bytes_for_len!(ds.len())?, 2, ds.len()), [INFO] [stderr] | -------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(bytes.len())?, 1, bytes.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1279 | Value::Blob(ref bytes) => sum!(bytes_for_len!(bytes.len())?, 1, bytes.len()), [INFO] [stderr] | -------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 75 [INFO] [stderr] --> src/value.rs:1289:5 [INFO] [stderr] | [INFO] [stderr] 1289 | / pub fn encode(&self, buf: &mut Write) -> io::Result { [INFO] [stderr] 1290 | | let expected_result = self.len()?; [INFO] [stderr] 1291 | | [INFO] [stderr] 1292 | | let result = match *self { [INFO] [stderr] ... | [INFO] [stderr] 1323 | | } [INFO] [stderr] 1324 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, I8, buf) } else { write_int_be!(u8, I8, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1297 | Value::I8(i) => sum!(write_int_be!(u8, I8, buf)?, write_int_be!(i8, i, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, I8, buf)?, write_int_be!(i8, i, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1297 | Value::I8(i) => sum!(write_int_be!(u8, I8, buf)?, write_int_be!(i8, i, buf)?)?, [INFO] [stderr] | ------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(i8, i, buf) } else { write_int_be!(i8, i, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1297 | Value::I8(i) => sum!(write_int_be!(u8, I8, buf)?, write_int_be!(i8, i, buf)?)?, [INFO] [stderr] | ------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, U16, buf) } else { write_int_be!(u8, U16, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1298 | Value::U16(u) => sum!(write_int_be!(u8, U16, buf)?, write_int_be!(u16, u, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, U16, buf)?, write_int_be!(u16, u, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1298 | Value::U16(u) => sum!(write_int_be!(u8, U16, buf)?, write_int_be!(u16, u, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u16, u, buf) } else { write_int_be!(u16, u, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1298 | Value::U16(u) => sum!(write_int_be!(u8, U16, buf)?, write_int_be!(u16, u, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, I16, buf) } else { write_int_be!(u8, I16, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1299 | Value::I16(i) => sum!(write_int_be!(u8, I16, buf)?, write_int_be!(i16, i, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, I16, buf)?, write_int_be!(i16, i, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1299 | Value::I16(i) => sum!(write_int_be!(u8, I16, buf)?, write_int_be!(i16, i, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(i16, i, buf) } else { write_int_be!(i16, i, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1299 | Value::I16(i) => sum!(write_int_be!(u8, I16, buf)?, write_int_be!(i16, i, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, U32, buf) } else { write_int_be!(u8, U32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1300 | Value::U32(u) => sum!(write_int_be!(u8, U32, buf)?, write_int_be!(u32, u, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, U32, buf)?, write_int_be!(u32, u, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1300 | Value::U32(u) => sum!(write_int_be!(u8, U32, buf)?, write_int_be!(u32, u, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u32, u, buf) } else { write_int_be!(u32, u, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1300 | Value::U32(u) => sum!(write_int_be!(u8, U32, buf)?, write_int_be!(u32, u, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, I32, buf) } else { write_int_be!(u8, I32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1301 | Value::I32(i) => sum!(write_int_be!(u8, I32, buf)?, write_int_be!(i32, i, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, I32, buf)?, write_int_be!(i32, i, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1301 | Value::I32(i) => sum!(write_int_be!(u8, I32, buf)?, write_int_be!(i32, i, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(i32, i, buf) } else { write_int_be!(i32, i, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1301 | Value::I32(i) => sum!(write_int_be!(u8, I32, buf)?, write_int_be!(i32, i, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, FLOAT, buf) } else { write_int_be!(u8, FLOAT, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1302 | Value::Float(f) => sum!(write_int_be!(u8, FLOAT, buf)?, write_int_be!(u32, f.to_bits(), buf)?)?, [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, FLOAT, buf)?, write_int_be!(u32, f.to_bits(), buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1302 | Value::Float(f) => sum!(write_int_be!(u8, FLOAT, buf)?, write_int_be!(u32, f.to_bits(), buf)?)?, [INFO] [stderr] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u32, f.to_bits(), buf) } else { write_int_be!(u32, f.to_bits(), buf) }` [INFO] [stderr] ... [INFO] [stderr] 1302 | Value::Float(f) => sum!(write_int_be!(u8, FLOAT, buf)?, write_int_be!(u32, f.to_bits(), buf)?)?, [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, U64, buf) } else { write_int_be!(u8, U64, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1303 | Value::U64(u) => sum!(write_int_be!(u8, U64, buf)?, write_int_be!(u64, u, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, U64, buf)?, write_int_be!(u64, u, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1303 | Value::U64(u) => sum!(write_int_be!(u8, U64, buf)?, write_int_be!(u64, u, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u64, u, buf) } else { write_int_be!(u64, u, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1303 | Value::U64(u) => sum!(write_int_be!(u8, U64, buf)?, write_int_be!(u64, u, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, I64, buf) } else { write_int_be!(u8, I64, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1304 | Value::I64(i) => sum!(write_int_be!(u8, I64, buf)?, write_int_be!(i64, i, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, I64, buf)?, write_int_be!(i64, i, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1304 | Value::I64(i) => sum!(write_int_be!(u8, I64, buf)?, write_int_be!(i64, i, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(i64, i, buf) } else { write_int_be!(i64, i, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1304 | Value::I64(i) => sum!(write_int_be!(u8, I64, buf)?, write_int_be!(i64, i, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, DOUBLE, buf) } else { write_int_be!(u8, DOUBLE, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1305 | Value::Double(f) => sum!(write_int_be!(u8, DOUBLE, buf)?, write_int_be!(u64, f.to_bits(), buf)?)?, [INFO] [stderr] | ------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, DOUBLE, buf)?, write_int_be!(u64, f.to_bits(), buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1305 | Value::Double(f) => sum!(write_int_be!(u8, DOUBLE, buf)?, write_int_be!(u64, f.to_bits(), buf)?)?, [INFO] [stderr] | ---------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u64, f.to_bits(), buf) } else { write_int_be!(u64, f.to_bits(), buf) }` [INFO] [stderr] ... [INFO] [stderr] 1305 | Value::Double(f) => sum!(write_int_be!(u8, DOUBLE, buf)?, write_int_be!(u64, f.to_bits(), buf)?)?, [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:1317:9 [INFO] [stderr] | [INFO] [stderr] 1317 | / match result == expected_result { [INFO] [stderr] 1318 | | true => Ok(result), [INFO] [stderr] 1319 | | false => Err(Error::new( [INFO] [stderr] 1320 | | ErrorKind::Other, [INFO] [stderr] 1321 | | format!("{}::value::Value::encode() -> expected to write {} bytes, result: {}", ::TAG, expected_result, result) [INFO] [stderr] 1322 | | )), [INFO] [stderr] 1323 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 1317 | if result == expected_result { Ok(result) } else { Err(Error::new( [INFO] [stderr] 1318 | ErrorKind::Other, [INFO] [stderr] 1319 | format!("{}::value::Value::encode() -> expected to write {} bytes, result: {}", ::TAG, expected_result, result) [INFO] [stderr] 1320 | )) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:1351:5 [INFO] [stderr] | [INFO] [stderr] 1351 | / match b.into() { [INFO] [stderr] 1352 | | true => Value::True.encode(buf), [INFO] [stderr] 1353 | | false => Value::False.encode(buf), [INFO] [stderr] 1354 | | } [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if b.into() { Value::True.encode(buf) } else { Value::False.encode(buf) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 80 [INFO] [stderr] --> src/value.rs:1533:1 [INFO] [stderr] | [INFO] [stderr] 1533 | / fn decode_value(filter: Option<&[u8]>, source: &mut Read) -> io::Result> { [INFO] [stderr] 1534 | | let source_value = match read_int_be!(u8, source) { [INFO] [stderr] 1535 | | Ok(source_value) => source_value, [INFO] [stderr] 1536 | | Err(err) => return match err.kind() { [INFO] [stderr] ... | [INFO] [stderr] 1578 | | } [INFO] [stderr] 1579 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: equality checks against false can be replaced by a negation [INFO] [stderr] --> src/value.rs:1543:12 [INFO] [stderr] | [INFO] [stderr] 1543 | if expected_values.contains(&source_value) == false { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!expected_values.contains(&source_value)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::bool_comparison)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1565 | self::TEXT => Ok(Some(Value::Text(read_str!(source)?))), [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1566 | self::DATE_TIME => Ok(Some(Value::DateTime(read_str!(source)?))), [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1567 | self::DATE => Ok(Some(Value::Date(read_str!(source)?))), [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1568 | self::TIME => Ok(Some(Value::Time(read_str!(source)?))), [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1569 | self::DECIMAL_STR => Ok(Some(Value::DecimalStr(read_str!(source)?))), [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1570 | self::BLOB => Ok(Some(Value::Blob(read_into_new_vec!(read_size(source)?, source)?))), [INFO] [stderr] | ---------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { decode_list!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1571 | self::LIST => decode_list!(source), [INFO] [stderr] | -------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { decode_map!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1572 | self::MAP => decode_map!(source), [INFO] [stderr] | ------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { decode_map!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1572 | self::MAP => decode_map!(source), [INFO] [stderr] | ------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:1148:9 [INFO] [stderr] | [INFO] [stderr] 1148 | / match result.insert(key, value) { [INFO] [stderr] 1149 | | Some(old_value) => return Err(Error::new( [INFO] [stderr] 1150 | | ErrorKind::InvalidData, format!("{}::value::decode_map!() -> duplicate key '{}' of old value: {:?}", ::TAG, &key, &old_value) [INFO] [stderr] 1151 | | )), [INFO] [stderr] 1152 | | None => (), [INFO] [stderr] 1153 | | }; [INFO] [stderr] | |_________^ help: try this: `if let Some(old_value) = result.insert(key, value) { decode_map!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1572 | self::MAP => decode_map!(source), [INFO] [stderr] | ------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { decode_object!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1573 | self::OBJECT => decode_object!(source), [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { decode_object!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1573 | self::OBJECT => decode_object!(source), [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1573 | self::OBJECT => decode_object!(source), [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:1232:9 [INFO] [stderr] | [INFO] [stderr] 1232 | / match result.insert(key, value) { [INFO] [stderr] 1233 | | Some(old_value) => return Err(Error::new( [INFO] [stderr] 1234 | | ErrorKind::InvalidData, format!("{}::value::decode_object!() -> duplicate key of old value: {:?}", ::TAG, &old_value) [INFO] [stderr] 1235 | | )), [INFO] [stderr] 1236 | | None => (), [INFO] [stderr] 1237 | | }; [INFO] [stderr] | |_________^ help: try this: `if let Some(old_value) = result.insert(key, value) { decode_object!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1573 | self::OBJECT => decode_object!(source), [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/value.rs:1799:19 [INFO] [stderr] | [INFO] [stderr] 1799 | fn list_len(list: &Vec) -> io::Result { [INFO] [stderr] | ^^^^^^^^^^^ help: change this to: `&[Value]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(list.len())?, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1801 | let mut result: u32 = sum!(bytes_for_len!(list.len())?, 1)?; [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, v.len()?) }` [INFO] [stderr] ... [INFO] [stderr] 1804 | result = sum!(result, v.len()?)?; [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1808 | result = sum!(result, 1)?; [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:1809:5 [INFO] [stderr] | [INFO] [stderr] 1809 | / match result.cmp_int(&::std::i8::MAX) { [INFO] [stderr] 1810 | | // Now we need 3 more bytes [INFO] [stderr] 1811 | | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] 1812 | | _ => (), [INFO] [stderr] 1813 | | }; [INFO] [stderr] | |_____^ help: try this: `if let Ordering::Greater = result.cmp_int(&::std::i8::MAX) { result = sum!(result, 3)? }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 3) }` [INFO] [stderr] ... [INFO] [stderr] 1811 | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:1814:5 [INFO] [stderr] | [INFO] [stderr] 1814 | / match result <= MAX_DATA_SIZE { [INFO] [stderr] 1815 | | true => Ok(result), [INFO] [stderr] 1816 | | false => Err(Error::new(ErrorKind::InvalidData, format!("{}::value::list_len() -> data too large: {} bytes", ::TAG, result))), [INFO] [stderr] 1817 | | } [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if result <= MAX_DATA_SIZE { Ok(result) } else { Err(Error::new(ErrorKind::InvalidData, format!("{}::value::list_len() -> data too large: {} bytes", ::TAG, result))) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 26 [INFO] [stderr] --> src/value.rs:1821:1 [INFO] [stderr] | [INFO] [stderr] 1821 | / fn map_len(map: &BTreeMap) -> io::Result { [INFO] [stderr] 1822 | | // Type + count [INFO] [stderr] 1823 | | let mut result = sum!(bytes_for_len!(map.len())?, 1)?; [INFO] [stderr] 1824 | | // Items [INFO] [stderr] ... | [INFO] [stderr] 1839 | | } [INFO] [stderr] 1840 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(map.len())?, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1823 | let mut result = sum!(bytes_for_len!(map.len())?, 1)?; [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, mem::size_of::(), v.len()?) }` [INFO] [stderr] ... [INFO] [stderr] 1826 | result = sum!(result, mem::size_of::(), v.len()?)?; [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1830 | result = sum!(result, 1)?; [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:1831:5 [INFO] [stderr] | [INFO] [stderr] 1831 | / match result.cmp_int(&::std::i8::MAX) { [INFO] [stderr] 1832 | | // Now we need 3 more bytes [INFO] [stderr] 1833 | | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] 1834 | | _ => (), [INFO] [stderr] 1835 | | }; [INFO] [stderr] | |_____^ help: try this: `if let Ordering::Greater = result.cmp_int(&::std::i8::MAX) { result = sum!(result, 3)? }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 3) }` [INFO] [stderr] ... [INFO] [stderr] 1833 | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:1836:5 [INFO] [stderr] | [INFO] [stderr] 1836 | / match result <= MAX_DATA_SIZE { [INFO] [stderr] 1837 | | true => Ok(result), [INFO] [stderr] 1838 | | false => Err(Error::new(ErrorKind::InvalidData, format!("{}::value::map_len() -> data too large: {} bytes", ::TAG, result))), [INFO] [stderr] 1839 | | } [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if result <= MAX_DATA_SIZE { Ok(result) } else { Err(Error::new(ErrorKind::InvalidData, format!("{}::value::map_len() -> data too large: {} bytes", ::TAG, result))) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 30 [INFO] [stderr] --> src/value.rs:1843:1 [INFO] [stderr] | [INFO] [stderr] 1843 | / fn object_len(object: &HashMap) -> io::Result { [INFO] [stderr] 1844 | | // Type + count [INFO] [stderr] 1845 | | let mut result = sum!(bytes_for_len!(object.len())?, 1)?; [INFO] [stderr] 1846 | | // Items [INFO] [stderr] ... | [INFO] [stderr] 1869 | | } [INFO] [stderr] 1870 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(object.len())?, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1845 | let mut result = sum!(bytes_for_len!(object.len())?, 1)?; [INFO] [stderr] | -------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, key_len, value.len()?, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1856 | result = sum!(result, key_len, value.len()?, 1)?; [INFO] [stderr] | -------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1860 | result = sum!(result, 1)?; [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:1861:5 [INFO] [stderr] | [INFO] [stderr] 1861 | / match result.cmp_int(&::std::i8::MAX) { [INFO] [stderr] 1862 | | // Now we need 3 more bytes [INFO] [stderr] 1863 | | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] 1864 | | _ => (), [INFO] [stderr] 1865 | | }; [INFO] [stderr] | |_____^ help: try this: `if let Ordering::Greater = result.cmp_int(&::std::i8::MAX) { result = sum!(result, 3)? }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 3) }` [INFO] [stderr] ... [INFO] [stderr] 1863 | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:1866:5 [INFO] [stderr] | [INFO] [stderr] 1866 | / match result <= MAX_DATA_SIZE { [INFO] [stderr] 1867 | | true => Ok(result), [INFO] [stderr] 1868 | | false => Err(Error::new(ErrorKind::InvalidData, format!("{}::value::object_len() -> data too large: {} bytes", ::TAG, result))), [INFO] [stderr] 1869 | | } [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if result <= MAX_DATA_SIZE { Ok(result) } else { Err(Error::new(ErrorKind::InvalidData, format!("{}::value::object_len() -> data too large: {} bytes", ::TAG, result))) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] ... [INFO] [stderr] 1885 | let total_size = sum!( [INFO] [stderr] | ______________________- [INFO] [stderr] 1886 | | str_len, [INFO] [stderr] 1887 | | // 1 for type, 1 for null terminator [INFO] [stderr] 1888 | | 2 + if str_len.cmp_int(&::std::i8::MAX) == Ordering::Greater { 4 } else { 1 } [INFO] [stderr] 1889 | | )?; [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 949 | if let Ok(current) = result { sum!( [INFO] [stderr] 950 | str_len, [INFO] [stderr] 951 | // 1 for type, 1 for null terminator [INFO] [stderr] 952 | 2 + if str_len.cmp_int(&::std::i8::MAX) == Ordering::Greater { 4 } else { 1 } [INFO] [stderr] 953 | ) }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(str_len, buf) } else { write_size!(str_len, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1901 | write_size!(str_len, buf)?; [INFO] [stderr] | ------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(str_len, buf) } else { write_size!(str_len, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1901 | write_size!(str_len, buf)?; [INFO] [stderr] | ------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(len, buf) } else { write_size!(len, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1944 | bytes_written = sum!(write_size!(len, buf)?, bytes_written)?; [INFO] [stderr] | --------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(len, buf) } else { write_size!(len, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1944 | bytes_written = sum!(write_size!(len, buf)?, bytes_written)?; [INFO] [stderr] | --------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_size!(len, buf)?, bytes_written) }` [INFO] [stderr] ... [INFO] [stderr] 1944 | bytes_written = sum!(write_size!(len, buf)?, bytes_written)?; [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_written, written) }` [INFO] [stderr] ... [INFO] [stderr] 1954 | bytes_written = sum!(bytes_written, written)?; [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/value.rs:1960:39 [INFO] [stderr] | [INFO] [stderr] 1960 | fn encode_value_list(size: u32, list: &Vec, buf: &mut Write) -> io::Result { [INFO] [stderr] | ^^^^^^^^^^^ help: change this to: `&[Value]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 26 [INFO] [stderr] --> src/value.rs:1960:1 [INFO] [stderr] | [INFO] [stderr] 1960 | / fn encode_value_list(size: u32, list: &Vec, buf: &mut Write) -> io::Result { [INFO] [stderr] 1961 | | let mut result = sum!( [INFO] [stderr] 1962 | | // Type [INFO] [stderr] 1963 | | write_int_be!(u8, LIST, buf)?, [INFO] [stderr] ... | [INFO] [stderr] 1977 | | Ok(result) [INFO] [stderr] 1978 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, LIST, buf) } else { write_int_be!(u8, LIST, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1963 | write_int_be!(u8, LIST, buf)?, [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] ... [INFO] [stderr] 1961 | let mut result = sum!( [INFO] [stderr] | ______________________- [INFO] [stderr] 1962 | | // Type [INFO] [stderr] 1963 | | write_int_be!(u8, LIST, buf)?, [INFO] [stderr] 1964 | | // Size [INFO] [stderr] ... | [INFO] [stderr] 1969 | | write_size!(list.len() as u32, buf)? [INFO] [stderr] 1970 | | )?; [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 949 | if let Ok(current) = result { sum!( [INFO] [stderr] 950 | // Type [INFO] [stderr] 951 | write_int_be!(u8, LIST, buf)?, [INFO] [stderr] 952 | // Size [INFO] [stderr] 953 | write_size!(size, buf)?, [INFO] [stderr] 954 | // Count [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1965 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1965 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(list.len() as u32, buf) } else { write_size!(list.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1969 | write_size!(list.len() as u32, buf)? [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(list.len() as u32, buf) } else { write_size!(list.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1969 | write_size!(list.len() as u32, buf)? [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, v.encode(buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1974 | result = sum!(result, v.encode(buf)?)?; [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 32 [INFO] [stderr] --> src/value.rs:1981:1 [INFO] [stderr] | [INFO] [stderr] 1981 | / fn encode_value_map(size: u32, map: &BTreeMap, buf: &mut Write) -> io::Result { [INFO] [stderr] 1982 | | let mut result = sum!( [INFO] [stderr] 1983 | | // Type [INFO] [stderr] 1984 | | write_int_be!(u8, MAP, buf)?, [INFO] [stderr] ... | [INFO] [stderr] 1998 | | Ok(result) [INFO] [stderr] 1999 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, MAP, buf) } else { write_int_be!(u8, MAP, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1984 | write_int_be!(u8, MAP, buf)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] ... [INFO] [stderr] 1982 | let mut result = sum!( [INFO] [stderr] | ______________________- [INFO] [stderr] 1983 | | // Type [INFO] [stderr] 1984 | | write_int_be!(u8, MAP, buf)?, [INFO] [stderr] 1985 | | // Size [INFO] [stderr] ... | [INFO] [stderr] 1990 | | write_size!(map.len() as u32, buf)? [INFO] [stderr] 1991 | | )?; [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 949 | if let Ok(current) = result { sum!( [INFO] [stderr] 950 | // Type [INFO] [stderr] 951 | write_int_be!(u8, MAP, buf)?, [INFO] [stderr] 952 | // Size [INFO] [stderr] 953 | write_size!(size, buf)?, [INFO] [stderr] 954 | // Count [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1986 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1986 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(map.len() as u32, buf) } else { write_size!(map.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1990 | write_size!(map.len() as u32, buf)? [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(map.len() as u32, buf) } else { write_size!(map.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1990 | write_size!(map.len() as u32, buf)? [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, write_int_be!(i32, key, buf)?, value.encode(buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1995 | result = sum!(result, write_int_be!(i32, key, buf)?, value.encode(buf)?)?; [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(i32, key, buf) } else { write_int_be!(i32, key, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1995 | result = sum!(result, write_int_be!(i32, key, buf)?, value.encode(buf)?)?; [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 36 [INFO] [stderr] --> src/value.rs:2006:1 [INFO] [stderr] | [INFO] [stderr] 2006 | / fn encode_value_object(size: u32, object: &HashMap, buf: &mut Write) -> io::Result { [INFO] [stderr] 2007 | | let mut result = sum!( [INFO] [stderr] 2008 | | // Type [INFO] [stderr] 2009 | | write_int_be!(u8, OBJECT, buf)?, [INFO] [stderr] ... | [INFO] [stderr] 2041 | | Ok(result) [INFO] [stderr] 2042 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, OBJECT, buf) } else { write_int_be!(u8, OBJECT, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2009 | write_int_be!(u8, OBJECT, buf)?, [INFO] [stderr] | ------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] ... [INFO] [stderr] 2007 | let mut result = sum!( [INFO] [stderr] | ______________________- [INFO] [stderr] 2008 | | // Type [INFO] [stderr] 2009 | | write_int_be!(u8, OBJECT, buf)?, [INFO] [stderr] 2010 | | // Size [INFO] [stderr] ... | [INFO] [stderr] 2015 | | write_size!(object.len() as u32, buf)? [INFO] [stderr] 2016 | | )?; [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 949 | if let Ok(current) = result { sum!( [INFO] [stderr] 950 | // Type [INFO] [stderr] 951 | write_int_be!(u8, OBJECT, buf)?, [INFO] [stderr] 952 | // Size [INFO] [stderr] 953 | write_size!(size, buf)?, [INFO] [stderr] 954 | // Count [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2011 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2011 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(object.len() as u32, buf) } else { write_size!(object.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2015 | write_size!(object.len() as u32, buf)? [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(object.len() as u32, buf) } else { write_size!(object.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2015 | write_size!(object.len() as u32, buf)? [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:2021:18 [INFO] [stderr] | [INFO] [stderr] 2021 | result = match key_len <= OBJECT_KEY_MAX_LEN { [INFO] [stderr] | __________________^ [INFO] [stderr] 2022 | | true => sum!(result, write_int_be!(u8, key_len as u8, buf)?)?, [INFO] [stderr] 2023 | | false => return Err(Error::new( [INFO] [stderr] 2024 | | ErrorKind::InvalidData, [INFO] [stderr] 2025 | | format!("{}::value::encode_value_object() -> key length is limited to {} bytes, got: {}", ::TAG, OBJECT_KEY_MAX_LEN, &key_len) [INFO] [stderr] 2026 | | )), [INFO] [stderr] 2027 | | }; [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 2021 | result = if key_len <= OBJECT_KEY_MAX_LEN { sum!(result, write_int_be!(u8, key_len as u8, buf)?)? } else { return Err(Error::new( [INFO] [stderr] 2022 | ErrorKind::InvalidData, [INFO] [stderr] 2023 | format!("{}::value::encode_value_object() -> key length is limited to {} bytes, got: {}", ::TAG, OBJECT_KEY_MAX_LEN, &key_len) [INFO] [stderr] 2024 | )) }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, write_int_be!(u8, key_len as u8, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 2022 | true => sum!(result, write_int_be!(u8, key_len as u8, buf)?)?, [INFO] [stderr] | ---------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, key_len as u8, buf) } else { write_int_be!(u8, key_len as u8, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2022 | true => sum!(result, write_int_be!(u8, key_len as u8, buf)?)?, [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, written) }` [INFO] [stderr] ... [INFO] [stderr] 2031 | Ordering::Equal => result = sum!(result, written)?, [INFO] [stderr] | --------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, value.encode(buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 2038 | result = sum!(result, value.encode(buf)?)?; [INFO] [stderr] | -------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> tests/int_ordering.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | pub const UUID: &'static str = "d895be5b-7831-4a1e-9ea3-53d1c315ab82"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> tests/int_ordering.rs:11:21 [INFO] [stderr] | [INFO] [stderr] 11 | pub const VERSION: &'static str = "0.2.0"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> tests/int_ordering.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | pub const UUID: &'static str = "d895be5b-7831-4a1e-9ea3-53d1c315ab82"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> tests/int_ordering.rs:11:21 [INFO] [stderr] | [INFO] [stderr] 11 | pub const VERSION: &'static str = "0.2.0"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/value.rs:107:20 [INFO] [stderr] | [INFO] [stderr] 107 | buf.encode_u32(123456789_u32).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider: `123_456_789_u32` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/value.rs:108:21 [INFO] [stderr] | [INFO] [stderr] 108 | buf.encode_i32(-123456789_i32).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider: `123_456_789_i32` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/value.rs:111:20 [INFO] [stderr] | [INFO] [stderr] 111 | buf.encode_u64(98765432123_u64).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider: `98_765_432_123_u64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/value.rs:112:21 [INFO] [stderr] | [INFO] [stderr] 112 | buf.encode_i64(-98765432123_i64).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider: `98_765_432_123_i64` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/value.rs:141:51 [INFO] [stderr] | [INFO] [stderr] 141 | assert_eq!(cursor.decode_u32().unwrap(), Some(123456789)); [INFO] [stderr] | ^^^^^^^^^ help: consider: `123_456_789` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/value.rs:142:52 [INFO] [stderr] | [INFO] [stderr] 142 | assert_eq!(cursor.decode_i32().unwrap(), Some(-123456789)); [INFO] [stderr] | ^^^^^^^^^ help: consider: `123_456_789` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/value.rs:145:51 [INFO] [stderr] | [INFO] [stderr] 145 | assert_eq!(cursor.decode_u64().unwrap(), Some(98765432123)); [INFO] [stderr] | ^^^^^^^^^^^ help: consider: `98_765_432_123` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/value.rs:146:52 [INFO] [stderr] | [INFO] [stderr] 146 | assert_eq!(cursor.decode_i64().unwrap(), Some(-98765432123)); [INFO] [stderr] | ^^^^^^^^^^^ help: consider: `98_765_432_123` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | i8, u8, u8, [INFO] [stderr] 48 | i8, u16, u16, [INFO] [stderr] 49 | i8, u32, u32, [INFO] [stderr] 50 | i8, u64, u64, [INFO] [stderr] 51 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | i8, u8, u8, [INFO] [stderr] 58 | i8, u16, u16, [INFO] [stderr] 59 | i8, u32, u32, [INFO] [stderr] 60 | i8, u64, u64, [INFO] [stderr] 61 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | i8, u8, u8, [INFO] [stderr] 48 | i8, u16, u16, [INFO] [stderr] 49 | i8, u32, u32, [INFO] [stderr] 50 | i8, u64, u64, [INFO] [stderr] 51 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 99 | / impl_signed_unsigned! { [INFO] [stderr] 100 | | isize, usize, usize, [INFO] [stderr] 101 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | isize, usize, usize, [INFO] [stderr] 48 | } } else { impl_signed_unsigned! { [INFO] [stderr] 49 | isize, usize, usize, [INFO] [stderr] 50 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 99 | / impl_signed_unsigned! { [INFO] [stderr] 100 | | isize, usize, usize, [INFO] [stderr] 101 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | isize, usize, usize, [INFO] [stderr] 58 | } } else { impl_signed_unsigned! { [INFO] [stderr] 59 | isize, usize, usize, [INFO] [stderr] 60 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | isize, u8, u64, [INFO] [stderr] 48 | isize, u16, u64, [INFO] [stderr] 49 | isize, u32, u64, [INFO] [stderr] 50 | isize, u64, u64, [INFO] [stderr] 51 | isize, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | isize, u8, u64, [INFO] [stderr] 58 | isize, u16, u64, [INFO] [stderr] 59 | isize, u32, u64, [INFO] [stderr] 60 | isize, u64, u64, [INFO] [stderr] 61 | isize, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i64 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i64 to i128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 289 [INFO] [stderr] --> src/int_ordering.rs:383:1 [INFO] [stderr] | [INFO] [stderr] 383 | / fn test_ordering_greater() { [INFO] [stderr] 384 | | macro_rules! greater { ($($v: expr,)+) => {{ [INFO] [stderr] 385 | | $( [INFO] [stderr] 386 | | let v = $v; [INFO] [stderr] ... | [INFO] [stderr] 418 | | greater!(1_i8, 1_i16, 1_i32, 1_i64, 1_i128, 1_isize, 1_u8, 1_u16, 1_u32, 1_u64, 1_u128, 1_usize,); [INFO] [stderr] 419 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 325 [INFO] [stderr] --> src/int_ordering.rs:422:1 [INFO] [stderr] | [INFO] [stderr] 422 | / fn test_ordering_equal() { [INFO] [stderr] 423 | | macro_rules! equal_to_negative { ($($v: expr,)+) => {{ [INFO] [stderr] 424 | | $( [INFO] [stderr] 425 | | let v = $v; [INFO] [stderr] ... | [INFO] [stderr] 476 | | equal_to_positive!(1_i8, 1_i16, 1_i32, 1_i64, 1_i128, 1_isize, 1_u8, 1_u16, 1_u32, 1_u64, 1_u128, 1_usize,); [INFO] [stderr] 477 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 181 [INFO] [stderr] --> src/int_ordering.rs:480:1 [INFO] [stderr] | [INFO] [stderr] 480 | / fn test_ordering_less() { [INFO] [stderr] 481 | | macro_rules! less { ($($v: expr,)+) => {{ [INFO] [stderr] 482 | | $( [INFO] [stderr] 483 | | let v = $v; [INFO] [stderr] ... | [INFO] [stderr] 522 | | less!(-2_i8, -2_i16, -2_i32, -2_i64, -2_i128, -2_isize,); [INFO] [stderr] 523 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 32 [INFO] [stderr] --> src/value.rs:505:5 [INFO] [stderr] | [INFO] [stderr] 505 | / fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> { [INFO] [stderr] 506 | | match *self { [INFO] [stderr] 507 | | Value::Null => write!(formatter, "Null"), [INFO] [stderr] 508 | | Value::True => write!(formatter, "True"), [INFO] [stderr] ... | [INFO] [stderr] 532 | | } [INFO] [stderr] 533 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:573:9 [INFO] [stderr] | [INFO] [stderr] 573 | / match b { [INFO] [stderr] 574 | | true => Value::True, [INFO] [stderr] 575 | | false => Value::False, [INFO] [stderr] 576 | | } [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if b { Value::True } else { Value::False }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:907:18 [INFO] [stderr] | [INFO] [stderr] 907 | _ => Ok((first_byte as u32, mem::size_of::() as u32)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: try: `u32::from(first_byte)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: useless use of `vec!` [INFO] [stderr] --> src/value.rs:925:18 [INFO] [stderr] | [INFO] [stderr] 925 | for bytes in vec![ [INFO] [stderr] | __________________^ [INFO] [stderr] 926 | | [0xF0, MAX_U8, MAX_U8, MAX_U8], [INFO] [stderr] 927 | | [0x80, MAX_U8, MAX_U8, MAX_U8], [INFO] [stderr] 928 | | [MAX_U8, MAX_U8, MAX_U8, 0xF0], [INFO] [stderr] 929 | | ] { [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::useless_vec)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: item `value::Value` has a public `len` method but no corresponding `is_empty` method [INFO] [stderr] --> src/value.rs:1250:1 [INFO] [stderr] | [INFO] [stderr] 1250 | / impl Value { [INFO] [stderr] 1251 | | [INFO] [stderr] 1252 | | /// # Calculates length of this value [INFO] [stderr] 1253 | | pub fn len(&self) -> io::Result { [INFO] [stderr] ... | [INFO] [stderr] 1332 | | [INFO] [stderr] 1333 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_without_is_empty)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 62 [INFO] [stderr] --> src/value.rs:1253:5 [INFO] [stderr] | [INFO] [stderr] 1253 | / pub fn len(&self) -> io::Result { [INFO] [stderr] 1254 | | match *self { [INFO] [stderr] 1255 | | Value::Null => Ok(1), [INFO] [stderr] 1256 | | Value::True => Ok(1), [INFO] [stderr] ... | [INFO] [stderr] 1283 | | } [INFO] [stderr] 1284 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(t.len())?, 2, t.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1269 | Value::Text(ref t) => sum!(bytes_for_len!(t.len())?, 2, t.len()), [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(t.len())?, 2, t.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1269 | Value::Text(ref t) => sum!(bytes_for_len!(t.len())?, 2, t.len()), [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(dt.len())?, 2, dt.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1271 | Value::DateTime(ref dt) => sum!(bytes_for_len!(dt.len())?, 2, dt.len()), [INFO] [stderr] | -------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(d.len())?, 2, d.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1273 | Value::Date(ref d) => sum!(bytes_for_len!(d.len())?, 2, d.len()), [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(t.len())?, 2, t.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1275 | Value::Time(ref t) => sum!(bytes_for_len!(t.len())?, 2, t.len()), [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(ds.len())?, 2, ds.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1277 | Value::DecimalStr(ref ds) => sum!(bytes_for_len!(ds.len())?, 2, ds.len()), [INFO] [stderr] | -------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(bytes.len())?, 1, bytes.len()) }` [INFO] [stderr] ... [INFO] [stderr] 1279 | Value::Blob(ref bytes) => sum!(bytes_for_len!(bytes.len())?, 1, bytes.len()), [INFO] [stderr] | -------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 75 [INFO] [stderr] --> src/value.rs:1289:5 [INFO] [stderr] | [INFO] [stderr] 1289 | / pub fn encode(&self, buf: &mut Write) -> io::Result { [INFO] [stderr] 1290 | | let expected_result = self.len()?; [INFO] [stderr] 1291 | | [INFO] [stderr] 1292 | | let result = match *self { [INFO] [stderr] ... | [INFO] [stderr] 1323 | | } [INFO] [stderr] 1324 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, I8, buf) } else { write_int_be!(u8, I8, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1297 | Value::I8(i) => sum!(write_int_be!(u8, I8, buf)?, write_int_be!(i8, i, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, I8, buf)?, write_int_be!(i8, i, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1297 | Value::I8(i) => sum!(write_int_be!(u8, I8, buf)?, write_int_be!(i8, i, buf)?)?, [INFO] [stderr] | ------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(i8, i, buf) } else { write_int_be!(i8, i, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1297 | Value::I8(i) => sum!(write_int_be!(u8, I8, buf)?, write_int_be!(i8, i, buf)?)?, [INFO] [stderr] | ------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, U16, buf) } else { write_int_be!(u8, U16, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1298 | Value::U16(u) => sum!(write_int_be!(u8, U16, buf)?, write_int_be!(u16, u, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, U16, buf)?, write_int_be!(u16, u, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1298 | Value::U16(u) => sum!(write_int_be!(u8, U16, buf)?, write_int_be!(u16, u, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u16, u, buf) } else { write_int_be!(u16, u, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1298 | Value::U16(u) => sum!(write_int_be!(u8, U16, buf)?, write_int_be!(u16, u, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, I16, buf) } else { write_int_be!(u8, I16, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1299 | Value::I16(i) => sum!(write_int_be!(u8, I16, buf)?, write_int_be!(i16, i, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, I16, buf)?, write_int_be!(i16, i, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1299 | Value::I16(i) => sum!(write_int_be!(u8, I16, buf)?, write_int_be!(i16, i, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(i16, i, buf) } else { write_int_be!(i16, i, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1299 | Value::I16(i) => sum!(write_int_be!(u8, I16, buf)?, write_int_be!(i16, i, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, U32, buf) } else { write_int_be!(u8, U32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1300 | Value::U32(u) => sum!(write_int_be!(u8, U32, buf)?, write_int_be!(u32, u, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, U32, buf)?, write_int_be!(u32, u, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1300 | Value::U32(u) => sum!(write_int_be!(u8, U32, buf)?, write_int_be!(u32, u, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u32, u, buf) } else { write_int_be!(u32, u, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1300 | Value::U32(u) => sum!(write_int_be!(u8, U32, buf)?, write_int_be!(u32, u, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, I32, buf) } else { write_int_be!(u8, I32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1301 | Value::I32(i) => sum!(write_int_be!(u8, I32, buf)?, write_int_be!(i32, i, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, I32, buf)?, write_int_be!(i32, i, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1301 | Value::I32(i) => sum!(write_int_be!(u8, I32, buf)?, write_int_be!(i32, i, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(i32, i, buf) } else { write_int_be!(i32, i, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1301 | Value::I32(i) => sum!(write_int_be!(u8, I32, buf)?, write_int_be!(i32, i, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, FLOAT, buf) } else { write_int_be!(u8, FLOAT, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1302 | Value::Float(f) => sum!(write_int_be!(u8, FLOAT, buf)?, write_int_be!(u32, f.to_bits(), buf)?)?, [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, FLOAT, buf)?, write_int_be!(u32, f.to_bits(), buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1302 | Value::Float(f) => sum!(write_int_be!(u8, FLOAT, buf)?, write_int_be!(u32, f.to_bits(), buf)?)?, [INFO] [stderr] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u32, f.to_bits(), buf) } else { write_int_be!(u32, f.to_bits(), buf) }` [INFO] [stderr] ... [INFO] [stderr] 1302 | Value::Float(f) => sum!(write_int_be!(u8, FLOAT, buf)?, write_int_be!(u32, f.to_bits(), buf)?)?, [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, U64, buf) } else { write_int_be!(u8, U64, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1303 | Value::U64(u) => sum!(write_int_be!(u8, U64, buf)?, write_int_be!(u64, u, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, U64, buf)?, write_int_be!(u64, u, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1303 | Value::U64(u) => sum!(write_int_be!(u8, U64, buf)?, write_int_be!(u64, u, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u64, u, buf) } else { write_int_be!(u64, u, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1303 | Value::U64(u) => sum!(write_int_be!(u8, U64, buf)?, write_int_be!(u64, u, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, I64, buf) } else { write_int_be!(u8, I64, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1304 | Value::I64(i) => sum!(write_int_be!(u8, I64, buf)?, write_int_be!(i64, i, buf)?)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, I64, buf)?, write_int_be!(i64, i, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1304 | Value::I64(i) => sum!(write_int_be!(u8, I64, buf)?, write_int_be!(i64, i, buf)?)?, [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(i64, i, buf) } else { write_int_be!(i64, i, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1304 | Value::I64(i) => sum!(write_int_be!(u8, I64, buf)?, write_int_be!(i64, i, buf)?)?, [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, DOUBLE, buf) } else { write_int_be!(u8, DOUBLE, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1305 | Value::Double(f) => sum!(write_int_be!(u8, DOUBLE, buf)?, write_int_be!(u64, f.to_bits(), buf)?)?, [INFO] [stderr] | ------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_int_be!(u8, DOUBLE, buf)?, write_int_be!(u64, f.to_bits(), buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1305 | Value::Double(f) => sum!(write_int_be!(u8, DOUBLE, buf)?, write_int_be!(u64, f.to_bits(), buf)?)?, [INFO] [stderr] | ---------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u64, f.to_bits(), buf) } else { write_int_be!(u64, f.to_bits(), buf) }` [INFO] [stderr] ... [INFO] [stderr] 1305 | Value::Double(f) => sum!(write_int_be!(u8, DOUBLE, buf)?, write_int_be!(u64, f.to_bits(), buf)?)?, [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:1317:9 [INFO] [stderr] | [INFO] [stderr] 1317 | / match result == expected_result { [INFO] [stderr] 1318 | | true => Ok(result), [INFO] [stderr] 1319 | | false => Err(Error::new( [INFO] [stderr] 1320 | | ErrorKind::Other, [INFO] [stderr] 1321 | | format!("{}::value::Value::encode() -> expected to write {} bytes, result: {}", ::TAG, expected_result, result) [INFO] [stderr] 1322 | | )), [INFO] [stderr] 1323 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 1317 | if result == expected_result { Ok(result) } else { Err(Error::new( [INFO] [stderr] 1318 | ErrorKind::Other, [INFO] [stderr] 1319 | format!("{}::value::Value::encode() -> expected to write {} bytes, result: {}", ::TAG, expected_result, result) [INFO] [stderr] 1320 | )) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:1351:5 [INFO] [stderr] | [INFO] [stderr] 1351 | / match b.into() { [INFO] [stderr] 1352 | | true => Value::True.encode(buf), [INFO] [stderr] 1353 | | false => Value::False.encode(buf), [INFO] [stderr] 1354 | | } [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if b.into() { Value::True.encode(buf) } else { Value::False.encode(buf) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 80 [INFO] [stderr] --> src/value.rs:1533:1 [INFO] [stderr] | [INFO] [stderr] 1533 | / fn decode_value(filter: Option<&[u8]>, source: &mut Read) -> io::Result> { [INFO] [stderr] 1534 | | let source_value = match read_int_be!(u8, source) { [INFO] [stderr] 1535 | | Ok(source_value) => source_value, [INFO] [stderr] 1536 | | Err(err) => return match err.kind() { [INFO] [stderr] ... | [INFO] [stderr] 1578 | | } [INFO] [stderr] 1579 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: equality checks against false can be replaced by a negation [INFO] [stderr] --> src/value.rs:1543:12 [INFO] [stderr] | [INFO] [stderr] 1543 | if expected_values.contains(&source_value) == false { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!expected_values.contains(&source_value)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::bool_comparison)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1565 | self::TEXT => Ok(Some(Value::Text(read_str!(source)?))), [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1566 | self::DATE_TIME => Ok(Some(Value::DateTime(read_str!(source)?))), [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1567 | self::DATE => Ok(Some(Value::Date(read_str!(source)?))), [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1568 | self::TIME => Ok(Some(Value::Time(read_str!(source)?))), [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1569 | self::DECIMAL_STR => Ok(Some(Value::DecimalStr(read_str!(source)?))), [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1570 | self::BLOB => Ok(Some(Value::Blob(read_into_new_vec!(read_size(source)?, source)?))), [INFO] [stderr] | ---------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { decode_list!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1571 | self::LIST => decode_list!(source), [INFO] [stderr] | -------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { decode_map!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1572 | self::MAP => decode_map!(source), [INFO] [stderr] | ------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { decode_map!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1572 | self::MAP => decode_map!(source), [INFO] [stderr] | ------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:1148:9 [INFO] [stderr] | [INFO] [stderr] 1148 | / match result.insert(key, value) { [INFO] [stderr] 1149 | | Some(old_value) => return Err(Error::new( [INFO] [stderr] 1150 | | ErrorKind::InvalidData, format!("{}::value::decode_map!() -> duplicate key '{}' of old value: {:?}", ::TAG, &key, &old_value) [INFO] [stderr] 1151 | | )), [INFO] [stderr] 1152 | | None => (), [INFO] [stderr] 1153 | | }; [INFO] [stderr] | |_________^ help: try this: `if let Some(old_value) = result.insert(key, value) { decode_map!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1572 | self::MAP => decode_map!(source), [INFO] [stderr] | ------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { decode_object!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1573 | self::OBJECT => decode_object!(source), [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { decode_object!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1573 | self::OBJECT => decode_object!(source), [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/value.rs:1015:24 [INFO] [stderr] | [INFO] [stderr] 1015 | match $source.take(len as u64).read_to_end(&mut result) { [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(len)` [INFO] [stderr] ... [INFO] [stderr] 1573 | self::OBJECT => decode_object!(source), [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:1232:9 [INFO] [stderr] | [INFO] [stderr] 1232 | / match result.insert(key, value) { [INFO] [stderr] 1233 | | Some(old_value) => return Err(Error::new( [INFO] [stderr] 1234 | | ErrorKind::InvalidData, format!("{}::value::decode_object!() -> duplicate key of old value: {:?}", ::TAG, &old_value) [INFO] [stderr] 1235 | | )), [INFO] [stderr] 1236 | | None => (), [INFO] [stderr] 1237 | | }; [INFO] [stderr] | |_________^ help: try this: `if let Some(old_value) = result.insert(key, value) { decode_object!(source) }` [INFO] [stderr] ... [INFO] [stderr] 1573 | self::OBJECT => decode_object!(source), [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/value.rs:1799:19 [INFO] [stderr] | [INFO] [stderr] 1799 | fn list_len(list: &Vec) -> io::Result { [INFO] [stderr] | ^^^^^^^^^^^ help: change this to: `&[Value]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(list.len())?, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1801 | let mut result: u32 = sum!(bytes_for_len!(list.len())?, 1)?; [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, v.len()?) }` [INFO] [stderr] ... [INFO] [stderr] 1804 | result = sum!(result, v.len()?)?; [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1808 | result = sum!(result, 1)?; [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:1809:5 [INFO] [stderr] | [INFO] [stderr] 1809 | / match result.cmp_int(&::std::i8::MAX) { [INFO] [stderr] 1810 | | // Now we need 3 more bytes [INFO] [stderr] 1811 | | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] 1812 | | _ => (), [INFO] [stderr] 1813 | | }; [INFO] [stderr] | |_____^ help: try this: `if let Ordering::Greater = result.cmp_int(&::std::i8::MAX) { result = sum!(result, 3)? }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 3) }` [INFO] [stderr] ... [INFO] [stderr] 1811 | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:1814:5 [INFO] [stderr] | [INFO] [stderr] 1814 | / match result <= MAX_DATA_SIZE { [INFO] [stderr] 1815 | | true => Ok(result), [INFO] [stderr] 1816 | | false => Err(Error::new(ErrorKind::InvalidData, format!("{}::value::list_len() -> data too large: {} bytes", ::TAG, result))), [INFO] [stderr] 1817 | | } [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if result <= MAX_DATA_SIZE { Ok(result) } else { Err(Error::new(ErrorKind::InvalidData, format!("{}::value::list_len() -> data too large: {} bytes", ::TAG, result))) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 26 [INFO] [stderr] --> src/value.rs:1821:1 [INFO] [stderr] | [INFO] [stderr] 1821 | / fn map_len(map: &BTreeMap) -> io::Result { [INFO] [stderr] 1822 | | // Type + count [INFO] [stderr] 1823 | | let mut result = sum!(bytes_for_len!(map.len())?, 1)?; [INFO] [stderr] 1824 | | // Items [INFO] [stderr] ... | [INFO] [stderr] 1839 | | } [INFO] [stderr] 1840 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(map.len())?, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1823 | let mut result = sum!(bytes_for_len!(map.len())?, 1)?; [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, mem::size_of::(), v.len()?) }` [INFO] [stderr] ... [INFO] [stderr] 1826 | result = sum!(result, mem::size_of::(), v.len()?)?; [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1830 | result = sum!(result, 1)?; [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:1831:5 [INFO] [stderr] | [INFO] [stderr] 1831 | / match result.cmp_int(&::std::i8::MAX) { [INFO] [stderr] 1832 | | // Now we need 3 more bytes [INFO] [stderr] 1833 | | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] 1834 | | _ => (), [INFO] [stderr] 1835 | | }; [INFO] [stderr] | |_____^ help: try this: `if let Ordering::Greater = result.cmp_int(&::std::i8::MAX) { result = sum!(result, 3)? }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 3) }` [INFO] [stderr] ... [INFO] [stderr] 1833 | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:1836:5 [INFO] [stderr] | [INFO] [stderr] 1836 | / match result <= MAX_DATA_SIZE { [INFO] [stderr] 1837 | | true => Ok(result), [INFO] [stderr] 1838 | | false => Err(Error::new(ErrorKind::InvalidData, format!("{}::value::map_len() -> data too large: {} bytes", ::TAG, result))), [INFO] [stderr] 1839 | | } [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if result <= MAX_DATA_SIZE { Ok(result) } else { Err(Error::new(ErrorKind::InvalidData, format!("{}::value::map_len() -> data too large: {} bytes", ::TAG, result))) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 30 [INFO] [stderr] --> src/value.rs:1843:1 [INFO] [stderr] | [INFO] [stderr] 1843 | / fn object_len(object: &HashMap) -> io::Result { [INFO] [stderr] 1844 | | // Type + count [INFO] [stderr] 1845 | | let mut result = sum!(bytes_for_len!(object.len())?, 1)?; [INFO] [stderr] 1846 | | // Items [INFO] [stderr] ... | [INFO] [stderr] 1869 | | } [INFO] [stderr] 1870 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_for_len!(object.len())?, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1845 | let mut result = sum!(bytes_for_len!(object.len())?, 1)?; [INFO] [stderr] | -------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, key_len, value.len()?, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1856 | result = sum!(result, key_len, value.len()?, 1)?; [INFO] [stderr] | -------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 1) }` [INFO] [stderr] ... [INFO] [stderr] 1860 | result = sum!(result, 1)?; [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:1861:5 [INFO] [stderr] | [INFO] [stderr] 1861 | / match result.cmp_int(&::std::i8::MAX) { [INFO] [stderr] 1862 | | // Now we need 3 more bytes [INFO] [stderr] 1863 | | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] 1864 | | _ => (), [INFO] [stderr] 1865 | | }; [INFO] [stderr] | |_____^ help: try this: `if let Ordering::Greater = result.cmp_int(&::std::i8::MAX) { result = sum!(result, 3)? }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, 3) }` [INFO] [stderr] ... [INFO] [stderr] 1863 | Ordering::Greater => result = sum!(result, 3)?, [INFO] [stderr] | --------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:1866:5 [INFO] [stderr] | [INFO] [stderr] 1866 | / match result <= MAX_DATA_SIZE { [INFO] [stderr] 1867 | | true => Ok(result), [INFO] [stderr] 1868 | | false => Err(Error::new(ErrorKind::InvalidData, format!("{}::value::object_len() -> data too large: {} bytes", ::TAG, result))), [INFO] [stderr] 1869 | | } [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if result <= MAX_DATA_SIZE { Ok(result) } else { Err(Error::new(ErrorKind::InvalidData, format!("{}::value::object_len() -> data too large: {} bytes", ::TAG, result))) }` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] ... [INFO] [stderr] 1885 | let total_size = sum!( [INFO] [stderr] | ______________________- [INFO] [stderr] 1886 | | str_len, [INFO] [stderr] 1887 | | // 1 for type, 1 for null terminator [INFO] [stderr] 1888 | | 2 + if str_len.cmp_int(&::std::i8::MAX) == Ordering::Greater { 4 } else { 1 } [INFO] [stderr] 1889 | | )?; [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 949 | if let Ok(current) = result { sum!( [INFO] [stderr] 950 | str_len, [INFO] [stderr] 951 | // 1 for type, 1 for null terminator [INFO] [stderr] 952 | 2 + if str_len.cmp_int(&::std::i8::MAX) == Ordering::Greater { 4 } else { 1 } [INFO] [stderr] 953 | ) }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(str_len, buf) } else { write_size!(str_len, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1901 | write_size!(str_len, buf)?; [INFO] [stderr] | ------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(str_len, buf) } else { write_size!(str_len, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1901 | write_size!(str_len, buf)?; [INFO] [stderr] | ------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(len, buf) } else { write_size!(len, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1944 | bytes_written = sum!(write_size!(len, buf)?, bytes_written)?; [INFO] [stderr] | --------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(len, buf) } else { write_size!(len, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1944 | bytes_written = sum!(write_size!(len, buf)?, bytes_written)?; [INFO] [stderr] | --------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(write_size!(len, buf)?, bytes_written) }` [INFO] [stderr] ... [INFO] [stderr] 1944 | bytes_written = sum!(write_size!(len, buf)?, bytes_written)?; [INFO] [stderr] | ------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(bytes_written, written) }` [INFO] [stderr] ... [INFO] [stderr] 1954 | bytes_written = sum!(bytes_written, written)?; [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/value.rs:1960:39 [INFO] [stderr] | [INFO] [stderr] 1960 | fn encode_value_list(size: u32, list: &Vec, buf: &mut Write) -> io::Result { [INFO] [stderr] | ^^^^^^^^^^^ help: change this to: `&[Value]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 26 [INFO] [stderr] --> src/value.rs:1960:1 [INFO] [stderr] | [INFO] [stderr] 1960 | / fn encode_value_list(size: u32, list: &Vec, buf: &mut Write) -> io::Result { [INFO] [stderr] 1961 | | let mut result = sum!( [INFO] [stderr] 1962 | | // Type [INFO] [stderr] 1963 | | write_int_be!(u8, LIST, buf)?, [INFO] [stderr] ... | [INFO] [stderr] 1977 | | Ok(result) [INFO] [stderr] 1978 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, LIST, buf) } else { write_int_be!(u8, LIST, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1963 | write_int_be!(u8, LIST, buf)?, [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] ... [INFO] [stderr] 1961 | let mut result = sum!( [INFO] [stderr] | ______________________- [INFO] [stderr] 1962 | | // Type [INFO] [stderr] 1963 | | write_int_be!(u8, LIST, buf)?, [INFO] [stderr] 1964 | | // Size [INFO] [stderr] ... | [INFO] [stderr] 1969 | | write_size!(list.len() as u32, buf)? [INFO] [stderr] 1970 | | )?; [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 949 | if let Ok(current) = result { sum!( [INFO] [stderr] 950 | // Type [INFO] [stderr] 951 | write_int_be!(u8, LIST, buf)?, [INFO] [stderr] 952 | // Size [INFO] [stderr] 953 | write_size!(size, buf)?, [INFO] [stderr] 954 | // Count [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1965 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1965 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(list.len() as u32, buf) } else { write_size!(list.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1969 | write_size!(list.len() as u32, buf)? [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(list.len() as u32, buf) } else { write_size!(list.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1969 | write_size!(list.len() as u32, buf)? [INFO] [stderr] | ----------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, v.encode(buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1974 | result = sum!(result, v.encode(buf)?)?; [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 32 [INFO] [stderr] --> src/value.rs:1981:1 [INFO] [stderr] | [INFO] [stderr] 1981 | / fn encode_value_map(size: u32, map: &BTreeMap, buf: &mut Write) -> io::Result { [INFO] [stderr] 1982 | | let mut result = sum!( [INFO] [stderr] 1983 | | // Type [INFO] [stderr] 1984 | | write_int_be!(u8, MAP, buf)?, [INFO] [stderr] ... | [INFO] [stderr] 1998 | | Ok(result) [INFO] [stderr] 1999 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, MAP, buf) } else { write_int_be!(u8, MAP, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1984 | write_int_be!(u8, MAP, buf)?, [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] ... [INFO] [stderr] 1982 | let mut result = sum!( [INFO] [stderr] | ______________________- [INFO] [stderr] 1983 | | // Type [INFO] [stderr] 1984 | | write_int_be!(u8, MAP, buf)?, [INFO] [stderr] 1985 | | // Size [INFO] [stderr] ... | [INFO] [stderr] 1990 | | write_size!(map.len() as u32, buf)? [INFO] [stderr] 1991 | | )?; [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 949 | if let Ok(current) = result { sum!( [INFO] [stderr] 950 | // Type [INFO] [stderr] 951 | write_int_be!(u8, MAP, buf)?, [INFO] [stderr] 952 | // Size [INFO] [stderr] 953 | write_size!(size, buf)?, [INFO] [stderr] 954 | // Count [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1986 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1986 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(map.len() as u32, buf) } else { write_size!(map.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1990 | write_size!(map.len() as u32, buf)? [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(map.len() as u32, buf) } else { write_size!(map.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1990 | write_size!(map.len() as u32, buf)? [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, write_int_be!(i32, key, buf)?, value.encode(buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 1995 | result = sum!(result, write_int_be!(i32, key, buf)?, value.encode(buf)?)?; [INFO] [stderr] | --------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(i32, key, buf) } else { write_int_be!(i32, key, buf) }` [INFO] [stderr] ... [INFO] [stderr] 1995 | result = sum!(result, write_int_be!(i32, key, buf)?, value.encode(buf)?)?; [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 36 [INFO] [stderr] --> src/value.rs:2006:1 [INFO] [stderr] | [INFO] [stderr] 2006 | / fn encode_value_object(size: u32, object: &HashMap, buf: &mut Write) -> io::Result { [INFO] [stderr] 2007 | | let mut result = sum!( [INFO] [stderr] 2008 | | // Type [INFO] [stderr] 2009 | | write_int_be!(u8, OBJECT, buf)?, [INFO] [stderr] ... | [INFO] [stderr] 2041 | | Ok(result) [INFO] [stderr] 2042 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, OBJECT, buf) } else { write_int_be!(u8, OBJECT, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2009 | write_int_be!(u8, OBJECT, buf)?, [INFO] [stderr] | ------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] ... [INFO] [stderr] 2007 | let mut result = sum!( [INFO] [stderr] | ______________________- [INFO] [stderr] 2008 | | // Type [INFO] [stderr] 2009 | | write_int_be!(u8, OBJECT, buf)?, [INFO] [stderr] 2010 | | // Size [INFO] [stderr] ... | [INFO] [stderr] 2015 | | write_size!(object.len() as u32, buf)? [INFO] [stderr] 2016 | | )?; [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 949 | if let Ok(current) = result { sum!( [INFO] [stderr] 950 | // Type [INFO] [stderr] 951 | write_int_be!(u8, OBJECT, buf)?, [INFO] [stderr] 952 | // Size [INFO] [stderr] 953 | write_size!(size, buf)?, [INFO] [stderr] 954 | // Count [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2011 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(size, buf) } else { write_size!(size, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2011 | write_size!(size, buf)?, [INFO] [stderr] | ---------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(object.len() as u32, buf) } else { write_size!(object.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2015 | write_size!(object.len() as u32, buf)? [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_size!(object.len() as u32, buf) } else { write_size!(object.len() as u32, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2015 | write_size!(object.len() as u32, buf)? [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:2021:18 [INFO] [stderr] | [INFO] [stderr] 2021 | result = match key_len <= OBJECT_KEY_MAX_LEN { [INFO] [stderr] | __________________^ [INFO] [stderr] 2022 | | true => sum!(result, write_int_be!(u8, key_len as u8, buf)?)?, [INFO] [stderr] 2023 | | false => return Err(Error::new( [INFO] [stderr] 2024 | | ErrorKind::InvalidData, [INFO] [stderr] 2025 | | format!("{}::value::encode_value_object() -> key length is limited to {} bytes, got: {}", ::TAG, OBJECT_KEY_MAX_LEN, &key_len) [INFO] [stderr] 2026 | | )), [INFO] [stderr] 2027 | | }; [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 2021 | result = if key_len <= OBJECT_KEY_MAX_LEN { sum!(result, write_int_be!(u8, key_len as u8, buf)?)? } else { return Err(Error::new( [INFO] [stderr] 2022 | ErrorKind::InvalidData, [INFO] [stderr] 2023 | format!("{}::value::encode_value_object() -> key length is limited to {} bytes, got: {}", ::TAG, OBJECT_KEY_MAX_LEN, &key_len) [INFO] [stderr] 2024 | )) }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, write_int_be!(u8, key_len as u8, buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 2022 | true => sum!(result, write_int_be!(u8, key_len as u8, buf)?)?, [INFO] [stderr] | ---------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/value.rs:860:22 [INFO] [stderr] | [INFO] [stderr] 860 | Ok(count) => match count == bytes.len() { [INFO] [stderr] | ______________________^ [INFO] [stderr] 861 | | true => Ok(count as u32), [INFO] [stderr] 862 | | false => Err(Error::new( [INFO] [stderr] 863 | | ErrorKind::Other, format!("{}::value::write_int_be!() -> expected to write {} byte(s); result: {}", ::TAG, bytes.len(), count) [INFO] [stderr] 864 | | )), [INFO] [stderr] 865 | | }, [INFO] [stderr] | |_________^ help: consider using an if/else expression: `if count == bytes.len() { write_int_be!(u8, key_len as u8, buf) } else { write_int_be!(u8, key_len as u8, buf) }` [INFO] [stderr] ... [INFO] [stderr] 2022 | true => sum!(result, write_int_be!(u8, key_len as u8, buf)?)?, [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, written) }` [INFO] [stderr] ... [INFO] [stderr] 2031 | Ordering::Equal => result = sum!(result, written)?, [INFO] [stderr] | --------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/value.rs:949:13 [INFO] [stderr] | [INFO] [stderr] 949 | / match result { [INFO] [stderr] 950 | | Ok(current) => result = { [INFO] [stderr] 951 | | let b = $b; [INFO] [stderr] 952 | | match b.cmp_int(&MAX_DATA_SIZE) { [INFO] [stderr] ... | [INFO] [stderr] 971 | | Err(_) => (), [INFO] [stderr] 972 | | }; [INFO] [stderr] | |_____________^ help: try this: `if let Ok(current) = result { sum!(result, value.encode(buf)?) }` [INFO] [stderr] ... [INFO] [stderr] 2038 | result = sum!(result, value.encode(buf)?)?; [INFO] [stderr] | -------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | i8, u8, u8, [INFO] [stderr] 48 | i8, u16, u16, [INFO] [stderr] 49 | i8, u32, u32, [INFO] [stderr] 50 | i8, u64, u64, [INFO] [stderr] 51 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | i8, u8, u8, [INFO] [stderr] 58 | i8, u16, u16, [INFO] [stderr] 59 | i8, u32, u32, [INFO] [stderr] 60 | i8, u64, u64, [INFO] [stderr] 61 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | i8, u8, u8, [INFO] [stderr] 48 | i8, u16, u16, [INFO] [stderr] 49 | i8, u32, u32, [INFO] [stderr] 50 | i8, u64, u64, [INFO] [stderr] 51 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 99 | / impl_signed_unsigned! { [INFO] [stderr] 100 | | isize, usize, usize, [INFO] [stderr] 101 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | isize, usize, usize, [INFO] [stderr] 48 | } } else { impl_signed_unsigned! { [INFO] [stderr] 49 | isize, usize, usize, [INFO] [stderr] 50 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 99 | / impl_signed_unsigned! { [INFO] [stderr] 100 | | isize, usize, usize, [INFO] [stderr] 101 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | isize, usize, usize, [INFO] [stderr] 58 | } } else { impl_signed_unsigned! { [INFO] [stderr] 59 | isize, usize, usize, [INFO] [stderr] 60 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | isize, u8, u64, [INFO] [stderr] 48 | isize, u16, u64, [INFO] [stderr] 49 | isize, u32, u64, [INFO] [stderr] 50 | isize, u64, u64, [INFO] [stderr] 51 | isize, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | isize, u8, u64, [INFO] [stderr] 58 | isize, u16, u64, [INFO] [stderr] 59 | isize, u32, u64, [INFO] [stderr] 60 | isize, u64, u64, [INFO] [stderr] 61 | isize, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i64 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i64 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:45 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 335 | / impl_same_sign! { [INFO] [stderr] 336 | | isize, i8, i64, [INFO] [stderr] 337 | | isize, i16, i64, [INFO] [stderr] 338 | | isize, i32, i64, [INFO] [stderr] ... | [INFO] [stderr] 346 | | usize, u128, u128, [INFO] [stderr] 347 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 289 [INFO] [stderr] --> tests/int_ordering.rs:383:1 [INFO] [stderr] | [INFO] [stderr] 383 | / fn test_ordering_greater() { [INFO] [stderr] 384 | | macro_rules! greater { ($($v: expr,)+) => {{ [INFO] [stderr] 385 | | $( [INFO] [stderr] 386 | | let v = $v; [INFO] [stderr] ... | [INFO] [stderr] 418 | | greater!(1_i8, 1_i16, 1_i32, 1_i64, 1_i128, 1_isize, 1_u8, 1_u16, 1_u32, 1_u64, 1_u128, 1_usize,); [INFO] [stderr] 419 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 325 [INFO] [stderr] --> tests/int_ordering.rs:422:1 [INFO] [stderr] | [INFO] [stderr] 422 | / fn test_ordering_equal() { [INFO] [stderr] 423 | | macro_rules! equal_to_negative { ($($v: expr,)+) => {{ [INFO] [stderr] 424 | | $( [INFO] [stderr] 425 | | let v = $v; [INFO] [stderr] ... | [INFO] [stderr] 476 | | equal_to_positive!(1_i8, 1_i16, 1_i32, 1_i64, 1_i128, 1_isize, 1_u8, 1_u16, 1_u32, 1_u64, 1_u128, 1_usize,); [INFO] [stderr] 477 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 181 [INFO] [stderr] --> tests/int_ordering.rs:480:1 [INFO] [stderr] | [INFO] [stderr] 480 | / fn test_ordering_less() { [INFO] [stderr] 481 | | macro_rules! less { ($($v: expr,)+) => {{ [INFO] [stderr] 482 | | $( [INFO] [stderr] 483 | | let v = $v; [INFO] [stderr] ... | [INFO] [stderr] 522 | | less!(-2_i8, -2_i16, -2_i32, -2_i64, -2_i128, -2_isize,); [INFO] [stderr] 523 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | i8, u8, u8, [INFO] [stderr] 48 | i8, u16, u16, [INFO] [stderr] 49 | i8, u32, u32, [INFO] [stderr] 50 | i8, u64, u64, [INFO] [stderr] 51 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | i8, u8, u8, [INFO] [stderr] 58 | i8, u16, u16, [INFO] [stderr] 59 | i8, u32, u32, [INFO] [stderr] 60 | i8, u64, u64, [INFO] [stderr] 61 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | i8, u8, u8, [INFO] [stderr] 48 | i8, u16, u16, [INFO] [stderr] 49 | i8, u32, u32, [INFO] [stderr] 50 | i8, u64, u64, [INFO] [stderr] 51 | i8, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 67 | / impl_signed_unsigned! { [INFO] [stderr] 68 | | i8, u8, u8, [INFO] [stderr] 69 | | i8, u16, u16, [INFO] [stderr] 70 | | i8, u32, u32, [INFO] [stderr] ... | [INFO] [stderr] 96 | | i128, u128, u128, [INFO] [stderr] 97 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 99 | / impl_signed_unsigned! { [INFO] [stderr] 100 | | isize, usize, usize, [INFO] [stderr] 101 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | isize, usize, usize, [INFO] [stderr] 48 | } } else { impl_signed_unsigned! { [INFO] [stderr] 49 | isize, usize, usize, [INFO] [stderr] 50 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 99 | / impl_signed_unsigned! { [INFO] [stderr] 100 | | isize, usize, usize, [INFO] [stderr] 101 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | isize, usize, usize, [INFO] [stderr] 58 | } } else { impl_signed_unsigned! { [INFO] [stderr] 59 | isize, usize, usize, [INFO] [stderr] 60 | } } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | / match *other >= 0 { [INFO] [stderr] 47 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 48 | | false => Ordering::Greater, [INFO] [stderr] 49 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 46 | if *other >= 0 { impl_signed_unsigned! { [INFO] [stderr] 47 | isize, u8, u64, [INFO] [stderr] 48 | isize, u16, u64, [INFO] [stderr] 49 | isize, u32, u64, [INFO] [stderr] 50 | isize, u64, u64, [INFO] [stderr] 51 | isize, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> tests/int_ordering.rs:56:21 [INFO] [stderr] | [INFO] [stderr] 56 | / match *self >= 0 { [INFO] [stderr] 57 | | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] 58 | | false => Ordering::Less, [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 56 | if *self >= 0 { impl_signed_unsigned! { [INFO] [stderr] 57 | isize, u8, u64, [INFO] [stderr] 58 | isize, u16, u64, [INFO] [stderr] 59 | isize, u32, u64, [INFO] [stderr] 60 | isize, u64, u64, [INFO] [stderr] 61 | isize, u128, u128, [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:47:33 [INFO] [stderr] | [INFO] [stderr] 47 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:57:62 [INFO] [stderr] | [INFO] [stderr] 57 | true => (*self as $as_unsigned).cmp(&(*other as $as_unsigned)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 149 | / impl_signed_unsigned! { [INFO] [stderr] 150 | | isize, u8, u64, [INFO] [stderr] 151 | | isize, u16, u64, [INFO] [stderr] 152 | | isize, u32, u64, [INFO] [stderr] ... | [INFO] [stderr] 160 | | i128, usize, u128, [INFO] [stderr] 161 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i64 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i64 to i128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `i128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 257 | / impl_same_sign! { [INFO] [stderr] 258 | | i8, i16, i16, [INFO] [stderr] 259 | | i8, i32, i32, [INFO] [stderr] 260 | | i8, i64, i64, [INFO] [stderr] ... | [INFO] [stderr] 270 | | i64, i128, i128, [INFO] [stderr] 271 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u16::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [INFO] [stderr] | [INFO] [stderr] 242 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*self)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:249:45 [INFO] [stderr] | [INFO] [stderr] 249 | (*self as $target).cmp(&(*other as $target)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u128::from(*other)` [INFO] [stderr] ... [INFO] [stderr] 273 | / impl_same_sign! { [INFO] [stderr] 274 | | u8, u16, u16, [INFO] [stderr] 275 | | u8, u32, u32, [INFO] [stderr] 276 | | u8, u64, u64, [INFO] [stderr] ... | [INFO] [stderr] 286 | | u64, u128, u128, [INFO] [stderr] 287 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u64 to u128 may become silently lossy if types change [INFO] [stderr] --> tests/int_ordering.rs:242:21 [WARN] too many lines in the log, truncating it