[INFO] cloning repository https://github.com/randomstuffhere1/OPtimized-AutoClicker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/randomstuffhere1/OPtimized-AutoClicker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frandomstuffhere1%2FOPtimized-AutoClicker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frandomstuffhere1%2FOPtimized-AutoClicker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 24227a63a883f422dd1758a7f4b2067af5276f67 [INFO] linting randomstuffhere1/OPtimized-AutoClicker against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frandomstuffhere1%2FOPtimized-AutoClicker" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/randomstuffhere1/OPtimized-AutoClicker [INFO] finished tweaking git repo https://github.com/randomstuffhere1/OPtimized-AutoClicker [INFO] tweaked toml for git repo https://github.com/randomstuffhere1/OPtimized-AutoClicker written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/randomstuffhere1/OPtimized-AutoClicker 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/randomstuffhere1/OPtimized-AutoClicker 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] fff9e16ef8cbb015f591d2256ffb99be48f44e53ef019bccdac2d511bbc425f8 [INFO] running `Command { std: "docker" "start" "-a" "fff9e16ef8cbb015f591d2256ffb99be48f44e53ef019bccdac2d511bbc425f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fff9e16ef8cbb015f591d2256ffb99be48f44e53ef019bccdac2d511bbc425f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fff9e16ef8cbb015f591d2256ffb99be48f44e53ef019bccdac2d511bbc425f8", kill_on_drop: false }` [INFO] [stdout] fff9e16ef8cbb015f591d2256ffb99be48f44e53ef019bccdac2d511bbc425f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] b1cea772719fc992b8d8870323f74549ed9f418184f90cbaad3a0351929fd055 [INFO] running `Command { std: "docker" "start" "-a" "b1cea772719fc992b8d8870323f74549ed9f418184f90cbaad3a0351929fd055", kill_on_drop: false }` [INFO] [stderr] Compiling windows_x86_64_gnu v0.52.6 [INFO] [stderr] Compiling rust_autoclicker v2.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Checking windows-targets v0.52.6 [INFO] [stderr] Checking windows-core v0.52.0 [INFO] [stderr] Checking windows v0.52.0 [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 389 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 389 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:190:27 [INFO] [stdout] | [INFO] [stdout] 190 | keyboard_key: VK_SPACE.0 as u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `VK_SPACE.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/main.rs:203:1 [INFO] [stdout] | [INFO] [stdout] 203 | / impl Default for RepeatMode { [INFO] [stdout] 204 | | fn default() -> Self { [INFO] [stdout] 205 | | RepeatMode::UntilStopped [INFO] [stdout] 206 | | } [INFO] [stdout] 207 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 196 + #[derive(Default)] [INFO] [stdout] 197 | enum RepeatMode { [INFO] [stdout] 198 ~ #[default] [INFO] [stdout] 199 ~ UntilStopped, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/main.rs:233:1 [INFO] [stdout] | [INFO] [stdout] 233 | / impl Default for PositionSettings { [INFO] [stdout] 234 | | fn default() -> Self { [INFO] [stdout] 235 | | Self { [INFO] [stdout] 236 | | use_fixed_position: false, [INFO] [stdout] ... | [INFO] [stdout] 241 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] help: replace the manual implementation with a derive attribute [INFO] [stdout] | [INFO] [stdout] 227 + #[derive(Default)] [INFO] [stdout] 228 | struct PositionSettings { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | vk: VK_F2.0 as u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `VK_F2.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `FastRng` [INFO] [stdout] --> src/main.rs:399:5 [INFO] [stdout] | [INFO] [stdout] 399 | / pub fn new() -> Self { [INFO] [stdout] 400 | | // Seed from system time [INFO] [stdout] 401 | | let start = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_nanos() as u64; [INFO] [stdout] ... | [INFO] [stdout] 415 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 398 + impl Default for FastRng { [INFO] [stdout] 399 + fn default() -> Self { [INFO] [stdout] 400 + Self::new() [INFO] [stdout] 401 + } [INFO] [stdout] 402 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:190:27 [INFO] [stdout] | [INFO] [stdout] 190 | keyboard_key: VK_SPACE.0 as u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `VK_SPACE.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/main.rs:203:1 [INFO] [stdout] | [INFO] [stdout] 203 | / impl Default for RepeatMode { [INFO] [stdout] 204 | | fn default() -> Self { [INFO] [stdout] 205 | | RepeatMode::UntilStopped [INFO] [stdout] 206 | | } [INFO] [stdout] 207 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 196 + #[derive(Default)] [INFO] [stdout] 197 | enum RepeatMode { [INFO] [stdout] 198 ~ #[default] [INFO] [stdout] 199 ~ UntilStopped, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/main.rs:233:1 [INFO] [stdout] | [INFO] [stdout] 233 | / impl Default for PositionSettings { [INFO] [stdout] 234 | | fn default() -> Self { [INFO] [stdout] 235 | | Self { [INFO] [stdout] 236 | | use_fixed_position: false, [INFO] [stdout] ... | [INFO] [stdout] 241 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] help: replace the manual implementation with a derive attribute [INFO] [stdout] | [INFO] [stdout] 227 + #[derive(Default)] [INFO] [stdout] 228 | struct PositionSettings { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | vk: VK_F2.0 as u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `VK_F2.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/main.rs:519:8 [INFO] [stdout] | [INFO] [stdout] 519 | if code >= 0x30 && code <= 0x39 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&code)` [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] --> src/main.rs:526:8 [INFO] [stdout] | [INFO] [stdout] 526 | if code >= 0x41 && code <= 0x5A { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x5A).contains(&code)` [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: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:724:42 [INFO] [stdout] | [INFO] [stdout] 724 | settings.behavior.keyboard_key = STATE.current_keyboard_key.0 as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `STATE.current_keyboard_key.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:745:30 [INFO] [stdout] | [INFO] [stdout] 745 | settings.hotkey.vk = STATE.current_hotkey.vk.0 as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `STATE.current_hotkey.vk.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:746:37 [INFO] [stdout] | [INFO] [stdout] 746 | settings.hotkey.modifiers = STATE.current_hotkey.modifiers.0 as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `STATE.current_hotkey.modifiers.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `FastRng` [INFO] [stdout] --> src/main.rs:399:5 [INFO] [stdout] | [INFO] [stdout] 399 | / pub fn new() -> Self { [INFO] [stdout] 400 | | // Seed from system time [INFO] [stdout] 401 | | let start = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_nanos() as u64; [INFO] [stdout] ... | [INFO] [stdout] 415 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 398 + impl Default for FastRng { [INFO] [stdout] 399 + fn default() -> Self { [INFO] [stdout] 400 + Self::new() [INFO] [stdout] 401 + } [INFO] [stdout] 402 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/main.rs:519:8 [INFO] [stdout] | [INFO] [stdout] 519 | if code >= 0x30 && code <= 0x39 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&code)` [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] --> src/main.rs:526:8 [INFO] [stdout] | [INFO] [stdout] 526 | if code >= 0x41 && code <= 0x5A { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x5A).contains(&code)` [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: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:724:42 [INFO] [stdout] | [INFO] [stdout] 724 | settings.behavior.keyboard_key = STATE.current_keyboard_key.0 as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `STATE.current_keyboard_key.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:745:30 [INFO] [stdout] | [INFO] [stdout] 745 | settings.hotkey.vk = STATE.current_hotkey.vk.0 as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `STATE.current_hotkey.vk.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:746:37 [INFO] [stdout] | [INFO] [stdout] 746 | settings.hotkey.modifiers = STATE.current_hotkey.modifiers.0 as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `STATE.current_hotkey.modifiers.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1330:21 [INFO] [stdout] | [INFO] [stdout] 1330 | / ... (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 | | ... (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [INFO] [stdout] 1332 | | ... (cursor_pos.x <= corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance) || // Bottom-left [INFO] [stdout] 1333 | | ... (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance); // Bottom-right [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] 1330 - (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [INFO] [stdout] 1332 - (cursor_pos.x <= corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance) || // Bottom-left [INFO] [stdout] 1333 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance); // Bottom-right [INFO] [stdout] 1330 + !(cursor_pos.x > corner_tolerance && cursor_pos.x < screen_width - corner_tolerance || cursor_pos.y > corner_tolerance && cursor_pos.y < screen_height - corner_tolerance); // Bottom-right [INFO] [stdout] | [INFO] [stdout] 1330 - (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [INFO] [stdout] 1332 - (cursor_pos.x <= corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance) || // Bottom-left [INFO] [stdout] 1333 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance); // Bottom-right [INFO] [stdout] 1330 + (cursor_pos.y >= screen_height - corner_tolerance || cursor_pos.y <= corner_tolerance) && (cursor_pos.x >= screen_width - corner_tolerance || cursor_pos.x <= corner_tolerance); // Bottom-right [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1330:21 [INFO] [stdout] | [INFO] [stdout] 1330 | / (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 | | (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [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] 1330 - (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [INFO] [stdout] 1330 + !(cursor_pos.y > corner_tolerance || cursor_pos.x > corner_tolerance && cursor_pos.x < screen_width - corner_tolerance) || // Top-right [INFO] [stdout] | [INFO] [stdout] 1330 - (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [INFO] [stdout] 1330 + (cursor_pos.x >= screen_width - corner_tolerance || cursor_pos.x <= corner_tolerance) && cursor_pos.y <= corner_tolerance || // Top-right [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (19/7) [INFO] [stdout] --> src/main.rs:1171:1 [INFO] [stdout] | [INFO] [stdout] 1171 | / unsafe fn clicker_loop( [INFO] [stdout] 1172 | | hwnd: isize, [INFO] [stdout] 1173 | | h: i32, m: i32, s: i32, ms: i32, [INFO] [stdout] 1174 | | use_random: bool, random_offset: i32, [INFO] [stdout] ... | [INFO] [stdout] 1180 | | use_keyboard: bool, keyboard_key: u16 [INFO] [stdout] 1181 | | ) { [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1302:20 [INFO] [stdout] | [INFO] [stdout] 1302 | if click_count % 10 == 0 { is_running = IS_RUNNING.load(Ordering::Relaxed); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `click_count.is_multiple_of(10)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1435:16 [INFO] [stdout] | [INFO] [stdout] 1435 | if click_count % 100 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `click_count.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1481:20 [INFO] [stdout] | [INFO] [stdout] 1481 | if cache_counter % cache_refresh_interval == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `cache_counter.is_multiple_of(cache_refresh_interval)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1495:20 [INFO] [stdout] | [INFO] [stdout] 1495 | if click_count % 100 == 0 { is_running = IS_RUNNING.load(Ordering::Relaxed); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `click_count.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1506:20 [INFO] [stdout] | [INFO] [stdout] 1506 | if click_count % 200 == 0 { is_running = IS_RUNNING.load(Ordering::Relaxed); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `click_count.is_multiple_of(200)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1512:12 [INFO] [stdout] | [INFO] [stdout] 1512 | if click_count % 10000 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `click_count.is_multiple_of(10000)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1330:21 [INFO] [stdout] | [INFO] [stdout] 1330 | / ... (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 | | ... (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [INFO] [stdout] 1332 | | ... (cursor_pos.x <= corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance) || // Bottom-left [INFO] [stdout] 1333 | | ... (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance); // Bottom-right [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] 1330 - (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [INFO] [stdout] 1332 - (cursor_pos.x <= corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance) || // Bottom-left [INFO] [stdout] 1333 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance); // Bottom-right [INFO] [stdout] 1330 + !(cursor_pos.x > corner_tolerance && cursor_pos.x < screen_width - corner_tolerance || cursor_pos.y > corner_tolerance && cursor_pos.y < screen_height - corner_tolerance); // Bottom-right [INFO] [stdout] | [INFO] [stdout] 1330 - (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [INFO] [stdout] 1332 - (cursor_pos.x <= corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance) || // Bottom-left [INFO] [stdout] 1333 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y >= screen_height - corner_tolerance); // Bottom-right [INFO] [stdout] 1330 + (cursor_pos.y >= screen_height - corner_tolerance || cursor_pos.y <= corner_tolerance) && (cursor_pos.x >= screen_width - corner_tolerance || cursor_pos.x <= corner_tolerance); // Bottom-right [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:1330:21 [INFO] [stdout] | [INFO] [stdout] 1330 | / (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 | | (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [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] 1330 - (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [INFO] [stdout] 1330 + !(cursor_pos.y > corner_tolerance || cursor_pos.x > corner_tolerance && cursor_pos.x < screen_width - corner_tolerance) || // Top-right [INFO] [stdout] | [INFO] [stdout] 1330 - (cursor_pos.x <= corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-left [INFO] [stdout] 1331 - (cursor_pos.x >= screen_width - corner_tolerance && cursor_pos.y <= corner_tolerance) || // Top-right [INFO] [stdout] 1330 + (cursor_pos.x >= screen_width - corner_tolerance || cursor_pos.x <= corner_tolerance) && cursor_pos.y <= corner_tolerance || // Top-right [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (19/7) [INFO] [stdout] --> src/main.rs:1171:1 [INFO] [stdout] | [INFO] [stdout] 1171 | / unsafe fn clicker_loop( [INFO] [stdout] 1172 | | hwnd: isize, [INFO] [stdout] 1173 | | h: i32, m: i32, s: i32, ms: i32, [INFO] [stdout] 1174 | | use_random: bool, random_offset: i32, [INFO] [stdout] ... | [INFO] [stdout] 1180 | | use_keyboard: bool, keyboard_key: u16 [INFO] [stdout] 1181 | | ) { [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:1607:33 [INFO] [stdout] | [INFO] [stdout] 1607 | WINDOWS_HOOK_ID(WH_KEYBOARD_LL.0 as i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `WH_KEYBOARD_LL.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1302:20 [INFO] [stdout] | [INFO] [stdout] 1302 | if click_count % 10 == 0 { is_running = IS_RUNNING.load(Ordering::Relaxed); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `click_count.is_multiple_of(10)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:1764:9 [INFO] [stdout] | [INFO] [stdout] 1764 | / if n_code >= 0 && STATE.is_listening_for_key { [INFO] [stdout] 1765 | | if wparam.0 as u32 == WM_KEYDOWN { [INFO] [stdout] 1766 | | let p_keyboard = &*(lparam.0 as *const KBDLLHOOKSTRUCT); [INFO] [stdout] 1767 | | let key = VIRTUAL_KEY(p_keyboard.vkCode as u16); [INFO] [stdout] ... | [INFO] [stdout] 1823 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1764 ~ if n_code >= 0 && STATE.is_listening_for_key [INFO] [stdout] 1765 ~ && wparam.0 as u32 == WM_KEYDOWN { [INFO] [stdout] 1766 | let p_keyboard = &*(lparam.0 as *const KBDLLHOOKSTRUCT); [INFO] [stdout] ... [INFO] [stdout] 1821 | } [INFO] [stdout] 1822 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:1807:58 [INFO] [stdout] | [INFO] [stdout] 1807 | settings.behavior.keyboard_key = key.0 as u16; [INFO] [stdout] | ^^^^^^^^^^^^ help: try: `key.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1435:16 [INFO] [stdout] | [INFO] [stdout] 1435 | if click_count % 100 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `click_count.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:1865:60 [INFO] [stdout] | [INFO] [stdout] 1865 | STATE.h_mouse_hook = SetWindowsHookExW(WINDOWS_HOOK_ID(WH_MOUSE_LL.0 as i32), Some(mouse_hook_proc), h_instance, 0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try: `WH_MOUSE_LL.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1481:20 [INFO] [stdout] | [INFO] [stdout] 1481 | if cache_counter % cache_refresh_interval == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `cache_counter.is_multiple_of(cache_refresh_interval)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1495:20 [INFO] [stdout] | [INFO] [stdout] 1495 | if click_count % 100 == 0 { is_running = IS_RUNNING.load(Ordering::Relaxed); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `click_count.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1506:20 [INFO] [stdout] | [INFO] [stdout] 1506 | if click_count % 200 == 0 { is_running = IS_RUNNING.load(Ordering::Relaxed); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `click_count.is_multiple_of(200)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:1512:12 [INFO] [stdout] | [INFO] [stdout] 1512 | if click_count % 10000 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `click_count.is_multiple_of(10000)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:1883:59 [INFO] [stdout] | [INFO] [stdout] 1883 | create_ctrl(w!("STATIC"), w!("Settings"), SS_LEFT as u32, 10, 10, 100, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:1607:33 [INFO] [stdout] | [INFO] [stdout] 1607 | WINDOWS_HOOK_ID(WH_KEYBOARD_LL.0 as i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `WH_KEYBOARD_LL.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:1764:9 [INFO] [stdout] | [INFO] [stdout] 1764 | / if n_code >= 0 && STATE.is_listening_for_key { [INFO] [stdout] 1765 | | if wparam.0 as u32 == WM_KEYDOWN { [INFO] [stdout] 1766 | | let p_keyboard = &*(lparam.0 as *const KBDLLHOOKSTRUCT); [INFO] [stdout] 1767 | | let key = VIRTUAL_KEY(p_keyboard.vkCode as u16); [INFO] [stdout] ... | [INFO] [stdout] 1823 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 1764 ~ if n_code >= 0 && STATE.is_listening_for_key [INFO] [stdout] 1765 ~ && wparam.0 as u32 == WM_KEYDOWN { [INFO] [stdout] 1766 | let p_keyboard = &*(lparam.0 as *const KBDLLHOOKSTRUCT); [INFO] [stdout] ... [INFO] [stdout] 1821 | } [INFO] [stdout] 1822 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:1807:58 [INFO] [stdout] | [INFO] [stdout] 1807 | settings.behavior.keyboard_key = key.0 as u16; [INFO] [stdout] | ^^^^^^^^^^^^ help: try: `key.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:1975:65 [INFO] [stdout] | [INFO] [stdout] 1975 | create_ctrl(w!("STATIC"), w!("Hotkey Setting"), SS_LEFT as u32, 10, 10, 100, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:1865:60 [INFO] [stdout] | [INFO] [stdout] 1865 | STATE.h_mouse_hook = SetWindowsHookExW(WINDOWS_HOOK_ID(WH_MOUSE_LL.0 as i32), Some(mouse_hook_proc), h_instance, 0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try: `WH_MOUSE_LL.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:1883:59 [INFO] [stdout] | [INFO] [stdout] 1883 | create_ctrl(w!("STATIC"), w!("Settings"), SS_LEFT as u32, 10, 10, 100, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:2008:45 [INFO] [stdout] | [INFO] [stdout] 2008 | ... WINDOWS_HOOK_ID(WH_KEYBOARD_LL.0 as i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `WH_KEYBOARD_LL.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:1975:65 [INFO] [stdout] | [INFO] [stdout] 1975 | create_ctrl(w!("STATIC"), w!("Hotkey Setting"), SS_LEFT as u32, 10, 10, 100, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/main.rs:2108:1 [INFO] [stdout] | [INFO] [stdout] 2108 | unsafe fn create_ctrl(class_name: PCWSTR, text: PCWSTR, style: u32, x: i32, y: i32, w: i32, h: i32, parent: HWND, id: i32) -> HWND { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2132:41 [INFO] [stdout] | [INFO] [stdout] 2132 | create_ctrl(WC_STATIC, w!("hours"), SS_LEFT as u32, 85, 38, 40, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2134:40 [INFO] [stdout] | [INFO] [stdout] 2134 | create_ctrl(WC_STATIC, w!("mins"), SS_LEFT as u32, 185, 38, 40, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2136:40 [INFO] [stdout] | [INFO] [stdout] 2136 | create_ctrl(WC_STATIC, w!("secs"), SS_LEFT as u32, 285, 38, 40, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2138:48 [INFO] [stdout] | [INFO] [stdout] 2138 | create_ctrl(WC_STATIC, w!("milliseconds"), SS_LEFT as u32, 385, 38, 100, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:2008:45 [INFO] [stdout] | [INFO] [stdout] 2008 | ... WINDOWS_HOOK_ID(WH_KEYBOARD_LL.0 as i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `WH_KEYBOARD_LL.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2143:48 [INFO] [stdout] | [INFO] [stdout] 2143 | create_ctrl(WC_STATIC, w!("milliseconds"), SS_LEFT as u32, 225, 65, 80, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/main.rs:2108:1 [INFO] [stdout] | [INFO] [stdout] 2108 | unsafe fn create_ctrl(class_name: PCWSTR, text: PCWSTR, style: u32, x: i32, y: i32, w: i32, h: i32, parent: HWND, id: i32) -> HWND { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2162:49 [INFO] [stdout] | [INFO] [stdout] 2162 | create_ctrl(WC_STATIC, w!("Mouse button:"), SS_LEFT as u32, 20, 145, 90, 20, hwnd, IDC_STATIC_MOUSE_LABEL); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:2170:45 [INFO] [stdout] | [INFO] [stdout] 2170 | let key_name = get_key_name(VIRTUAL_KEY(VK_SPACE.0 as u16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `VK_SPACE.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2132:41 [INFO] [stdout] | [INFO] [stdout] 2132 | create_ctrl(WC_STATIC, w!("hours"), SS_LEFT as u32, 85, 38, 40, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2171:49 [INFO] [stdout] | [INFO] [stdout] 2171 | create_ctrl(WC_STATIC, w!("Keyboard key:"), SS_LEFT as u32, 20, 145, 90, 20, hwnd, IDC_STATIC_KEY_LABEL); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2178:47 [INFO] [stdout] | [INFO] [stdout] 2178 | create_ctrl(WC_STATIC, w!("Click type:"), SS_LEFT as u32, 20, 175, 90, 20, hwnd, IDC_STATIC_CLICK_TYPE_LABEL); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2134:40 [INFO] [stdout] | [INFO] [stdout] 2134 | create_ctrl(WC_STATIC, w!("mins"), SS_LEFT as u32, 185, 38, 40, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2136:40 [INFO] [stdout] | [INFO] [stdout] 2136 | create_ctrl(WC_STATIC, w!("secs"), SS_LEFT as u32, 285, 38, 40, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2138:48 [INFO] [stdout] | [INFO] [stdout] 2138 | create_ctrl(WC_STATIC, w!("milliseconds"), SS_LEFT as u32, 385, 38, 100, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2189:41 [INFO] [stdout] | [INFO] [stdout] 2189 | create_ctrl(WC_STATIC, w!("times"), SS_LEFT as u32, 435, 128, 40, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2143:48 [INFO] [stdout] | [INFO] [stdout] 2143 | create_ctrl(WC_STATIC, w!("milliseconds"), SS_LEFT as u32, 225, 65, 80, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2192:40 [INFO] [stdout] | [INFO] [stdout] 2192 | create_ctrl(WC_STATIC, w!("secs"), SS_LEFT as u32, 445, 158, 40, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2162:49 [INFO] [stdout] | [INFO] [stdout] 2162 | create_ctrl(WC_STATIC, w!("Mouse button:"), SS_LEFT as u32, 20, 145, 90, 20, hwnd, IDC_STATIC_MOUSE_LABEL); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/main.rs:2170:45 [INFO] [stdout] | [INFO] [stdout] 2170 | let key_name = get_key_name(VIRTUAL_KEY(VK_SPACE.0 as u16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `VK_SPACE.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2171:49 [INFO] [stdout] | [INFO] [stdout] 2171 | create_ctrl(WC_STATIC, w!("Keyboard key:"), SS_LEFT as u32, 20, 145, 90, 20, hwnd, IDC_STATIC_KEY_LABEL); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2205:37 [INFO] [stdout] | [INFO] [stdout] 2205 | create_ctrl(WC_STATIC, w!("X"), SS_LEFT as u32, 320, 282, 10, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2178:47 [INFO] [stdout] | [INFO] [stdout] 2178 | create_ctrl(WC_STATIC, w!("Click type:"), SS_LEFT as u32, 20, 175, 90, 20, hwnd, IDC_STATIC_CLICK_TYPE_LABEL); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2207:37 [INFO] [stdout] | [INFO] [stdout] 2207 | create_ctrl(WC_STATIC, w!("Y"), SS_LEFT as u32, 385, 282, 10, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2189:41 [INFO] [stdout] | [INFO] [stdout] 2189 | create_ctrl(WC_STATIC, w!("times"), SS_LEFT as u32, 435, 128, 40, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2192:40 [INFO] [stdout] | [INFO] [stdout] 2192 | create_ctrl(WC_STATIC, w!("secs"), SS_LEFT as u32, 445, 158, 40, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:2286:37 [INFO] [stdout] | [INFO] [stdout] 2286 | WINDOWS_HOOK_ID(WH_KEYBOARD_LL.0 as i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `WH_KEYBOARD_LL.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:2299:21 [INFO] [stdout] | [INFO] [stdout] 2299 | / if !IS_RUNNING.load(Ordering::Relaxed) { [INFO] [stdout] 2300 | | toggle_start_stop(); [INFO] [stdout] 2301 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 2298 ~ IDC_BTN_START [INFO] [stdout] 2299 ~ if !IS_RUNNING.load(Ordering::Relaxed) => { [INFO] [stdout] 2300 | toggle_start_stop(); [INFO] [stdout] 2301 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:2304:21 [INFO] [stdout] | [INFO] [stdout] 2304 | / if IS_RUNNING.load(Ordering::Relaxed) { [INFO] [stdout] 2305 | | // Check if repeat while held is enabled - if so, don't allow manual stop [INFO] [stdout] 2306 | | let repeat_while_held = is_dlg_button_checked(hwnd, IDC_RADIO_REPEAT_HOLD); [INFO] [stdout] 2307 | | if !repeat_while_held { [INFO] [stdout] ... | [INFO] [stdout] 2310 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 2303 ~ IDC_BTN_STOP [INFO] [stdout] 2304 ~ if IS_RUNNING.load(Ordering::Relaxed) => { [INFO] [stdout] 2305 | // Check if repeat while held is enabled - if so, don't allow manual stop [INFO] [stdout] ... [INFO] [stdout] 2309 | } [INFO] [stdout] 2310 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:2344:25 [INFO] [stdout] | [INFO] [stdout] 2344 | / if IS_RUNNING.load(Ordering::Relaxed) { [INFO] [stdout] 2345 | | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2346 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 2343 ~ IDC_RADIO_REPEAT_UNTIL [INFO] [stdout] 2344 ~ if IS_RUNNING.load(Ordering::Relaxed) => { [INFO] [stdout] 2345 | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2346 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:2349:25 [INFO] [stdout] | [INFO] [stdout] 2349 | / if IS_RUNNING.load(Ordering::Relaxed) { [INFO] [stdout] 2350 | | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2351 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 2348 ~ IDC_RADIO_REPEAT_TIMES [INFO] [stdout] 2349 ~ if IS_RUNNING.load(Ordering::Relaxed) => { [INFO] [stdout] 2350 | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2351 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:2354:25 [INFO] [stdout] | [INFO] [stdout] 2354 | / if IS_RUNNING.load(Ordering::Relaxed) { [INFO] [stdout] 2355 | | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2356 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 2353 ~ IDC_RADIO_REPEAT_TIME [INFO] [stdout] 2354 ~ if IS_RUNNING.load(Ordering::Relaxed) => { [INFO] [stdout] 2355 | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2356 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:2328:45 [INFO] [stdout] | [INFO] [stdout] 2328 | ... WINDOWS_HOOK_ID(WH_KEYBOARD_LL.0 as i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `WH_KEYBOARD_LL.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2205:37 [INFO] [stdout] | [INFO] [stdout] 2205 | create_ctrl(WC_STATIC, w!("X"), SS_LEFT as u32, 320, 282, 10, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u32` -> `u32`) [INFO] [stdout] --> src/main.rs:2207:37 [INFO] [stdout] | [INFO] [stdout] 2207 | create_ctrl(WC_STATIC, w!("Y"), SS_LEFT as u32, 385, 282, 10, 20, hwnd, -1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `SS_LEFT` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:2286:37 [INFO] [stdout] | [INFO] [stdout] 2286 | WINDOWS_HOOK_ID(WH_KEYBOARD_LL.0 as i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `WH_KEYBOARD_LL.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:2299:21 [INFO] [stdout] | [INFO] [stdout] 2299 | / if !IS_RUNNING.load(Ordering::Relaxed) { [INFO] [stdout] 2300 | | toggle_start_stop(); [INFO] [stdout] 2301 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 2298 ~ IDC_BTN_START [INFO] [stdout] 2299 ~ if !IS_RUNNING.load(Ordering::Relaxed) => { [INFO] [stdout] 2300 | toggle_start_stop(); [INFO] [stdout] 2301 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:2304:21 [INFO] [stdout] | [INFO] [stdout] 2304 | / if IS_RUNNING.load(Ordering::Relaxed) { [INFO] [stdout] 2305 | | // Check if repeat while held is enabled - if so, don't allow manual stop [INFO] [stdout] 2306 | | let repeat_while_held = is_dlg_button_checked(hwnd, IDC_RADIO_REPEAT_HOLD); [INFO] [stdout] 2307 | | if !repeat_while_held { [INFO] [stdout] ... | [INFO] [stdout] 2310 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 2303 ~ IDC_BTN_STOP [INFO] [stdout] 2304 ~ if IS_RUNNING.load(Ordering::Relaxed) => { [INFO] [stdout] 2305 | // Check if repeat while held is enabled - if so, don't allow manual stop [INFO] [stdout] ... [INFO] [stdout] 2309 | } [INFO] [stdout] 2310 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:2344:25 [INFO] [stdout] | [INFO] [stdout] 2344 | / if IS_RUNNING.load(Ordering::Relaxed) { [INFO] [stdout] 2345 | | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2346 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 2343 ~ IDC_RADIO_REPEAT_UNTIL [INFO] [stdout] 2344 ~ if IS_RUNNING.load(Ordering::Relaxed) => { [INFO] [stdout] 2345 | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2346 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:2349:25 [INFO] [stdout] | [INFO] [stdout] 2349 | / if IS_RUNNING.load(Ordering::Relaxed) { [INFO] [stdout] 2350 | | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2351 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 2348 ~ IDC_RADIO_REPEAT_TIMES [INFO] [stdout] 2349 ~ if IS_RUNNING.load(Ordering::Relaxed) => { [INFO] [stdout] 2350 | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2351 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/main.rs:2354:25 [INFO] [stdout] | [INFO] [stdout] 2354 | / if IS_RUNNING.load(Ordering::Relaxed) { [INFO] [stdout] 2355 | | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2356 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 2353 ~ IDC_RADIO_REPEAT_TIME [INFO] [stdout] 2354 ~ if IS_RUNNING.load(Ordering::Relaxed) => { [INFO] [stdout] 2355 | EnableWindow(GetDlgItem(hwnd, IDC_BTN_STOP), TRUE); [INFO] [stdout] 2356 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:2328:45 [INFO] [stdout] | [INFO] [stdout] 2328 | ... WINDOWS_HOOK_ID(WH_KEYBOARD_LL.0 as i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `WH_KEYBOARD_LL.0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.80s [INFO] running `Command { std: "docker" "inspect" "b1cea772719fc992b8d8870323f74549ed9f418184f90cbaad3a0351929fd055", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1cea772719fc992b8d8870323f74549ed9f418184f90cbaad3a0351929fd055", kill_on_drop: false }` [INFO] [stdout] b1cea772719fc992b8d8870323f74549ed9f418184f90cbaad3a0351929fd055