[INFO] cloning repository https://github.com/zeroows/qrcode-generator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zeroows/qrcode-generator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzeroows%2Fqrcode-generator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzeroows%2Fqrcode-generator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6f499fd38d28d2e97368f84e1cb19a1f61e98226 [INFO] linting zeroows/qrcode-generator against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzeroows%2Fqrcode-generator" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zeroows/qrcode-generator [INFO] finished tweaking git repo https://github.com/zeroows/qrcode-generator [INFO] tweaked toml for git repo https://github.com/zeroows/qrcode-generator written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zeroows/qrcode-generator 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/zeroows/qrcode-generator 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 manganis v0.7.3 [INFO] [stderr] Downloaded dioxus-core-types v0.7.3 [INFO] [stderr] Downloaded dioxus-cli-config v0.7.3 [INFO] [stderr] Downloaded manganis-macro v0.7.3 [INFO] [stderr] Downloaded subsecond-types v0.7.3 [INFO] [stderr] Downloaded manganis-core v0.7.3 [INFO] [stderr] Downloaded subsecond v0.7.3 [INFO] [stderr] Downloaded const-serialize v0.8.0-alpha.0 [INFO] [stderr] Downloaded charset v0.1.5 [INFO] [stderr] Downloaded dioxus-logger v0.7.3 [INFO] [stderr] Downloaded dioxus-devtools-types v0.7.3 [INFO] [stderr] Downloaded const-serialize-macro v0.7.2 [INFO] [stderr] Downloaded const-serialize v0.7.2 [INFO] [stderr] Downloaded lazy-js-bundle v0.7.3 [INFO] [stderr] Downloaded dioxus-asset-resolver v0.7.3 [INFO] [stderr] Downloaded dioxus-fullstack-macro v0.7.3 [INFO] [stderr] Downloaded dioxus-history v0.7.3 [INFO] [stderr] Downloaded dioxus-config-macro v0.7.3 [INFO] [stderr] Downloaded cocoa-foundation v0.2.1 [INFO] [stderr] Downloaded dioxus-config-macros v0.7.3 [INFO] [stderr] Downloaded dioxus v0.7.3 [INFO] [stderr] Downloaded dlopen2 v0.8.1 [INFO] [stderr] Downloaded cocoa v0.26.1 [INFO] [stderr] Downloaded rfd v0.17.2 [INFO] [stderr] Downloaded global-hotkey v0.7.0 [INFO] [stderr] Downloaded tray-icon v0.21.2 [INFO] [stderr] Downloaded derive_more-impl v2.1.0 [INFO] [stderr] Downloaded derive_more v2.1.0 [INFO] [stderr] Downloaded axum v0.8.7 [INFO] [stderr] Downloaded tower-http v0.6.7 [INFO] [stderr] Downloaded dioxus-core v0.7.3 [INFO] [stderr] Downloaded wry v0.53.5 [INFO] [stderr] Downloaded headers v0.4.1 [INFO] [stderr] Downloaded serde_qs v0.15.0 [INFO] [stderr] Downloaded dioxus-fullstack v0.7.3 [INFO] [stderr] Downloaded dioxus-router v0.7.3 [INFO] [stderr] Downloaded tao v0.34.5 [INFO] [stderr] Downloaded rustls-pki-types v1.13.1 [INFO] [stderr] Downloaded dioxus-html v0.7.3 [INFO] [stderr] Downloaded async-tungstenite v0.31.0 [INFO] [stderr] Downloaded dioxus-rsx v0.7.3 [INFO] [stderr] Downloaded sledgehammer_bindgen_macro v0.6.1 [INFO] [stderr] Downloaded dioxus-desktop v0.7.3 [INFO] [stderr] Downloaded dioxus-web v0.7.3 [INFO] [stderr] Downloaded signal-hook-registry v1.4.7 [INFO] [stderr] Downloaded const-str v0.7.0 [INFO] [stderr] Downloaded infer v0.19.0 [INFO] [stderr] Downloaded dioxus-interpreter-js v0.7.3 [INFO] [stderr] Downloaded content_disposition v0.4.0 [INFO] [stderr] Downloaded dioxus-router-macro v0.7.3 [INFO] [stderr] Downloaded dioxus-stores v0.7.3 [INFO] [stderr] Downloaded dioxus-document v0.7.3 [INFO] [stderr] Downloaded dioxus-hooks v0.7.3 [INFO] [stderr] Downloaded dlopen2_derive v0.4.2 [INFO] [stderr] Downloaded dioxus-fullstack-core v0.7.3 [INFO] [stderr] Downloaded dioxus-core-macro v0.7.3 [INFO] [stderr] Downloaded dioxus-signals v0.7.3 [INFO] [stderr] Downloaded base16 v0.2.1 [INFO] [stderr] Downloaded dioxus-stores-macro v0.7.3 [INFO] [stderr] Downloaded dioxus-devtools v0.7.3 [INFO] [stderr] Downloaded dioxus-html-internal-macro v0.7.3 [INFO] [stderr] Downloaded const-serialize-macro v0.8.0-alpha.0 [INFO] [stderr] Downloaded generational-box v0.7.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] c454073ac540c368f9ef07f3d95ab4f123e71d69aec50b26703972a3f3905066 [INFO] running `Command { std: "docker" "start" "-a" "c454073ac540c368f9ef07f3d95ab4f123e71d69aec50b26703972a3f3905066", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c454073ac540c368f9ef07f3d95ab4f123e71d69aec50b26703972a3f3905066", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c454073ac540c368f9ef07f3d95ab4f123e71d69aec50b26703972a3f3905066", kill_on_drop: false }` [INFO] [stdout] c454073ac540c368f9ef07f3d95ab4f123e71d69aec50b26703972a3f3905066 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 9dce0eab242d99dc87df09473667eb23d4d43af43f0071b6a0e103462c941602 [INFO] running `Command { std: "docker" "start" "-a" "9dce0eab242d99dc87df09473667eb23d4d43af43f0071b6a0e103462c941602", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.106 [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Checking unicode-ident v1.0.22 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.35 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling wasm-bindgen v0.2.106 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking dioxus-core-types v0.7.3 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking libloading v0.8.9 [INFO] [stderr] Checking rustc-hash v2.1.1 [INFO] [stderr] Checking longest-increasing-subsequence v0.1.0 [INFO] [stderr] Compiling lazy-js-bundle v0.7.3 [INFO] [stderr] Compiling convert_case v0.8.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking bytes v1.11.0 [INFO] [stderr] Checking qrcode-lib v0.1.0 (/opt/rustwide/workdir/qrcode-lib) [INFO] [stderr] Checking keyboard-types v0.7.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling dioxus-interpreter-js v0.7.3 [INFO] [stderr] Compiling dioxus-document v0.7.3 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Checking sledgehammer_utils v0.3.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling dioxus-web v0.7.3 [INFO] [stdout] warning: manual check for common ascii range [INFO] [stdout] --> qrcode-lib/src/segment.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | assert!(text.bytes().all(|b| (b'0' ..= b'9').contains(&b)), "String contains non-numeric characters"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check [INFO] [stdout] = note: `#[warn(clippy::manual_is_ascii_check)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 101 - assert!(text.bytes().all(|b| (b'0' ..= b'9').contains(&b)), "String contains non-numeric characters"); [INFO] [stdout] 101 + assert!(text.bytes().all(|b: u8| b.is_ascii_digit()), "String contains non-numeric characters"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling base16 v0.2.1 [INFO] [stdout] warning: manual check for common ascii range [INFO] [stdout] --> qrcode-lib/src/segment.rs:213:24 [INFO] [stdout] | [INFO] [stdout] 213 | text.chars().all(|c| ('0' ..= '9').contains(&c)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 213 - text.chars().all(|c| ('0' ..= '9').contains(&c)) [INFO] [stdout] 213 + text.chars().all(|c: char| c.is_ascii_digit()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> qrcode-lib/src/qrcode.rs:128:7 [INFO] [stdout] | [INFO] [stdout] 128 | if dataused.map_or(false, |n| n <= datacapacitybits) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 128 - if dataused.map_or(false, |n| n <= datacapacitybits) { [INFO] [stdout] 128 + if dataused.is_some_and(|n| n <= datacapacitybits) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> qrcode-lib/src/qrcode.rs:209:25 [INFO] [stdout] | [INFO] [stdout] 209 | let mut minpenalty = std::i32::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 209 - let mut minpenalty = std::i32::MAX; [INFO] [stdout] 209 + let mut minpenalty = i32::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> qrcode-lib/src/qrcode.rs:293:10 [INFO] [stdout] | [INFO] [stdout] 293 | if !(i == 0 && j == 0 || i == 0 && j == numalign - 1 || i == numalign - 1 && j == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 293 - if !(i == 0 && j == 0 || i == 0 && j == numalign - 1 || i == numalign - 1 && j == 0) { [INFO] [stdout] 293 + if !(!(i != 0 || j != 0 && j != numalign - 1) || i == numalign - 1 && j == 0) { [INFO] [stdout] | [INFO] [stdout] 293 - if !(i == 0 && j == 0 || i == 0 && j == numalign - 1 || i == numalign - 1 && j == 0) { [INFO] [stdout] 293 + if !((j == numalign - 1 || j == 0) && i == 0 || i == numalign - 1 && j == 0) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> qrcode-lib/src/qrcode.rs:540:17 [INFO] [stdout] | [INFO] [stdout] 540 | debug_assert!(0 <= k && k <= 9); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(0..=9).contains(&k)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> qrcode-lib/src/qrcode.rs:542:17 [INFO] [stdout] | [INFO] [stdout] 542 | debug_assert!(0 <= result && result <= 2568888); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..=2568888).contains(&result)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking http v1.4.0 [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> qrcode-lib/src/fancy.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | / (r < 7 && c < 7) || [INFO] [stdout] 227 | | (r < 7 && c >= width.saturating_sub(7)) || [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 226 - (r < 7 && c < 7) || [INFO] [stdout] 227 - (r < 7 && c >= width.saturating_sub(7)) || [INFO] [stdout] 226 + !(r >= 7 || c >= 7 && c < width.saturating_sub(7)) || [INFO] [stdout] | [INFO] [stdout] 226 - (r < 7 && c < 7) || [INFO] [stdout] 227 - (r < 7 && c >= width.saturating_sub(7)) || [INFO] [stdout] 226 + (c >= width.saturating_sub(7) || c < 7) && r < 7 || [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking send_wrapper v0.6.0 [INFO] [stderr] Checking dioxus-config-macros v0.7.3 [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> qrcode-lib/src/render.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | svg.push_str("\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `svg.push('\n')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] = note: `#[warn(clippy::single_char_add_str)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> qrcode-lib/src/render.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | svg.push_str("\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `svg.push('\n')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/fancy_styled.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | options.color_background = "#FAF5FF".to_string(); // Light purple [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FAF5FF".to_string(), color_data: "#6B4B8A".to_string(), color_finder: "#8B5CF6".to_string(), shape_module: ModuleShape::RoundedSquare(0.3), shape_finder: FinderShape::Rounded(1.0), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/fancy_styled.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] = note: `#[warn(clippy::field_reassign_with_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/fancy_styled.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | options.color_background = "#F5F3FF".to_string(); // Very light purple [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#F5F3FF".to_string(), color_data: "#7C3AED".to_string(), color_finder: "#A78BFA".to_string(), shape_module: ModuleShape::Circle, shape_finder: FinderShape::Rounded(1.5), center_text: Some("SCAN".to_string()), overlay_scale: 0.25, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/fancy_styled.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/fancy_styled.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | options.color_background = "#FFFFFF".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FFFFFF".to_string(), color_data: "#000000".to_string(), color_finder: "#000000".to_string(), shape_module: ModuleShape::Square, shape_finder: FinderShape::Square, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/fancy_styled.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/fancy_styled.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | options.color_background = "#FAF5FF".to_string(); // Light purple [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FAF5FF".to_string(), color_data: "#5B4B8A".to_string(), color_finder: "#7C3AED".to_string(), shape_module: ModuleShape::RoundedSquare(0.4), shape_finder: FinderShape::Rounded(2.0), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/fancy_styled.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stdout] warning: manual check for common ascii range [INFO] [stdout] --> qrcode-lib/src/segment.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | assert!(text.bytes().all(|b| (b'0' ..= b'9').contains(&b)), "String contains non-numeric characters"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check [INFO] [stdout] = note: `#[warn(clippy::manual_is_ascii_check)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 101 - assert!(text.bytes().all(|b| (b'0' ..= b'9').contains(&b)), "String contains non-numeric characters"); [INFO] [stdout] 101 + assert!(text.bytes().all(|b: u8| b.is_ascii_digit()), "String contains non-numeric characters"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual check for common ascii range [INFO] [stdout] --> qrcode-lib/src/segment.rs:213:24 [INFO] [stdout] | [INFO] [stdout] 213 | text.chars().all(|c| ('0' ..= '9').contains(&c)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 213 - text.chars().all(|c| ('0' ..= '9').contains(&c)) [INFO] [stdout] 213 + text.chars().all(|c: char| c.is_ascii_digit()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> qrcode-lib/src/qrcode.rs:128:7 [INFO] [stdout] | [INFO] [stdout] 128 | if dataused.map_or(false, |n| n <= datacapacitybits) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 128 - if dataused.map_or(false, |n| n <= datacapacitybits) { [INFO] [stdout] 128 + if dataused.is_some_and(|n| n <= datacapacitybits) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> qrcode-lib/src/qrcode.rs:209:25 [INFO] [stdout] | [INFO] [stdout] 209 | let mut minpenalty = std::i32::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 209 - let mut minpenalty = std::i32::MAX; [INFO] [stdout] 209 + let mut minpenalty = i32::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> qrcode-lib/src/qrcode.rs:293:10 [INFO] [stdout] | [INFO] [stdout] 293 | if !(i == 0 && j == 0 || i == 0 && j == numalign - 1 || i == numalign - 1 && j == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 293 - if !(i == 0 && j == 0 || i == 0 && j == numalign - 1 || i == numalign - 1 && j == 0) { [INFO] [stdout] 293 + if !(!(i != 0 || j != 0 && j != numalign - 1) || i == numalign - 1 && j == 0) { [INFO] [stdout] | [INFO] [stdout] 293 - if !(i == 0 && j == 0 || i == 0 && j == numalign - 1 || i == numalign - 1 && j == 0) { [INFO] [stdout] 293 + if !((j == numalign - 1 || j == 0) && i == 0 || i == numalign - 1 && j == 0) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> qrcode-lib/src/qrcode.rs:540:17 [INFO] [stdout] | [INFO] [stdout] 540 | debug_assert!(0 <= k && k <= 9); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use: `(0..=9).contains(&k)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> qrcode-lib/src/qrcode.rs:542:17 [INFO] [stdout] | [INFO] [stdout] 542 | debug_assert!(0 <= result && result <= 2568888); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..=2568888).contains(&result)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> qrcode-lib/src/fancy.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | / (r < 7 && c < 7) || [INFO] [stdout] 227 | | (r < 7 && c >= width.saturating_sub(7)) || [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 226 - (r < 7 && c < 7) || [INFO] [stdout] 227 - (r < 7 && c >= width.saturating_sub(7)) || [INFO] [stdout] 226 + !(r >= 7 || c >= 7 && c < width.saturating_sub(7)) || [INFO] [stdout] | [INFO] [stdout] 226 - (r < 7 && c < 7) || [INFO] [stdout] 227 - (r < 7 && c >= width.saturating_sub(7)) || [INFO] [stdout] 226 + (c >= width.saturating_sub(7) || c < 7) && r < 7 || [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/src/fancy.rs:351:9 [INFO] [stdout] | [INFO] [stdout] 351 | options.color_data = "#FF0000".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `fancy::FancyOptions { color_data: "#FF0000".to_string(), shape_module: ModuleShape::Circle, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/src/fancy.rs:350:9 [INFO] [stdout] | [INFO] [stdout] 350 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] = note: `#[warn(clippy::field_reassign_with_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> qrcode-lib/src/render.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | svg.push_str("\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `svg.push('\n')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] = note: `#[warn(clippy::single_char_add_str)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> qrcode-lib/src/render.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | svg.push_str("\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `svg.push('\n')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking euclid v0.22.11 [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/fancy_qr.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | options.color_background = "#FAF5FF".to_string(); // Light purple background [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FAF5FF".to_string(), color_data: "#6B4B8A".to_string(), color_finder: "#8B5CF6".to_string(), shape_module: ModuleShape::Circle, shape_finder: FinderShape::Rounded(1.5), center_text: Some("SCAN ME".to_string()), overlay_scale: 0.2, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/fancy_qr.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] = note: `#[warn(clippy::field_reassign_with_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/branded.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | options.color_background = "#FFFFFF".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FFFFFF".to_string(), color_data: "#4d3695".to_string(), color_finder: "#4d3695".to_string(), shape_module: ModuleShape::RoundedSquare(0.3), shape_finder: FinderShape::Rounded(1.5), center_image_url: Some("logo-icon.svg".to_string()), overlay_scale: 0.3, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/branded.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] = note: `#[warn(clippy::field_reassign_with_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/branded.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | options.color_background = "#F8F7FF".to_string(); // Very light purple [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#F8F7FF".to_string(), color_data: "#4d3695".to_string(), color_finder: "#6B4B8A".to_string(), shape_module: ModuleShape::Circle, shape_finder: FinderShape::Rounded(2.0), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/branded.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/branded.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | options.color_background = "#FFFFFF".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FFFFFF".to_string(), color_data: "#000000".to_string(), color_finder: "#4d3695".to_string(), shape_module: ModuleShape::Square, shape_finder: FinderShape::Rounded(1.0), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/branded.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/branded.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | options.color_background = "#F5F3FF".to_string(); // Very light purple (cleaner) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#F5F3FF".to_string(), color_data: "#4d3695".to_string(), color_finder: "#5B34A8".to_string(), shape_module: ModuleShape::Circle, shape_finder: FinderShape::Rounded(2.0), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/branded.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/branded.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | options.color_background = "#FFFFFF".to_string(); // Pure white [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FFFFFF".to_string(), color_data: "#4d3695".to_string(), color_finder: "#4d3695".to_string(), shape_module: ModuleShape::RoundedSquare(0.35), shape_finder: FinderShape::Rounded(1.8), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/branded.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/branded.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | options.color_background = "#FFFFFF".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FFFFFF".to_string(), color_data: "#1a1a1a".to_string(), color_finder: "#4d3695".to_string(), shape_module: ModuleShape::RoundedSquare(0.25), shape_finder: FinderShape::Rounded(2.2), overlay_scale: 0.0, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/branded.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/branded.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | options.color_background = "#FFFFFF".to_string(); // Pure white [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FFFFFF".to_string(), color_data: "#000000".to_string(), color_finder: "#4d3695".to_string(), shape_module: ModuleShape::Square, shape_finder: FinderShape::Rounded(1.5), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/branded.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/branded.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | options.color_background = "#FAF5FF".to_string(); // Light purple [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FAF5FF".to_string(), color_data: "#6B4B8A".to_string(), color_finder: "#4d3695".to_string(), shape_module: ModuleShape::Circle, shape_finder: FinderShape::Rounded(2.5), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/branded.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> qrcode-lib/examples/branded.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | options.color_background = "#FAF5FF".to_string(); // Light purple background [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `qrcode_lib::fancy::FancyOptions { color_background: "#FAF5FF".to_string(), color_data: "#6B4B8A".to_string(), color_finder: "#4d3695".to_string(), shape_module: ModuleShape::Square, shape_finder: FinderShape::Rounded(1.5), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> qrcode-lib/examples/branded.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | let mut options = FancyOptions::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling dioxus-config-macro v0.7.3 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking memmap2 v0.9.9 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking const_format v0.2.35 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.106 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling macro-string v0.1.4 [INFO] [stderr] Compiling dioxus-rsx v0.7.3 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling warnings-macro v0.2.0 [INFO] [stderr] Compiling const-serialize-macro v0.7.2 [INFO] [stderr] Compiling const-serialize-macro v0.8.0-alpha.0 [INFO] [stderr] Compiling dioxus-html-internal-macro v0.7.3 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling sledgehammer_bindgen_macro v0.6.1 [INFO] [stderr] Compiling dioxus-router-macro v0.7.3 [INFO] [stderr] Compiling const-serialize v0.7.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling dioxus-stores-macro v0.7.3 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling dioxus-core-macro v0.7.3 [INFO] [stderr] Checking tracing v0.1.43 [INFO] [stderr] Checking tungstenite v0.27.0 [INFO] [stderr] Checking generational-box v0.7.3 [INFO] [stderr] Checking warnings v0.2.1 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.106 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Compiling enumset_derive v0.14.0 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking js-sys v0.3.83 [INFO] [stderr] Checking dioxus-cli-config v0.7.3 [INFO] [stderr] Checking sledgehammer_bindgen v0.6.0 [INFO] [stderr] Checking dioxus-logger v0.7.3 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.1 [INFO] [stderr] Checking subsecond-types v0.7.3 [INFO] [stderr] Checking const-serialize v0.8.0-alpha.0 [INFO] [stderr] Checking enumset v1.1.10 [INFO] [stderr] Checking manganis-core v0.7.3 [INFO] [stderr] Checking subsecond v0.7.3 [INFO] [stderr] Checking dioxus-core v0.7.3 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Compiling manganis-macro v0.7.3 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking manganis v0.7.3 [INFO] [stderr] Checking dioxus-signals v0.7.3 [INFO] [stderr] Checking dioxus-history v0.7.3 [INFO] [stderr] Checking dioxus-devtools-types v0.7.3 [INFO] [stderr] Checking web-sys v0.3.83 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.56 [INFO] [stderr] Checking serde-wasm-bindgen v0.6.5 [INFO] [stderr] Checking gloo-timers v0.3.0 [INFO] [stderr] Checking dioxus-hooks v0.7.3 [INFO] [stderr] Checking dioxus-devtools v0.7.3 [INFO] [stderr] Checking dioxus-stores v0.7.3 [INFO] [stderr] Checking dioxus-html v0.7.3 [INFO] [stderr] Checking dioxus-router v0.7.3 [INFO] [stderr] Checking wasm-streams v0.4.2 [INFO] [stderr] Checking dioxus-asset-resolver v0.7.3 [INFO] [stderr] Checking dioxus v0.7.3 [INFO] [stderr] Checking qrcode-app v0.1.0 (/opt/rustwide/workdir/qrcode-app) [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> qrcode-app/src/components/home.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | let mut svg_output = use_signal(|| String::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `String::new` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> qrcode-app/src/components/home.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | let mut svg_output = use_signal(|| String::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `String::new` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 47.07s [INFO] running `Command { std: "docker" "inspect" "9dce0eab242d99dc87df09473667eb23d4d43af43f0071b6a0e103462c941602", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9dce0eab242d99dc87df09473667eb23d4d43af43f0071b6a0e103462c941602", kill_on_drop: false }` [INFO] [stdout] 9dce0eab242d99dc87df09473667eb23d4d43af43f0071b6a0e103462c941602