[INFO] cloning repository https://github.com/gregberns/rs-wiringpi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gregberns/rs-wiringpi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgregberns%2Frs-wiringpi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgregberns%2Frs-wiringpi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 04415b22db9335ff6c1ce90762942c49ccf01f97 [INFO] checking gregberns/rs-wiringpi against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgregberns%2Frs-wiringpi" "/workspace/builds/worker-60/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-60/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gregberns/rs-wiringpi on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gregberns/rs-wiringpi [INFO] finished tweaking git repo https://github.com/gregberns/rs-wiringpi [INFO] tweaked toml for git repo https://github.com/gregberns/rs-wiringpi written to /workspace/builds/worker-60/source/Cargo.toml [INFO] crate git repo https://github.com/gregberns/rs-wiringpi already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-60/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-60/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9764f9862b5c31c7a7e77fa6109e039ce284d3143ed10a2ee402136287d6f70b [INFO] running `Command { std: "docker" "start" "-a" "9764f9862b5c31c7a7e77fa6109e039ce284d3143ed10a2ee402136287d6f70b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9764f9862b5c31c7a7e77fa6109e039ce284d3143ed10a2ee402136287d6f70b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9764f9862b5c31c7a7e77fa6109e039ce284d3143ed10a2ee402136287d6f70b", kill_on_drop: false }` [INFO] [stdout] 9764f9862b5c31c7a7e77fa6109e039ce284d3143ed10a2ee402136287d6f70b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-60/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-60/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7b97f380156d322422a6de80b6053ac301ef7b52e14c712fbb2af7be0f6b20b [INFO] running `Command { std: "docker" "start" "-a" "f7b97f380156d322422a6de80b6053ac301ef7b52e14c712fbb2af7be0f6b20b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Compiling rs-wiringpi v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2018 edition to 2021 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking stopwatch v0.0.7 [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (6 fixes) [INFO] [stderr] Fixed src/wiringpi.rs (2 fixes) [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Forward` [INFO] [stdout] --> src/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Forward, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Backward` [INFO] [stdout] --> src/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Backward, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnRight` [INFO] [stdout] --> src/model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | TurnRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnLeft` [INFO] [stdout] --> src/model.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | TurnLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stop` [INFO] [stdout] --> src/model.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Kill` [INFO] [stdout] --> src/model.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Kill, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Vehicle` [INFO] [stdout] --> src/wiringpi.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vehicle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/wiringpi.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Vehicle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_command` [INFO] [stdout] --> src/wiringpi.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn send_command(&mut self, command: Command) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `digitalRead` [INFO] [stdout] --> src/wiringpi.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn digitalRead(pin: c_int) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pullUpDnControl` [INFO] [stdout] --> src/wiringpi.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn pullUpDnControl(pin: c_int, pud: c_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wiringPiISR` [INFO] [stdout] --> src/wiringpi.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IRIN` [INFO] [stdout] --> src/wiringpi.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 169 | const IRIN: c_int = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/wiringpi.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | const INPUT: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INT_EDGE_FALLING` [INFO] [stdout] --> src/wiringpi.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | const INT_EDGE_FALLING: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_OFF` [INFO] [stdout] --> src/wiringpi.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 172 | const PUD_OFF: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_DOWN` [INFO] [stdout] --> src/wiringpi.rs:173:1 [INFO] [stdout] | [INFO] [stdout] 173 | const PUD_DOWN: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_UP` [INFO] [stdout] --> src/wiringpi.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | const PUD_UP: c_int = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IR_LIMITS` [INFO] [stdout] --> src/wiringpi.rs:175:1 [INFO] [stdout] | [INFO] [stdout] 175 | const IR_LIMITS: usize = 64; // bytes buffer = IR_LIMITS x8 bits [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRIG` [INFO] [stdout] --> src/wiringpi.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 216 | const TRIG: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ECHO` [INFO] [stdout] --> src/wiringpi.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | const ECHO: i32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_distance_measure` [INFO] [stdout] --> src/wiringpi.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn init_distance_measure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_measure` [INFO] [stdout] --> src/wiringpi.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn distance_measure() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `convert_ms_to_cm` [INFO] [stdout] --> src/wiringpi.rs:286:4 [INFO] [stdout] | [INFO] [stdout] 286 | fn convert_ms_to_cm(usec: u128) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `irInit` [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_ir` [INFO] [stdout] --> src/wiringpi.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn get_ir() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_low` [INFO] [stdout] --> src/wiringpi.rs:337:4 [INFO] [stdout] | [INFO] [stdout] 337 | fn count_low() -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sleep_ms` [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn sleep_ms(duration_ms: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `next_action` [INFO] [stdout] --> src/main.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn next_action(current_value: i32) -> Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `fn()`, which is not FFI-safe [INFO] [stdout] --> src/wiringpi.rs:159:57 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider using an `extern fn(...) -> ...` function pointer instead [INFO] [stdout] = note: this function pointer has Rust-specific calling convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `irInit` should have a snake case name [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ir_init` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Forward` [INFO] [stdout] --> src/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Forward, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Backward` [INFO] [stdout] --> src/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Backward, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnRight` [INFO] [stdout] --> src/model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | TurnRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnLeft` [INFO] [stdout] --> src/model.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | TurnLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stop` [INFO] [stdout] --> src/model.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Kill` [INFO] [stdout] --> src/model.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Kill, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Vehicle` [INFO] [stdout] --> src/wiringpi.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vehicle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/wiringpi.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Vehicle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_command` [INFO] [stdout] --> src/wiringpi.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn send_command(&mut self, command: Command) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `digitalRead` [INFO] [stdout] --> src/wiringpi.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn digitalRead(pin: c_int) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pullUpDnControl` [INFO] [stdout] --> src/wiringpi.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn pullUpDnControl(pin: c_int, pud: c_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wiringPiISR` [INFO] [stdout] --> src/wiringpi.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IRIN` [INFO] [stdout] --> src/wiringpi.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 169 | const IRIN: c_int = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/wiringpi.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | const INPUT: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INT_EDGE_FALLING` [INFO] [stdout] --> src/wiringpi.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | const INT_EDGE_FALLING: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_OFF` [INFO] [stdout] --> src/wiringpi.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 172 | const PUD_OFF: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_DOWN` [INFO] [stdout] --> src/wiringpi.rs:173:1 [INFO] [stdout] | [INFO] [stdout] 173 | const PUD_DOWN: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_UP` [INFO] [stdout] --> src/wiringpi.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | const PUD_UP: c_int = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IR_LIMITS` [INFO] [stdout] --> src/wiringpi.rs:175:1 [INFO] [stdout] | [INFO] [stdout] 175 | const IR_LIMITS: usize = 64; // bytes buffer = IR_LIMITS x8 bits [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRIG` [INFO] [stdout] --> src/wiringpi.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 216 | const TRIG: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ECHO` [INFO] [stdout] --> src/wiringpi.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | const ECHO: i32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_distance_measure` [INFO] [stdout] --> src/wiringpi.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn init_distance_measure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_measure` [INFO] [stdout] --> src/wiringpi.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn distance_measure() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `irInit` [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_ir` [INFO] [stdout] --> src/wiringpi.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn get_ir() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_low` [INFO] [stdout] --> src/wiringpi.rs:337:4 [INFO] [stdout] | [INFO] [stdout] 337 | fn count_low() -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sleep_ms` [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn sleep_ms(duration_ms: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `next_action` [INFO] [stdout] --> src/main.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn next_action(current_value: i32) -> Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `fn()`, which is not FFI-safe [INFO] [stdout] --> src/wiringpi.rs:159:57 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider using an `extern fn(...) -> ...` function pointer instead [INFO] [stdout] = note: this function pointer has Rust-specific calling convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `irInit` should have a snake case name [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ir_init` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.03s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rs-wiringpi v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Forward` [INFO] [stdout] --> src/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Forward, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Backward` [INFO] [stdout] --> src/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Backward, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnRight` [INFO] [stdout] --> src/model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | TurnRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnLeft` [INFO] [stdout] --> src/model.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | TurnLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stop` [INFO] [stdout] --> src/model.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Kill` [INFO] [stdout] --> src/model.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Kill, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Vehicle` [INFO] [stdout] --> src/wiringpi.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vehicle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/wiringpi.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Vehicle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_command` [INFO] [stdout] --> src/wiringpi.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn send_command(&mut self, command: Command) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `digitalRead` [INFO] [stdout] --> src/wiringpi.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn digitalRead(pin: c_int) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pullUpDnControl` [INFO] [stdout] --> src/wiringpi.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn pullUpDnControl(pin: c_int, pud: c_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wiringPiISR` [INFO] [stdout] --> src/wiringpi.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IRIN` [INFO] [stdout] --> src/wiringpi.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 169 | const IRIN: c_int = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/wiringpi.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | const INPUT: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INT_EDGE_FALLING` [INFO] [stdout] --> src/wiringpi.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | const INT_EDGE_FALLING: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_OFF` [INFO] [stdout] --> src/wiringpi.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 172 | const PUD_OFF: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_DOWN` [INFO] [stdout] --> src/wiringpi.rs:173:1 [INFO] [stdout] | [INFO] [stdout] 173 | const PUD_DOWN: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_UP` [INFO] [stdout] --> src/wiringpi.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | const PUD_UP: c_int = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IR_LIMITS` [INFO] [stdout] --> src/wiringpi.rs:175:1 [INFO] [stdout] | [INFO] [stdout] 175 | const IR_LIMITS: usize = 64; // bytes buffer = IR_LIMITS x8 bits [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRIG` [INFO] [stdout] --> src/wiringpi.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 216 | const TRIG: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ECHO` [INFO] [stdout] --> src/wiringpi.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | const ECHO: i32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_distance_measure` [INFO] [stdout] --> src/wiringpi.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn init_distance_measure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_measure` [INFO] [stdout] --> src/wiringpi.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn distance_measure() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `irInit` [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_ir` [INFO] [stdout] --> src/wiringpi.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn get_ir() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_low` [INFO] [stdout] --> src/wiringpi.rs:337:4 [INFO] [stdout] | [INFO] [stdout] 337 | fn count_low() -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sleep_ms` [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn sleep_ms(duration_ms: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `next_action` [INFO] [stdout] --> src/main.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn next_action(current_value: i32) -> Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `fn()`, which is not FFI-safe [INFO] [stdout] --> src/wiringpi.rs:159:57 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider using an `extern fn(...) -> ...` function pointer instead [INFO] [stdout] = note: this function pointer has Rust-specific calling convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `irInit` should have a snake case name [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ir_init` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Forward` [INFO] [stdout] --> src/model.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Forward, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Backward` [INFO] [stdout] --> src/model.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Backward, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnRight` [INFO] [stdout] --> src/model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | TurnRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TurnLeft` [INFO] [stdout] --> src/model.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | TurnLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stop` [INFO] [stdout] --> src/model.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Kill` [INFO] [stdout] --> src/model.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Kill, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Vehicle` [INFO] [stdout] --> src/wiringpi.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vehicle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/wiringpi.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Vehicle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_command` [INFO] [stdout] --> src/wiringpi.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn send_command(&mut self, command: Command) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `digitalRead` [INFO] [stdout] --> src/wiringpi.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn digitalRead(pin: c_int) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pullUpDnControl` [INFO] [stdout] --> src/wiringpi.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn pullUpDnControl(pin: c_int, pud: c_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `wiringPiISR` [INFO] [stdout] --> src/wiringpi.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IRIN` [INFO] [stdout] --> src/wiringpi.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 169 | const IRIN: c_int = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/wiringpi.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | const INPUT: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INT_EDGE_FALLING` [INFO] [stdout] --> src/wiringpi.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | const INT_EDGE_FALLING: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_OFF` [INFO] [stdout] --> src/wiringpi.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 172 | const PUD_OFF: c_int = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_DOWN` [INFO] [stdout] --> src/wiringpi.rs:173:1 [INFO] [stdout] | [INFO] [stdout] 173 | const PUD_DOWN: c_int = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PUD_UP` [INFO] [stdout] --> src/wiringpi.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | const PUD_UP: c_int = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IR_LIMITS` [INFO] [stdout] --> src/wiringpi.rs:175:1 [INFO] [stdout] | [INFO] [stdout] 175 | const IR_LIMITS: usize = 64; // bytes buffer = IR_LIMITS x8 bits [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRIG` [INFO] [stdout] --> src/wiringpi.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 216 | const TRIG: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ECHO` [INFO] [stdout] --> src/wiringpi.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | const ECHO: i32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_distance_measure` [INFO] [stdout] --> src/wiringpi.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn init_distance_measure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `distance_measure` [INFO] [stdout] --> src/wiringpi.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn distance_measure() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `convert_ms_to_cm` [INFO] [stdout] --> src/wiringpi.rs:286:4 [INFO] [stdout] | [INFO] [stdout] 286 | fn convert_ms_to_cm(usec: u128) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `irInit` [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_ir` [INFO] [stdout] --> src/wiringpi.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn get_ir() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_low` [INFO] [stdout] --> src/wiringpi.rs:337:4 [INFO] [stdout] | [INFO] [stdout] 337 | fn count_low() -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sleep_ms` [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn sleep_ms(duration_ms: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `next_action` [INFO] [stdout] --> src/main.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn next_action(current_value: i32) -> Command { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `fn()`, which is not FFI-safe [INFO] [stdout] --> src/wiringpi.rs:159:57 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn wiringPiISR(pin: c_int, mode: c_int, get_ir: fn()) -> c_int; [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stdout] = help: consider using an `extern fn(...) -> ...` function pointer instead [INFO] [stdout] = note: this function pointer has Rust-specific calling convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `irInit` should have a snake case name [INFO] [stdout] --> src/wiringpi.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn irInit() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ir_init` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.13s [INFO] running `Command { std: "docker" "inspect" "f7b97f380156d322422a6de80b6053ac301ef7b52e14c712fbb2af7be0f6b20b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7b97f380156d322422a6de80b6053ac301ef7b52e14c712fbb2af7be0f6b20b", kill_on_drop: false }` [INFO] [stdout] f7b97f380156d322422a6de80b6053ac301ef7b52e14c712fbb2af7be0f6b20b