[INFO] cloning repository https://github.com/duarteapcoelho/evdev_game_tp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/duarteapcoelho/evdev_game_tp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduarteapcoelho%2Fevdev_game_tp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduarteapcoelho%2Fevdev_game_tp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ad37008305102c184343e6c153c9ce11c41d657f [INFO] linting duarteapcoelho/evdev_game_tp against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduarteapcoelho%2Fevdev_game_tp" "/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/duarteapcoelho/evdev_game_tp [INFO] finished tweaking git repo https://github.com/duarteapcoelho/evdev_game_tp [INFO] tweaked toml for git repo https://github.com/duarteapcoelho/evdev_game_tp written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/duarteapcoelho/evdev_game_tp 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/duarteapcoelho/evdev_game_tp 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 libudev v0.2.0 [INFO] [stderr] Downloaded evdev v0.13.2 [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] 110620d928cdcc1ffa932591c2ccc7a06ec5d904cefb5599c3b82023937f7fa5 [INFO] running `Command { std: "docker" "start" "-a" "110620d928cdcc1ffa932591c2ccc7a06ec5d904cefb5599c3b82023937f7fa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "110620d928cdcc1ffa932591c2ccc7a06ec5d904cefb5599c3b82023937f7fa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "110620d928cdcc1ffa932591c2ccc7a06ec5d904cefb5599c3b82023937f7fa5", kill_on_drop: false }` [INFO] [stdout] 110620d928cdcc1ffa932591c2ccc7a06ec5d904cefb5599c3b82023937f7fa5 [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] fb6f6b841818cc3f17c10a349ebec1fa22c83519ff6c8f77dcb6c3504b336a08 [INFO] running `Command { std: "docker" "start" "-a" "fb6f6b841818cc3f17c10a349ebec1fa22c83519ff6c8f77dcb6c3504b336a08", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Checking ioctl-sys v0.5.2 [INFO] [stderr] Checking clap_lex v1.0.0 [INFO] [stderr] Checking custom_derive v0.1.7 [INFO] [stderr] Checking enum_derive v0.1.7 [INFO] [stderr] Checking clap_builder v4.5.58 [INFO] [stderr] Compiling syn v2.0.116 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking uinput-sys v0.1.7 [INFO] [stderr] Checking libudev v0.2.0 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking nix v0.10.0 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Checking evdev v0.13.2 [INFO] [stderr] Checking uinput v0.1.3 [INFO] [stderr] Checking clap v4.5.58 [INFO] [stderr] Checking evdev_game_tp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: name `UNDEFINED` contains a capitalized acronym [INFO] [stdout] --> src/touchpad.rs:63:2 [INFO] [stdout] | [INFO] [stdout] 63 | UNDEFINED, [INFO] [stdout] | ^^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Undefined` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `POINTER` contains a capitalized acronym [INFO] [stdout] --> src/touchpad.rs:64:2 [INFO] [stdout] | [INFO] [stdout] 64 | POINTER, [INFO] [stdout] | ^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Pointer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `LEFT` contains a capitalized acronym [INFO] [stdout] --> src/touchpad.rs:65:2 [INFO] [stdout] | [INFO] [stdout] 65 | LEFT, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Left` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `RIGHT` contains a capitalized acronym [INFO] [stdout] --> src/touchpad.rs:66:2 [INFO] [stdout] | [INFO] [stdout] 66 | RIGHT, [INFO] [stdout] | ^^^^^ help: consider making the acronym lowercase, except the initial letter: `Right` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `SCROLL` contains a capitalized acronym [INFO] [stdout] --> src/touchpad.rs:67:2 [INFO] [stdout] | [INFO] [stdout] 67 | SCROLL [INFO] [stdout] | ^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Scroll` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/touchpad.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | if !d.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^ help: try: `d.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/touchpad.rs:158:16 [INFO] [stdout] | [INFO] [stdout] 158 | let is_mt = axes.map_or(false, |axis| { [INFO] [stdout] | _________________________^ [INFO] [stdout] 159 | | axis.contains(AbsoluteAxisCode::ABS_MT_SLOT) [INFO] [stdout] 160 | | }); [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] 158 - let is_mt = axes.map_or(false, |axis| { [INFO] [stdout] 158 + let is_mt = axes.is_some_and(|axis| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/touchpad.rs:244:3 [INFO] [stdout] | [INFO] [stdout] 244 | / match event.destructure() { [INFO] [stdout] 245 | | EventSummary::AbsoluteAxis(event, code, value)=> self.handle_absolute(event, code, value), [INFO] [stdout] 246 | | _ => {} [INFO] [stdout] 247 | | }; [INFO] [stdout] | |_________^ help: try: `if let EventSummary::AbsoluteAxis(event, code, value) = event.destructure() { self.handle_absolute(event, code, value) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `UNDEFINED` contains a capitalized acronym [INFO] [stdout] --> src/touchpad.rs:63:2 [INFO] [stdout] | [INFO] [stdout] 63 | UNDEFINED, [INFO] [stdout] | ^^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Undefined` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `POINTER` contains a capitalized acronym [INFO] [stdout] --> src/touchpad.rs:64:2 [INFO] [stdout] | [INFO] [stdout] 64 | POINTER, [INFO] [stdout] | ^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Pointer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `LEFT` contains a capitalized acronym [INFO] [stdout] --> src/touchpad.rs:65:2 [INFO] [stdout] | [INFO] [stdout] 65 | LEFT, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Left` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `RIGHT` contains a capitalized acronym [INFO] [stdout] --> src/touchpad.rs:66:2 [INFO] [stdout] | [INFO] [stdout] 66 | RIGHT, [INFO] [stdout] | ^^^^^ help: consider making the acronym lowercase, except the initial letter: `Right` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `SCROLL` contains a capitalized acronym [INFO] [stdout] --> src/touchpad.rs:67:2 [INFO] [stdout] | [INFO] [stdout] 67 | SCROLL [INFO] [stdout] | ^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Scroll` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/touchpad.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 163 | if !d.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^ help: try: `d.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/touchpad.rs:158:16 [INFO] [stdout] | [INFO] [stdout] 158 | let is_mt = axes.map_or(false, |axis| { [INFO] [stdout] | _________________________^ [INFO] [stdout] 159 | | axis.contains(AbsoluteAxisCode::ABS_MT_SLOT) [INFO] [stdout] 160 | | }); [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] 158 - let is_mt = axes.map_or(false, |axis| { [INFO] [stdout] 158 + let is_mt = axes.is_some_and(|axis| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/touchpad.rs:244:3 [INFO] [stdout] | [INFO] [stdout] 244 | / match event.destructure() { [INFO] [stdout] 245 | | EventSummary::AbsoluteAxis(event, code, value)=> self.handle_absolute(event, code, value), [INFO] [stdout] 246 | | _ => {} [INFO] [stdout] 247 | | }; [INFO] [stdout] | |_________^ help: try: `if let EventSummary::AbsoluteAxis(event, code, value) = event.destructure() { self.handle_absolute(event, code, value) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.29s [INFO] running `Command { std: "docker" "inspect" "fb6f6b841818cc3f17c10a349ebec1fa22c83519ff6c8f77dcb6c3504b336a08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb6f6b841818cc3f17c10a349ebec1fa22c83519ff6c8f77dcb6c3504b336a08", kill_on_drop: false }` [INFO] [stdout] fb6f6b841818cc3f17c10a349ebec1fa22c83519ff6c8f77dcb6c3504b336a08