[INFO] fetching crate ttk4145_elevator_server 0.1.3... [INFO] checking ttk4145_elevator_server-0.1.3 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate ttk4145_elevator_server 0.1.3 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate ttk4145_elevator_server 0.1.3 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ttk4145_elevator_server 0.1.3 [INFO] finished tweaking crates.io crate ttk4145_elevator_server 0.1.3 [INFO] tweaked toml for crates.io crate ttk4145_elevator_server 0.1.3 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00d78c46e1173cca212bc8a6a248b0b2e00fc6e39bf08001940ccd3bfe16385e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "00d78c46e1173cca212bc8a6a248b0b2e00fc6e39bf08001940ccd3bfe16385e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00d78c46e1173cca212bc8a6a248b0b2e00fc6e39bf08001940ccd3bfe16385e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00d78c46e1173cca212bc8a6a248b0b2e00fc6e39bf08001940ccd3bfe16385e", kill_on_drop: false }` [INFO] [stdout] 00d78c46e1173cca212bc8a6a248b0b2e00fc6e39bf08001940ccd3bfe16385e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41f7886877887cec11071c3c3bc93b6ea5db55b01dbed40ff25ddf68b5d27946 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "41f7886877887cec11071c3c3bc93b6ea5db55b01dbed40ff25ddf68b5d27946", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking ttk4145_elevator_server v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:13:40 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const OBSTRUCTION: c_uint = (0x300+23); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) const STOP: c_uint = (0x300+22); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:15:44 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) const BUTTON_COMMAND0: c_uint = (0x300+21); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:16:44 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const BUTTON_COMMAND1: c_uint = (0x300+20); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:17:44 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const BUTTON_COMMAND2: c_uint = (0x300+19); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:18:44 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const BUTTON_COMMAND3: c_uint = (0x300+18); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const BUTTON_UP0: c_uint = (0x300+17); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const BUTTON_UP1: c_uint = (0x300+16); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) const BUTTON_DOWN1: c_uint = (0x200+0); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) const BUTTON_UP2: c_uint = (0x200+1); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:28:41 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const BUTTON_DOWN2: c_uint = (0x200+2); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:29:41 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) const BUTTON_DOWN3: c_uint = (0x200+3); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:30:42 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) const SENSOR_FLOOR0: c_uint = (0x200+4); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:31:42 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) const SENSOR_FLOOR1: c_uint = (0x200+5); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) const SENSOR_FLOOR2: c_uint = (0x200+6); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) const SENSOR_FLOOR3: c_uint = (0x200+7); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:40:39 [INFO] [stdout] | [INFO] [stdout] 40 | pub(crate) const LIGHT_STOP: c_uint = (0x300+14); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:41:43 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) const LIGHT_COMMAND0: c_uint = (0x300+13); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:42:43 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) const LIGHT_COMMAND1: c_uint = (0x300+12); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | pub(crate) const LIGHT_COMMAND2: c_uint = (0x300+11); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:44:43 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) const LIGHT_COMMAND3: c_uint = (0x300+10); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:45:38 [INFO] [stdout] | [INFO] [stdout] 45 | pub(crate) const LIGHT_UP0: c_uint = (0x300+9); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:46:38 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) const LIGHT_UP1: c_uint = (0x300+8); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:52:40 [INFO] [stdout] | [INFO] [stdout] 52 | pub(crate) const LIGHT_DOWN1: c_uint = (0x300+7); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) const LIGHT_UP2: c_uint = (0x300+6); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:54:40 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) const LIGHT_DOWN2: c_uint = (0x300+5); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:55:40 [INFO] [stdout] | [INFO] [stdout] 55 | pub(crate) const LIGHT_DOWN3: c_uint = (0x300+4); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:56:44 [INFO] [stdout] | [INFO] [stdout] 56 | pub(crate) const LIGHT_DOOR_OPEN: c_uint = (0x300+3); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) const LIGHT_FLOOR_IND1: c_uint =(0x300+1); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:58:44 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) const LIGHT_FLOOR_IND0: c_uint =(0x300+0); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | pub(crate) const MOTOR: c_uint = (0x100+0); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:107:76 [INFO] [stdout] | [INFO] [stdout] 107 | let comedi = comedi_open(CString::new(interface_name).unwrap().as_ptr()); [INFO] [stdout] | ------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `ElevatorServer` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `elevator_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:13:40 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const OBSTRUCTION: c_uint = (0x300+23); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) const STOP: c_uint = (0x300+22); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:15:44 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) const BUTTON_COMMAND0: c_uint = (0x300+21); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:16:44 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const BUTTON_COMMAND1: c_uint = (0x300+20); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:17:44 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const BUTTON_COMMAND2: c_uint = (0x300+19); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:18:44 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const BUTTON_COMMAND3: c_uint = (0x300+18); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const BUTTON_UP0: c_uint = (0x300+17); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const BUTTON_UP1: c_uint = (0x300+16); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) const BUTTON_DOWN1: c_uint = (0x200+0); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) const BUTTON_UP2: c_uint = (0x200+1); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:28:41 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const BUTTON_DOWN2: c_uint = (0x200+2); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:29:41 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) const BUTTON_DOWN3: c_uint = (0x200+3); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:30:42 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) const SENSOR_FLOOR0: c_uint = (0x200+4); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:31:42 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) const SENSOR_FLOOR1: c_uint = (0x200+5); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) const SENSOR_FLOOR2: c_uint = (0x200+6); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) const SENSOR_FLOOR3: c_uint = (0x200+7); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:40:39 [INFO] [stdout] | [INFO] [stdout] 40 | pub(crate) const LIGHT_STOP: c_uint = (0x300+14); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:41:43 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) const LIGHT_COMMAND0: c_uint = (0x300+13); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:42:43 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) const LIGHT_COMMAND1: c_uint = (0x300+12); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | pub(crate) const LIGHT_COMMAND2: c_uint = (0x300+11); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:44:43 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) const LIGHT_COMMAND3: c_uint = (0x300+10); [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:45:38 [INFO] [stdout] | [INFO] [stdout] 45 | pub(crate) const LIGHT_UP0: c_uint = (0x300+9); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:46:38 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) const LIGHT_UP1: c_uint = (0x300+8); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:52:40 [INFO] [stdout] | [INFO] [stdout] 52 | pub(crate) const LIGHT_DOWN1: c_uint = (0x300+7); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) const LIGHT_UP2: c_uint = (0x300+6); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:54:40 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) const LIGHT_DOWN2: c_uint = (0x300+5); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:55:40 [INFO] [stdout] | [INFO] [stdout] 55 | pub(crate) const LIGHT_DOWN3: c_uint = (0x300+4); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:56:44 [INFO] [stdout] | [INFO] [stdout] 56 | pub(crate) const LIGHT_DOOR_OPEN: c_uint = (0x300+3); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) const LIGHT_FLOOR_IND1: c_uint =(0x300+1); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:58:44 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) const LIGHT_FLOOR_IND0: c_uint =(0x300+0); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/channel.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | pub(crate) const MOTOR: c_uint = (0x100+0); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:107:76 [INFO] [stdout] | [INFO] [stdout] 107 | let comedi = comedi_open(CString::new(interface_name).unwrap().as_ptr()); [INFO] [stdout] | ------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `ElevatorServer` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `elevator_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `MutexGuard` that must be used [INFO] [stdout] --> src/main.rs:333:9 [INFO] [stdout] | [INFO] [stdout] 333 | ELEVATOR.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if unused the Mutex will immediately unlock [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.38s [INFO] running `Command { std: "docker" "inspect" "41f7886877887cec11071c3c3bc93b6ea5db55b01dbed40ff25ddf68b5d27946", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41f7886877887cec11071c3c3bc93b6ea5db55b01dbed40ff25ddf68b5d27946", kill_on_drop: false }` [INFO] [stdout] 41f7886877887cec11071c3c3bc93b6ea5db55b01dbed40ff25ddf68b5d27946