[INFO] cloning repository https://github.com/rdeoux-arrive/onewire [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rdeoux-arrive/onewire" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frdeoux-arrive%2Fonewire", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frdeoux-arrive%2Fonewire'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 18aac0c9e7c1fd1616efc046dfc6536731c65f32 [INFO] linting rdeoux-arrive/onewire against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frdeoux-arrive%2Fonewire" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rdeoux-arrive/onewire [INFO] finished tweaking git repo https://github.com/rdeoux-arrive/onewire [INFO] tweaked toml for git repo https://github.com/rdeoux-arrive/onewire written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rdeoux-arrive/onewire on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rdeoux-arrive/onewire already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unit-prefix v0.5.1 [INFO] [stderr] Downloaded pixels v0.15.0 [INFO] [stderr] Downloaded ravif v0.11.20 [INFO] [stderr] Downloaded ab_glyph v0.2.31 [INFO] [stderr] Downloaded serde_core v1.0.227 [INFO] [stderr] Downloaded gif v0.13.3 [INFO] [stderr] Downloaded serde_derive v1.0.227 [INFO] [stderr] Downloaded serde v1.0.227 [INFO] [stderr] Downloaded indicatif v0.18.0 [INFO] [stderr] Downloaded wide v0.7.33 [INFO] [stderr] Downloaded ultraviolet v0.9.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 583213af6be2da6aa6934522111c333c8b488359eef0eda831cc4dc3b1c4ab0c [INFO] running `Command { std: "docker" "start" "-a" "583213af6be2da6aa6934522111c333c8b488359eef0eda831cc4dc3b1c4ab0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "583213af6be2da6aa6934522111c333c8b488359eef0eda831cc4dc3b1c4ab0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "583213af6be2da6aa6934522111c333c8b488359eef0eda831cc4dc3b1c4ab0c", kill_on_drop: false }` [INFO] [stdout] 583213af6be2da6aa6934522111c333c8b488359eef0eda831cc4dc3b1c4ab0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c24c360592f587ed55ba1c4fad355703f3363d315d5e94c3b9dc444ef6748a0e [INFO] running `Command { std: "docker" "start" "-a" "c24c360592f587ed55ba1c4fad355703f3363d315d5e94c3b9dc444ef6748a0e", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Checking libloading v0.8.9 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling wayland-sys v0.31.7 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Checking bytemuck v1.23.2 [INFO] [stderr] Compiling wayland-client v0.31.11 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Compiling wayland-scanner v0.31.7 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking rustix v0.38.44 [INFO] [stderr] Checking indexmap v2.11.4 [INFO] [stderr] Compiling wayland-backend v0.3.11 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling wgpu-hal v0.19.5 [INFO] [stderr] Checking spirv v0.3.0+sdk-1.3.268.0 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking gpu-descriptor-types v0.1.2 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling built v0.7.7 [INFO] [stderr] Checking hexf-parse v0.2.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Checking gpu-descriptor v0.2.4 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking anyhow v1.0.100 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking crc32fast v1.5.0 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Compiling wgpu-core v0.19.4 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Checking wgpu-types v0.19.2 [INFO] [stderr] Checking glow v0.13.1 [INFO] [stderr] Checking renderdoc-sys v1.1.0 [INFO] [stderr] Compiling serde_core v1.0.227 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Checking memmap2 v0.9.8 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling wgpu v0.19.4 [INFO] [stderr] Checking wayland-protocols v0.32.9 [INFO] [stderr] Checking wayland-cursor v0.31.11 [INFO] [stderr] Checking safe_arch v0.7.4 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Checking anstyle-query v1.1.4 [INFO] [stderr] Compiling serde v1.0.227 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking weezl v0.1.10 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Checking imgref v1.12.0 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Checking bitstream-io v2.6.0 [INFO] [stderr] Checking zune-core v0.4.12 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking zune-jpeg v0.4.21 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking wide v0.7.33 [INFO] [stderr] Checking ab_glyph v0.2.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Checking equator v0.4.2 [INFO] [stderr] Checking fax v0.2.6 [INFO] [stderr] Checking aligned-vec v0.6.4 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking v_frame v0.3.9 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking naga v0.19.2 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking av1-grain v0.2.4 [INFO] [stderr] Checking gethostname v1.0.2 [INFO] [stderr] Checking fdeflate v0.3.7 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking avif-serialize v0.8.6 [INFO] [stderr] Checking pxfm v0.1.24 [INFO] [stderr] Checking lebe v0.5.3 [INFO] [stderr] Checking bit_field v0.10.3 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking rgb v0.8.52 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking clap_builder v4.5.48 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Checking exr v1.73.0 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.9 [INFO] [stderr] Checking smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking moxcms v0.7.5 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.9 [INFO] [stderr] Checking console v0.16.1 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Checking image-webp v0.2.4 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking gif v0.13.3 [INFO] [stderr] Checking png v0.18.0 [INFO] [stderr] Checking ravif v0.11.20 [INFO] [stderr] Checking ultraviolet v0.9.2 [INFO] [stderr] Checking tiff v0.10.3 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking pollster v0.3.0 [INFO] [stderr] Checking unit-prefix v0.5.1 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking clap v4.5.48 [INFO] [stderr] Checking indicatif v0.18.0 [INFO] [stderr] Checking winit v0.30.12 [INFO] [stderr] Checking image v0.25.8 [INFO] [stderr] Checking pixels v0.15.0 [INFO] [stderr] Checking onewire v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: binding's name is too similar to existing binding [INFO] [stdout] --> src/sample.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let timestamp_us = timestamp_s * 1e6; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: existing binding defined here [INFO] [stdout] --> src/sample.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let timestamp_s: f32 = cells.next().ok_or(Error::MissingRow)?.parse()?; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(clippy::pedantic)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(clippy::similar_names)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binding's name is too similar to existing binding [INFO] [stdout] --> src/sample.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let voltage_mv = voltage_v * 1e3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: existing binding defined here [INFO] [stdout] --> src/sample.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let voltage_v: f32 = cells.next().ok_or(Error::MissingRow)?.parse()?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binding's name is too similar to existing binding [INFO] [stdout] --> src/sample.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let timestamp_us = timestamp_s * 1e6; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: existing binding defined here [INFO] [stdout] --> src/sample.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let timestamp_s: f32 = cells.next().ok_or(Error::MissingRow)?.parse()?; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(clippy::pedantic)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(clippy::similar_names)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binding's name is too similar to existing binding [INFO] [stdout] --> src/sample.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let voltage_mv = voltage_v * 1e3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: existing binding defined here [INFO] [stdout] --> src/sample.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let voltage_v: f32 = cells.next().ok_or(Error::MissingRow)?.parse()?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field name starts with the struct's name [INFO] [stdout] --> src/graphics/text.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub text: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#struct_field_names [INFO] [stdout] = note: `#[warn(clippy::struct_field_names)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map().unwrap_or()` on a `Result` value [INFO] [stdout] --> src/graphics/text.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | / load_from_memory(TEXT_PNG) [INFO] [stdout] 40 | | .map(|img| { [INFO] [stdout] 41 | | let w = img.width() / u32::try_from(TEXT_CHARS.len()).unwrap_or(u32::MAX); [INFO] [stdout] 42 | | debug_assert!(w > 0); [INFO] [stdout] 43 | | w * u32::try_from(self.text.len()).unwrap_or(u32::MAX) [INFO] [stdout] 44 | | }) [INFO] [stdout] 45 | | .unwrap_or(0) [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or [INFO] [stdout] = note: `#[warn(clippy::map_unwrap_or)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: use `map_or(, )` instead [INFO] [stdout] | [INFO] [stdout] 40 ~ .map_or(0, |img| { [INFO] [stdout] 41 | let w = img.width() / u32::try_from(TEXT_CHARS.len()).unwrap_or(u32::MAX); [INFO] [stdout] 42 | debug_assert!(w > 0); [INFO] [stdout] 43 | w * u32::try_from(self.text.len()).unwrap_or(u32::MAX) [INFO] [stdout] 44 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `i32` to `f32` may cause a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide) [INFO] [stdout] --> src/sample.rs:33:27 [INFO] [stdout] | [INFO] [stdout] 33 | if timestamp_us < i32::MIN as f32 || timestamp_us > i32::MAX as f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss [INFO] [stdout] = note: `#[warn(clippy::cast_precision_loss)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `i32` to `f32` may cause a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide) [INFO] [stdout] --> src/sample.rs:33:61 [INFO] [stdout] | [INFO] [stdout] 33 | if timestamp_us < i32::MIN as f32 || timestamp_us > i32::MAX as f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `f32` to `i32` may truncate the value [INFO] [stdout] --> src/sample.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | timestamp: timestamp_us as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] = note: `#[warn(clippy::cast_possible_truncation)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `f32` to `i16` may truncate the value [INFO] [stdout] --> src/sample.rs:49:47 [INFO] [stdout] | [INFO] [stdout] 49 | voltage: Voltage::from_millivolts(voltage_mv as i16), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `i32` to `u32` may lose the sign of the value [INFO] [stdout] --> src/view.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | let x = (timestamp - self.settings.offset) as u32 * DIVISION_WIDTH [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, use `cast_unsigned()` instead: `(timestamp - self.settings.offset).cast_unsigned()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss [INFO] [stdout] = note: `#[warn(clippy::cast_sign_loss)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `i16` to `u32` may lose the sign of the value [INFO] [stdout] --> src/view.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let y = (self.settings.voltage.as_millivolts() * 4 - voltage.as_millivolts()) as u32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `i16` to `u32` may lose the sign of the value [INFO] [stdout] --> src/view.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | / self.settings.voltage.as_millivolts() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u32` to `i32` may wrap around the value [INFO] [stdout] --> src/view.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | (x * self.settings.period.as_micros() as u32 / DIVISION_WIDTH) as i32 + self.settings.offset [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, use `cast_signed()` instead: `(x * self.settings.period.as_micros() as u32 / DIVISION_WIDTH).cast_signed()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap [INFO] [stdout] = note: `#[warn(clippy::cast_possible_wrap)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u128` to `u32` may truncate the value [INFO] [stdout] --> src/view.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | (x * self.settings.period.as_micros() as u32 / DIVISION_WIDTH) as i32 + self.settings.offset [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u128` to `i32` may truncate the value [INFO] [stdout] --> src/view.rs:94:37 [INFO] [stdout] | [INFO] [stdout] 94 | && byte.timestamp + byte.duration.as_millis() as i32 > timestamp_min [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] help: ... or use `try_from` and handle the error accordingly [INFO] [stdout] | [INFO] [stdout] 94 - && byte.timestamp + byte.duration.as_millis() as i32 > timestamp_min [INFO] [stdout] 94 + && byte.timestamp + i32::try_from(byte.duration.as_millis()) > timestamp_min [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u128` to `i32` may truncate the value [INFO] [stdout] --> src/view.rs:98:50 [INFO] [stdout] | [INFO] [stdout] 98 | .timestamp_to_x(byte.timestamp + byte.duration.as_millis() as i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] help: ... or use `try_from` and handle the error accordingly [INFO] [stdout] | [INFO] [stdout] 98 - .timestamp_to_x(byte.timestamp + byte.duration.as_millis() as i32) [INFO] [stdout] 98 + .timestamp_to_x(byte.timestamp + i32::try_from(byte.duration.as_millis())) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u128` to `i32` may truncate the value [INFO] [stdout] --> src/view.rs:133:37 [INFO] [stdout] | [INFO] [stdout] 133 | && slot.timestamp + slot.duration.as_millis() as i32 > timestamp_min [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] help: ... or use `try_from` and handle the error accordingly [INFO] [stdout] | [INFO] [stdout] 133 - && slot.timestamp + slot.duration.as_millis() as i32 > timestamp_min [INFO] [stdout] 133 + && slot.timestamp + i32::try_from(slot.duration.as_millis()) > timestamp_min [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u128` to `i32` may truncate the value [INFO] [stdout] --> src/view.rs:137:50 [INFO] [stdout] | [INFO] [stdout] 137 | .timestamp_to_x(slot.timestamp + slot.duration.as_millis() as i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] help: ... or use `try_from` and handle the error accordingly [INFO] [stdout] | [INFO] [stdout] 137 - .timestamp_to_x(slot.timestamp + slot.duration.as_millis() as i32) [INFO] [stdout] 137 + .timestamp_to_x(slot.timestamp + i32::try_from(slot.duration.as_millis())) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `f64` to `u32` may truncate the value [INFO] [stdout] --> src/main.rs:142:25 [INFO] [stdout] | [INFO] [stdout] 142 | let x = position.x as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `f64` to `u32` may lose the sign of the value [INFO] [stdout] --> src/main.rs:142:25 [INFO] [stdout] | [INFO] [stdout] 142 | let x = position.x as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field name starts with the struct's name [INFO] [stdout] --> src/graphics/text.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub text: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#struct_field_names [INFO] [stdout] = note: `#[warn(clippy::struct_field_names)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map().unwrap_or()` on a `Result` value [INFO] [stdout] --> src/graphics/text.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | / load_from_memory(TEXT_PNG) [INFO] [stdout] 40 | | .map(|img| { [INFO] [stdout] 41 | | let w = img.width() / u32::try_from(TEXT_CHARS.len()).unwrap_or(u32::MAX); [INFO] [stdout] 42 | | debug_assert!(w > 0); [INFO] [stdout] 43 | | w * u32::try_from(self.text.len()).unwrap_or(u32::MAX) [INFO] [stdout] 44 | | }) [INFO] [stdout] 45 | | .unwrap_or(0) [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or [INFO] [stdout] = note: `#[warn(clippy::map_unwrap_or)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: use `map_or(, )` instead [INFO] [stdout] | [INFO] [stdout] 40 ~ .map_or(0, |img| { [INFO] [stdout] 41 | let w = img.width() / u32::try_from(TEXT_CHARS.len()).unwrap_or(u32::MAX); [INFO] [stdout] 42 | debug_assert!(w > 0); [INFO] [stdout] 43 | w * u32::try_from(self.text.len()).unwrap_or(u32::MAX) [INFO] [stdout] 44 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `i32` to `f32` may cause a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide) [INFO] [stdout] --> src/sample.rs:33:27 [INFO] [stdout] | [INFO] [stdout] 33 | if timestamp_us < i32::MIN as f32 || timestamp_us > i32::MAX as f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss [INFO] [stdout] = note: `#[warn(clippy::cast_precision_loss)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `i32` to `f32` may cause a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide) [INFO] [stdout] --> src/sample.rs:33:61 [INFO] [stdout] | [INFO] [stdout] 33 | if timestamp_us < i32::MIN as f32 || timestamp_us > i32::MAX as f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `f32` to `i32` may truncate the value [INFO] [stdout] --> src/sample.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | timestamp: timestamp_us as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] = note: `#[warn(clippy::cast_possible_truncation)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `f32` to `i16` may truncate the value [INFO] [stdout] --> src/sample.rs:49:47 [INFO] [stdout] | [INFO] [stdout] 49 | voltage: Voltage::from_millivolts(voltage_mv as i16), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `i32` to `u32` may lose the sign of the value [INFO] [stdout] --> src/view.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | let x = (timestamp - self.settings.offset) as u32 * DIVISION_WIDTH [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, use `cast_unsigned()` instead: `(timestamp - self.settings.offset).cast_unsigned()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss [INFO] [stdout] = note: `#[warn(clippy::cast_sign_loss)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `i16` to `u32` may lose the sign of the value [INFO] [stdout] --> src/view.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let y = (self.settings.voltage.as_millivolts() * 4 - voltage.as_millivolts()) as u32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `i16` to `u32` may lose the sign of the value [INFO] [stdout] --> src/view.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | / self.settings.voltage.as_millivolts() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u32` to `i32` may wrap around the value [INFO] [stdout] --> src/view.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | (x * self.settings.period.as_micros() as u32 / DIVISION_WIDTH) as i32 + self.settings.offset [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, use `cast_signed()` instead: `(x * self.settings.period.as_micros() as u32 / DIVISION_WIDTH).cast_signed()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap [INFO] [stdout] = note: `#[warn(clippy::cast_possible_wrap)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u128` to `u32` may truncate the value [INFO] [stdout] --> src/view.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | (x * self.settings.period.as_micros() as u32 / DIVISION_WIDTH) as i32 + self.settings.offset [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u128` to `i32` may truncate the value [INFO] [stdout] --> src/view.rs:94:37 [INFO] [stdout] | [INFO] [stdout] 94 | && byte.timestamp + byte.duration.as_millis() as i32 > timestamp_min [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] help: ... or use `try_from` and handle the error accordingly [INFO] [stdout] | [INFO] [stdout] 94 - && byte.timestamp + byte.duration.as_millis() as i32 > timestamp_min [INFO] [stdout] 94 + && byte.timestamp + i32::try_from(byte.duration.as_millis()) > timestamp_min [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u128` to `i32` may truncate the value [INFO] [stdout] --> src/view.rs:98:50 [INFO] [stdout] | [INFO] [stdout] 98 | .timestamp_to_x(byte.timestamp + byte.duration.as_millis() as i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] help: ... or use `try_from` and handle the error accordingly [INFO] [stdout] | [INFO] [stdout] 98 - .timestamp_to_x(byte.timestamp + byte.duration.as_millis() as i32) [INFO] [stdout] 98 + .timestamp_to_x(byte.timestamp + i32::try_from(byte.duration.as_millis())) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u128` to `i32` may truncate the value [INFO] [stdout] --> src/view.rs:133:37 [INFO] [stdout] | [INFO] [stdout] 133 | && slot.timestamp + slot.duration.as_millis() as i32 > timestamp_min [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] help: ... or use `try_from` and handle the error accordingly [INFO] [stdout] | [INFO] [stdout] 133 - && slot.timestamp + slot.duration.as_millis() as i32 > timestamp_min [INFO] [stdout] 133 + && slot.timestamp + i32::try_from(slot.duration.as_millis()) > timestamp_min [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `u128` to `i32` may truncate the value [INFO] [stdout] --> src/view.rs:137:50 [INFO] [stdout] | [INFO] [stdout] 137 | .timestamp_to_x(slot.timestamp + slot.duration.as_millis() as i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] help: ... or use `try_from` and handle the error accordingly [INFO] [stdout] | [INFO] [stdout] 137 - .timestamp_to_x(slot.timestamp + slot.duration.as_millis() as i32) [INFO] [stdout] 137 + .timestamp_to_x(slot.timestamp + i32::try_from(slot.duration.as_millis())) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `f64` to `u32` may truncate the value [INFO] [stdout] --> src/main.rs:142:25 [INFO] [stdout] | [INFO] [stdout] 142 | let x = position.x as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `f64` to `u32` may lose the sign of the value [INFO] [stdout] --> src/main.rs:142:25 [INFO] [stdout] | [INFO] [stdout] 142 | let x = position.x as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 01s [INFO] running `Command { std: "docker" "inspect" "c24c360592f587ed55ba1c4fad355703f3363d315d5e94c3b9dc444ef6748a0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c24c360592f587ed55ba1c4fad355703f3363d315d5e94c3b9dc444ef6748a0e", kill_on_drop: false }` [INFO] [stdout] c24c360592f587ed55ba1c4fad355703f3363d315d5e94c3b9dc444ef6748a0e