[INFO] cloning repository https://github.com/MrBearing/obniz-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MrBearing/obniz-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrBearing%2Fobniz-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrBearing%2Fobniz-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0ad919f8d677a60ee067336ce96c021d0e6258ef [INFO] checking MrBearing/obniz-rust/0ad919f8d677a60ee067336ce96c021d0e6258ef against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrBearing%2Fobniz-rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MrBearing/obniz-rust on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MrBearing/obniz-rust [INFO] finished tweaking git repo https://github.com/MrBearing/obniz-rust [INFO] tweaked toml for git repo https://github.com/MrBearing/obniz-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MrBearing/obniz-rust 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded httparse v1.4.0 [INFO] [stderr] Downloaded cpufeatures v0.2.2 [INFO] [stderr] Downloaded tungstenite v0.17.2 [INFO] [stderr] Downloaded input_buffer v0.4.0 [INFO] [stderr] Downloaded futures-sink v0.3.15 [INFO] [stderr] Downloaded futures-executor v0.3.15 [INFO] [stderr] Downloaded futures v0.3.15 [INFO] [stderr] Downloaded futures-channel v0.3.15 [INFO] [stderr] Downloaded pin-project v1.0.7 [INFO] [stderr] Downloaded tungstenite v0.13.0 [INFO] [stderr] Downloaded pin-project-internal v1.0.7 [INFO] [stderr] Downloaded futures-util v0.3.15 [INFO] [stderr] Downloaded futures-macro v0.3.15 [INFO] [stderr] Downloaded futures-task v0.3.15 [INFO] [stderr] Downloaded crypto-common v0.1.4 [INFO] [stderr] Downloaded tokio-tungstenite v0.14.0 [INFO] [stderr] Downloaded syn v1.0.70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7c61d5005bf4fa30a6d06885ad812f4ca8602acd7f03ea32b82af20d33cd20e [INFO] running `Command { std: "docker" "start" "-a" "a7c61d5005bf4fa30a6d06885ad812f4ca8602acd7f03ea32b82af20d33cd20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7c61d5005bf4fa30a6d06885ad812f4ca8602acd7f03ea32b82af20d33cd20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7c61d5005bf4fa30a6d06885ad812f4ca8602acd7f03ea32b82af20d33cd20e", kill_on_drop: false }` [INFO] [stdout] a7c61d5005bf4fa30a6d06885ad812f4ca8602acd7f03ea32b82af20d33cd20e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46f77946a32d1cb19d2b0b336d1b714fd001675b4ee31de8ac386595591274c7 [INFO] running `Command { std: "docker" "start" "-a" "46f77946a32d1cb19d2b0b336d1b714fd001675b4ee31de8ac386595591274c7", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.70 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Checking getrandom v0.2.2 [INFO] [stderr] Checking unicode-bidi v0.3.5 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Compiling httparse v1.4.0 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Checking parking_lot_core v0.9.3 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking input_buffer v0.4.0 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-common v0.1.4 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking sha-1 v0.9.4 [INFO] [stderr] Checking sha-1 v0.10.0 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Checking openssl v0.10.40 [INFO] [stderr] Checking tokio v1.19.2 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking tungstenite v0.13.0 [INFO] [stderr] Checking pin-project v1.0.7 [INFO] [stderr] Checking native-tls v0.2.10 [INFO] [stderr] Checking futures-executor v0.3.15 [INFO] [stderr] Checking tungstenite v0.17.2 [INFO] [stderr] Checking futures v0.3.15 [INFO] [stderr] Checking tokio-tungstenite v0.14.0 [INFO] [stderr] Checking serde_json v1.0.64 [INFO] [stderr] Checking obniz-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `WebSocket` [INFO] [stdout] --> src/obniz.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use tungstenite::{connect,WebSocket}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `bool` should have an upper camel case name [INFO] [stdout] --> src/api/response.rs:84:3 [INFO] [stdout] | [INFO] [stdout] 84 | bool, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `bool` should have an upper camel case name [INFO] [stdout] --> src/api/request.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 89 | bool, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebSocket` [INFO] [stdout] --> src/obniz.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use tungstenite::{connect,WebSocket}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `bool` should have an upper camel case name [INFO] [stdout] --> src/api/response.rs:84:3 [INFO] [stdout] | [INFO] [stdout] 84 | bool, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `bool` should have an upper camel case name [INFO] [stdout] --> src/api/request.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 89 | bool, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 138 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 139 | Io{} [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 206 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 207 | IoAnimation{} [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 243 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 244 | 0.0 [INFO] [stdout] | ^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 263 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 264 | / PWM { [INFO] [stdout] 265 | | pwm_number: pwm_number [INFO] [stdout] 266 | | } [INFO] [stdout] | |_____^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:308:5 [INFO] [stdout] | [INFO] [stdout] 306 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 307 | [INFO] [stdout] 308 | Uart{} [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 337 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 338 | Spi{} [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:372:5 [INFO] [stdout] | [INFO] [stdout] 371 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 372 | I2c{} [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 138 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 139 | Io{} [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 206 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 207 | IoAnimation{} [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 243 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 244 | 0.0 [INFO] [stdout] | ^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 263 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 264 | / PWM { [INFO] [stdout] 265 | | pwm_number: pwm_number [INFO] [stdout] 266 | | } [INFO] [stdout] | |_____^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:308:5 [INFO] [stdout] | [INFO] [stdout] 306 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 307 | [INFO] [stdout] 308 | Uart{} [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 337 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 338 | Spi{} [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/obniz.rs:372:5 [INFO] [stdout] | [INFO] [stdout] 371 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 372 | I2c{} [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/obniz.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let req = vec![reset]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin` [INFO] [stdout] --> src/obniz.rs:137:19 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn new(self,pin: u8) -> Io { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/obniz.rs:144:19 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn set(self,value: bool) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enable_stream_callback` [INFO] [stdout] --> src/obniz.rs:150:26 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn setAsInput(self,enable_stream_callback: bool){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enable_stream_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/obniz.rs:163:27 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn setAsOutput(self,value : bool){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_type` [INFO] [stdout] --> src/obniz.rs:174:29 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn setOutputType(self,output_type : OutputType){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pull_type` [INFO] [stdout] --> src/obniz.rs:186:27 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn setPullType(self,pull_type : PullType){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pull_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pwm_number` [INFO] [stdout] --> src/obniz.rs:262:14 [INFO] [stdout] | [INFO] [stdout] 262 | pub fn new(pwm_number: u8) -> PWM { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pwm_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/obniz.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let req = vec![reset]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin` [INFO] [stdout] --> src/obniz.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn init(self, pin : u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `freq` [INFO] [stdout] --> src/obniz.rs:280:29 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn setFrequency(self, freq : u64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_freq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width_msec` [INFO] [stdout] --> src/obniz.rs:285:30 [INFO] [stdout] | [INFO] [stdout] 285 | pub fn setPulseWidth(self, width_msec : u64) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_width_msec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin` [INFO] [stdout] --> src/obniz.rs:137:19 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn new(self,pin: u8) -> Io { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol_length` [INFO] [stdout] --> src/obniz.rs:289:25 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn modulate(self, symbol_length: f64, bitArray: Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/obniz.rs:144:19 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn set(self,value: bool) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bitArray` [INFO] [stdout] --> src/obniz.rs:289:45 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn modulate(self, symbol_length: f64, bitArray: Vec){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enable_stream_callback` [INFO] [stdout] --> src/obniz.rs:150:26 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn setAsInput(self,enable_stream_callback: bool){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enable_stream_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/obniz.rs:163:27 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn setAsOutput(self,value : bool){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:316:15 [INFO] [stdout] | [INFO] [stdout] 316 | pub fn send(data : Vec){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_type` [INFO] [stdout] --> src/obniz.rs:174:29 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn setOutputType(self,output_type : OutputType){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pull_type` [INFO] [stdout] --> src/obniz.rs:186:27 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn setPullType(self,pull_type : PullType){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pull_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:350:16 [INFO] [stdout] | [INFO] [stdout] 350 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:353:30 [INFO] [stdout] | [INFO] [stdout] 353 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pwm_number` [INFO] [stdout] --> src/obniz.rs:262:14 [INFO] [stdout] | [INFO] [stdout] 262 | pub fn new(pwm_number: u8) -> PWM { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pwm_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin` [INFO] [stdout] --> src/obniz.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn init(self, pin : u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `freq` [INFO] [stdout] --> src/obniz.rs:280:29 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn setFrequency(self, freq : u64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_freq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/obniz.rs:378:16 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn write(address: u16 , [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address_bits` [INFO] [stdout] --> src/obniz.rs:379:5 [INFO] [stdout] | [INFO] [stdout] 379 | address_bits : u8, //default 7 [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width_msec` [INFO] [stdout] --> src/obniz.rs:285:30 [INFO] [stdout] | [INFO] [stdout] 285 | pub fn setPulseWidth(self, width_msec : u64) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_width_msec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:380:5 [INFO] [stdout] | [INFO] [stdout] 380 | data : Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol_length` [INFO] [stdout] --> src/obniz.rs:289:25 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn modulate(self, symbol_length: f64, bitArray: Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/obniz.rs:383:30 [INFO] [stdout] | [INFO] [stdout] 383 | pub fn write_with_callback(address: u16 , [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address_bits` [INFO] [stdout] --> src/obniz.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | address_bits : u8, //default 7 [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bitArray` [INFO] [stdout] --> src/obniz.rs:289:45 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn modulate(self, symbol_length: f64, bitArray: Vec){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bitArray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:385:5 [INFO] [stdout] | [INFO] [stdout] 385 | data : Vec [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:316:15 [INFO] [stdout] | [INFO] [stdout] 316 | pub fn send(data : Vec){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/obniz.rs:429:15 [INFO] [stdout] | [INFO] [stdout] 429 | pub fn text(text : &str){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/obniz.rs:437:13 [INFO] [stdout] | [INFO] [stdout] 437 | pub fn qr(text : &str , correction_type : QrCorrectionType ){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:350:16 [INFO] [stdout] | [INFO] [stdout] 350 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `correction_type` [INFO] [stdout] --> src/obniz.rs:437:27 [INFO] [stdout] | [INFO] [stdout] 437 | pub fn qr(text : &str , correction_type : QrCorrectionType ){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_correction_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:353:30 [INFO] [stdout] | [INFO] [stdout] 353 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw` [INFO] [stdout] --> src/obniz.rs:440:14 [INFO] [stdout] | [INFO] [stdout] 440 | pub fn raw(raw : Vec , color_depth: DisplayRawCollorDepth ){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_depth` [INFO] [stdout] --> src/obniz.rs:440:31 [INFO] [stdout] | [INFO] [stdout] 440 | pub fn raw(raw : Vec , color_depth: DisplayRawCollorDepth ){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin` [INFO] [stdout] --> src/obniz.rs:444:21 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn pin_assign(pin: u8 , module_name :&str, pin_name :&str){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_name` [INFO] [stdout] --> src/obniz.rs:444:31 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn pin_assign(pin: u8 , module_name :&str, pin_name :&str){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/obniz.rs:378:16 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn write(address: u16 , [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin_name` [INFO] [stdout] --> src/obniz.rs:444:50 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn pin_assign(pin: u8 , module_name :&str, pin_name :&str){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pin_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address_bits` [INFO] [stdout] --> src/obniz.rs:379:5 [INFO] [stdout] | [INFO] [stdout] 379 | address_bits : u8, //default 7 [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:380:5 [INFO] [stdout] | [INFO] [stdout] 380 | data : Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/obniz.rs:468:18 [INFO] [stdout] | [INFO] [stdout] 468 | pub fn connect(port:u16, domain: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `domain` [INFO] [stdout] --> src/obniz.rs:468:28 [INFO] [stdout] | [INFO] [stdout] 468 | pub fn connect(port:u16, domain: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_domain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/obniz.rs:383:30 [INFO] [stdout] | [INFO] [stdout] 383 | pub fn write_with_callback(address: u16 , [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address_bits` [INFO] [stdout] --> src/obniz.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | address_bits : u8, //default 7 [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:475:16 [INFO] [stdout] | [INFO] [stdout] 475 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:385:5 [INFO] [stdout] | [INFO] [stdout] 385 | data : Vec [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/obniz.rs:429:15 [INFO] [stdout] | [INFO] [stdout] 429 | pub fn text(text : &str){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:478:30 [INFO] [stdout] | [INFO] [stdout] 478 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/obniz.rs:437:13 [INFO] [stdout] | [INFO] [stdout] 437 | pub fn qr(text : &str , correction_type : QrCorrectionType ){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `correction_type` [INFO] [stdout] --> src/obniz.rs:437:27 [INFO] [stdout] | [INFO] [stdout] 437 | pub fn qr(text : &str , correction_type : QrCorrectionType ){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_correction_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw` [INFO] [stdout] --> src/obniz.rs:440:14 [INFO] [stdout] | [INFO] [stdout] 440 | pub fn raw(raw : Vec , color_depth: DisplayRawCollorDepth ){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:510:16 [INFO] [stdout] | [INFO] [stdout] 510 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_depth` [INFO] [stdout] --> src/obniz.rs:440:31 [INFO] [stdout] | [INFO] [stdout] 440 | pub fn raw(raw : Vec , color_depth: DisplayRawCollorDepth ){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin` [INFO] [stdout] --> src/obniz.rs:444:21 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn pin_assign(pin: u8 , module_name :&str, pin_name :&str){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:513:30 [INFO] [stdout] | [INFO] [stdout] 513 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_name` [INFO] [stdout] --> src/obniz.rs:444:31 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn pin_assign(pin: u8 , module_name :&str, pin_name :&str){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pin_name` [INFO] [stdout] --> src/obniz.rs:444:50 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn pin_assign(pin: u8 , module_name :&str, pin_name :&str){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pin_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/obniz.rs:468:18 [INFO] [stdout] | [INFO] [stdout] 468 | pub fn connect(port:u16, domain: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:533:15 [INFO] [stdout] | [INFO] [stdout] 533 | pub fn send(data: &str, to: Vec ){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `domain` [INFO] [stdout] --> src/obniz.rs:468:28 [INFO] [stdout] | [INFO] [stdout] 468 | pub fn connect(port:u16, domain: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_domain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/obniz.rs:533:27 [INFO] [stdout] | [INFO] [stdout] 533 | pub fn send(data: &str, to: Vec ){ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:475:16 [INFO] [stdout] | [INFO] [stdout] 475 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:549:15 [INFO] [stdout] | [INFO] [stdout] 549 | pub fn send(data: Vec ){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:478:30 [INFO] [stdout] | [INFO] [stdout] 478 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:510:16 [INFO] [stdout] | [INFO] [stdout] 510 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:513:30 [INFO] [stdout] | [INFO] [stdout] 513 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:533:15 [INFO] [stdout] | [INFO] [stdout] 533 | pub fn send(data: &str, to: Vec ){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/obniz.rs:533:27 [INFO] [stdout] | [INFO] [stdout] 533 | pub fn send(data: &str, to: Vec ){ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/obniz.rs:549:15 [INFO] [stdout] | [INFO] [stdout] 549 | pub fn send(data: Vec ){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Io` is never constructed [INFO] [stdout] --> src/obniz.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct Io { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Io` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OutputType` is never used [INFO] [stdout] --> src/obniz.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | pub enum OutputType{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PullType` is never used [INFO] [stdout] --> src/obniz.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | pub enum PullType{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/obniz.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 136 | impl Io { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] 137 | pub fn new(self,pin: u8) -> Io { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn get(self)->bool{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn set(self,value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn deinit(self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn setAsInput(self,enable_stream_callback: bool){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn setAsOutput(self,value : bool){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn setOutputType(self,output_type : OutputType){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn setPullType(self,pull_type : PullType){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IoAnimation` is never constructed [INFO] [stdout] --> src/obniz.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub struct IoAnimation { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `init_animation`, and `change_state` are never used [INFO] [stdout] --> src/obniz.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 203 | impl IoAnimation { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 204 | [INFO] [stdout] 205 | pub fn new()-> IoAnimation{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | pub fn init_animation(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn change_state(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AD` is never constructed [INFO] [stdout] --> src/obniz.rs:231:12 [INFO] [stdout] | [INFO] [stdout] 231 | pub struct AD { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, and `deinit` are never used [INFO] [stdout] --> src/obniz.rs:236:10 [INFO] [stdout] | [INFO] [stdout] 235 | impl AD { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 236 | pub fn new(pin: u8) -> AD { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn get(self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn deinit(self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PWM` is never constructed [INFO] [stdout] --> src/obniz.rs:257:12 [INFO] [stdout] | [INFO] [stdout] 257 | pub struct PWM { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init`, `setFrequency`, `setPulseWidth`, `modulate`, and `deinit` are never used [INFO] [stdout] --> src/obniz.rs:262:10 [INFO] [stdout] | [INFO] [stdout] 261 | impl PWM { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 262 | pub fn new(pwm_number: u8) -> PWM { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn init(self, pin : u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 280 | pub fn setFrequency(self, freq : u64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn setPulseWidth(self, width_msec : u64) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn modulate(self, symbol_length: f64, bitArray: Vec){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | pub fn deinit(self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Uart` is never constructed [INFO] [stdout] --> src/obniz.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 300 | pub struct Uart{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `init`, `send`, `deinit`, and `set_receive_callback` are never used [INFO] [stdout] --> src/obniz.rs:305:10 [INFO] [stdout] | [INFO] [stdout] 304 | impl Uart { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 305 | pub fn new() -> Uart { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | pub fn send(data : Vec){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 322 | pub fn deinit() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub fn set_receive_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Spi` is never constructed [INFO] [stdout] --> src/obniz.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 330 | pub struct Spi { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `init_as_master`, `deinit`, `write`, `write_with_callback`, and `set_read_callback` are never used [INFO] [stdout] --> src/obniz.rs:336:10 [INFO] [stdout] | [INFO] [stdout] 334 | impl Spi { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 335 | [INFO] [stdout] 336 | pub fn new() -> Spi { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | pub fn init_as_master() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | pub fn deinit() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 350 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | pub fn set_read_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `I2c` is never constructed [INFO] [stdout] --> src/obniz.rs:365:8 [INFO] [stdout] | [INFO] [stdout] 365 | struct I2c { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `init_as_master`, `init_as_slave`, `write`, `write_with_callback`, and `set_read_callback` are never used [INFO] [stdout] --> src/obniz.rs:370:10 [INFO] [stdout] | [INFO] [stdout] 369 | impl I2c { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 370 | pub fn new() -> I2c { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 374 | pub fn init_as_master() {unimplemented!();} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 375 | pub fn init_as_slave() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | pub fn write(address: u16 , [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 383 | pub fn write_with_callback(address: u16 , [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 391 | pub fn set_read_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogicAnalyzer` is never constructed [INFO] [stdout] --> src/obniz.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 396 | pub struct LogicAnalyzer{} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `init`, `deinit`, and `set_data_response_callback` are never used [INFO] [stdout] --> src/obniz.rs:399:10 [INFO] [stdout] | [INFO] [stdout] 398 | impl LogicAnalyzer { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 399 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 403 | pub fn deinit(){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 407 | pub fn set_data_response_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Measurement` is never constructed [INFO] [stdout] --> src/obniz.rs:412:12 [INFO] [stdout] | [INFO] [stdout] 412 | pub struct Measurement {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `echo` is never used [INFO] [stdout] --> src/obniz.rs:416:10 [INFO] [stdout] | [INFO] [stdout] 414 | impl Measurement { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 415 | /// set callback [INFO] [stdout] 416 | pub fn echo() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Display` is never constructed [INFO] [stdout] --> src/obniz.rs:421:12 [INFO] [stdout] | [INFO] [stdout] 421 | pub struct Display{} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `QrCorrectionType` is never used [INFO] [stdout] --> src/obniz.rs:422:10 [INFO] [stdout] | [INFO] [stdout] 422 | pub enum QrCorrectionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DisplayRawCollorDepth` is never used [INFO] [stdout] --> src/obniz.rs:425:10 [INFO] [stdout] | [INFO] [stdout] 425 | pub enum DisplayRawCollorDepth { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Io` is never constructed [INFO] [stdout] --> src/obniz.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct Io { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Io` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `text`, `clear`, `qr`, `raw`, and `pin_assign` are never used [INFO] [stdout] --> src/obniz.rs:429:10 [INFO] [stdout] | [INFO] [stdout] 428 | impl Display { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 429 | pub fn text(text : &str){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub fn clear(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 437 | pub fn qr(text : &str , correction_type : QrCorrectionType ){ [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 440 | pub fn raw(raw : Vec , color_depth: DisplayRawCollorDepth ){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | pub fn pin_assign(pin: u8 , module_name :&str, pin_name :&str){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OutputType` is never used [INFO] [stdout] --> src/obniz.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | pub enum OutputType{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PullType` is never used [INFO] [stdout] --> src/obniz.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | pub enum PullType{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Switch` is never constructed [INFO] [stdout] --> src/obniz.rs:449:12 [INFO] [stdout] | [INFO] [stdout] 449 | pub struct Switch { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SwitchState` is never used [INFO] [stdout] --> src/obniz.rs:453:10 [INFO] [stdout] | [INFO] [stdout] 453 | pub enum SwitchState { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get` is never used [INFO] [stdout] --> src/obniz.rs:458:10 [INFO] [stdout] | [INFO] [stdout] 457 | impl Switch { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 458 | pub fn get() -> SwitchState { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TCP` is never constructed [INFO] [stdout] --> src/obniz.rs:463:12 [INFO] [stdout] | [INFO] [stdout] 463 | pub struct TCP { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/obniz.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 136 | impl Io { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] 137 | pub fn new(self,pin: u8) -> Io { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn get(self)->bool{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn set(self,value: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn deinit(self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn setAsInput(self,enable_stream_callback: bool){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn setAsOutput(self,value : bool){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn setOutputType(self,output_type : OutputType){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn setPullType(self,pull_type : PullType){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IoAnimation` is never constructed [INFO] [stdout] --> src/obniz.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub struct IoAnimation { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `connect`, `disconnect`, `write`, `write_with_callback`, and `set_read_callback` are never used [INFO] [stdout] --> src/obniz.rs:468:10 [INFO] [stdout] | [INFO] [stdout] 467 | impl TCP { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 468 | pub fn connect(port:u16, domain: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn disconnect(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 475 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 478 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | pub fn set_read_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `init_animation`, and `change_state` are never used [INFO] [stdout] --> src/obniz.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 203 | impl IoAnimation { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 204 | [INFO] [stdout] 205 | pub fn new()-> IoAnimation{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | pub fn init_animation(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn change_state(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Wifi` is never constructed [INFO] [stdout] --> src/obniz.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 489 | pub struct Wifi {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AD` is never constructed [INFO] [stdout] --> src/obniz.rs:231:12 [INFO] [stdout] | [INFO] [stdout] 231 | pub struct AD { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `scan` is never used [INFO] [stdout] --> src/obniz.rs:492:10 [INFO] [stdout] | [INFO] [stdout] 491 | impl Wifi { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 492 | pub fn scan() -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, and `deinit` are never used [INFO] [stdout] --> src/obniz.rs:236:10 [INFO] [stdout] | [INFO] [stdout] 235 | impl AD { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 236 | pub fn new(pin: u8) -> AD { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn get(self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn deinit(self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BleHci` is never constructed [INFO] [stdout] --> src/obniz.rs:497:12 [INFO] [stdout] | [INFO] [stdout] 497 | pub struct BleHci{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PWM` is never constructed [INFO] [stdout] --> src/obniz.rs:257:12 [INFO] [stdout] | [INFO] [stdout] 257 | pub struct PWM { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `init`, `deinit`, `write`, `write_with_callback`, `set_read_callback`, and `advertisement_filter` are never used [INFO] [stdout] --> src/obniz.rs:502:10 [INFO] [stdout] | [INFO] [stdout] 501 | impl BleHci { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 502 | pub fn init(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 506 | pub fn deinit(){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 510 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 513 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | pub fn set_read_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 523 | pub fn advertisement_filter( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/obniz.rs:530:8 [INFO] [stdout] | [INFO] [stdout] 530 | struct Message{} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init`, `setFrequency`, `setPulseWidth`, `modulate`, and `deinit` are never used [INFO] [stdout] --> src/obniz.rs:262:10 [INFO] [stdout] | [INFO] [stdout] 261 | impl PWM { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 262 | pub fn new(pwm_number: u8) -> PWM { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn init(self, pin : u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 280 | pub fn setFrequency(self, freq : u64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn setPulseWidth(self, width_msec : u64) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn modulate(self, symbol_length: f64, bitArray: Vec){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | pub fn deinit(self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Uart` is never constructed [INFO] [stdout] --> src/obniz.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 300 | pub struct Uart{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `send` and `set_receive_callback` are never used [INFO] [stdout] --> src/obniz.rs:533:10 [INFO] [stdout] | [INFO] [stdout] 531 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 532 | [INFO] [stdout] 533 | pub fn send(data: &str, to: Vec ){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 537 | pub fn set_receive_callback( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plugin` is never constructed [INFO] [stdout] --> src/obniz.rs:546:8 [INFO] [stdout] | [INFO] [stdout] 546 | struct Plugin {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `init`, `send`, `deinit`, and `set_receive_callback` are never used [INFO] [stdout] --> src/obniz.rs:305:10 [INFO] [stdout] | [INFO] [stdout] 304 | impl Uart { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 305 | pub fn new() -> Uart { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | pub fn send(data : Vec){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 322 | pub fn deinit() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub fn set_receive_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `send` and `set_receive_callback` are never used [INFO] [stdout] --> src/obniz.rs:549:10 [INFO] [stdout] | [INFO] [stdout] 547 | impl Plugin { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 548 | [INFO] [stdout] 549 | pub fn send(data: Vec ){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 553 | pub fn set_receive_callback( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Spi` is never constructed [INFO] [stdout] --> src/obniz.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 330 | pub struct Spi { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/api/response.rs:102:3 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct Uart { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 102 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Uart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/api/response.rs:108:3 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct Spi{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] 108 | data :Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Spi` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scan` is never read [INFO] [stdout] --> src/api/response.rs:173:3 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct Wifi { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 173 | scan: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Wifi` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `init_as_master`, `deinit`, `write`, `write_with_callback`, and `set_read_callback` are never used [INFO] [stdout] --> src/obniz.rs:336:10 [INFO] [stdout] | [INFO] [stdout] 334 | impl Spi { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 335 | [INFO] [stdout] 336 | pub fn new() -> Spi { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | pub fn init_as_master() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | pub fn deinit() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 350 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | pub fn set_read_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `I2c` is never constructed [INFO] [stdout] --> src/obniz.rs:365:8 [INFO] [stdout] | [INFO] [stdout] 365 | struct I2c { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hci` is never read [INFO] [stdout] --> src/api/response.rs:181:3 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct Ble { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 181 | hci : Hci, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ble` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `read` is never read [INFO] [stdout] --> src/api/response.rs:187:3 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct Hci { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 187 | read : Read, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hci` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `init_as_master`, `init_as_slave`, `write`, `write_with_callback`, and `set_read_callback` are never used [INFO] [stdout] --> src/obniz.rs:370:10 [INFO] [stdout] | [INFO] [stdout] 369 | impl I2c { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 370 | pub fn new() -> I2c { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 374 | pub fn init_as_master() {unimplemented!();} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 375 | pub fn init_as_slave() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | pub fn write(address: u16 , [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 383 | pub fn write_with_callback(address: u16 , [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 391 | pub fn set_read_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/api/response.rs:193:3 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct Read { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 193 | data : Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Read` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogicAnalyzer` is never constructed [INFO] [stdout] --> src/obniz.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 396 | pub struct LogicAnalyzer{} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setAsInput` should have a snake case name [INFO] [stdout] --> src/obniz.rs:150:10 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn setAsInput(self,enable_stream_callback: bool){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `set_as_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setAsOutput` should have a snake case name [INFO] [stdout] --> src/obniz.rs:163:10 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn setAsOutput(self,value : bool){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `set_as_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `init`, `deinit`, and `set_data_response_callback` are never used [INFO] [stdout] --> src/obniz.rs:399:10 [INFO] [stdout] | [INFO] [stdout] 398 | impl LogicAnalyzer { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 399 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 403 | pub fn deinit(){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 407 | pub fn set_data_response_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setOutputType` should have a snake case name [INFO] [stdout] --> src/obniz.rs:174:10 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn setOutputType(self,output_type : OutputType){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_output_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Measurement` is never constructed [INFO] [stdout] --> src/obniz.rs:412:12 [INFO] [stdout] | [INFO] [stdout] 412 | pub struct Measurement {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `echo` is never used [INFO] [stdout] --> src/obniz.rs:416:10 [INFO] [stdout] | [INFO] [stdout] 414 | impl Measurement { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 415 | /// set callback [INFO] [stdout] 416 | pub fn echo() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setPullType` should have a snake case name [INFO] [stdout] --> src/obniz.rs:186:10 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn setPullType(self,pull_type : PullType){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `set_pull_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Display` is never constructed [INFO] [stdout] --> src/obniz.rs:421:12 [INFO] [stdout] | [INFO] [stdout] 421 | pub struct Display{} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `QrCorrectionType` is never used [INFO] [stdout] --> src/obniz.rs:422:10 [INFO] [stdout] | [INFO] [stdout] 422 | pub enum QrCorrectionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DisplayRawCollorDepth` is never used [INFO] [stdout] --> src/obniz.rs:425:10 [INFO] [stdout] | [INFO] [stdout] 425 | pub enum DisplayRawCollorDepth { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setFrequency` should have a snake case name [INFO] [stdout] --> src/obniz.rs:280:10 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn setFrequency(self, freq : u64) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `set_frequency` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setPulseWidth` should have a snake case name [INFO] [stdout] --> src/obniz.rs:285:10 [INFO] [stdout] | [INFO] [stdout] 285 | pub fn setPulseWidth(self, width_msec : u64) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_pulse_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bitArray` should have a snake case name [INFO] [stdout] --> src/obniz.rs:289:45 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn modulate(self, symbol_length: f64, bitArray: Vec){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `bit_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `text`, `clear`, `qr`, `raw`, and `pin_assign` are never used [INFO] [stdout] --> src/obniz.rs:429:10 [INFO] [stdout] | [INFO] [stdout] 428 | impl Display { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 429 | pub fn text(text : &str){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub fn clear(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 437 | pub fn qr(text : &str , correction_type : QrCorrectionType ){ [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 440 | pub fn raw(raw : Vec , color_depth: DisplayRawCollorDepth ){ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | pub fn pin_assign(pin: u8 , module_name :&str, pin_name :&str){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Switch` is never constructed [INFO] [stdout] --> src/obniz.rs:449:12 [INFO] [stdout] | [INFO] [stdout] 449 | pub struct Switch { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SwitchState` is never used [INFO] [stdout] --> src/obniz.rs:453:10 [INFO] [stdout] | [INFO] [stdout] 453 | pub enum SwitchState { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get` is never used [INFO] [stdout] --> src/obniz.rs:458:10 [INFO] [stdout] | [INFO] [stdout] 457 | impl Switch { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 458 | pub fn get() -> SwitchState { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TCP` is never constructed [INFO] [stdout] --> src/obniz.rs:463:12 [INFO] [stdout] | [INFO] [stdout] 463 | pub struct TCP { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `connect`, `disconnect`, `write`, `write_with_callback`, and `set_read_callback` are never used [INFO] [stdout] --> src/obniz.rs:468:10 [INFO] [stdout] | [INFO] [stdout] 467 | impl TCP { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 468 | pub fn connect(port:u16, domain: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn disconnect(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 475 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 478 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | pub fn set_read_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Wifi` is never constructed [INFO] [stdout] --> src/obniz.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 489 | pub struct Wifi {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `scan` is never used [INFO] [stdout] --> src/obniz.rs:492:10 [INFO] [stdout] | [INFO] [stdout] 491 | impl Wifi { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 492 | pub fn scan() -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BleHci` is never constructed [INFO] [stdout] --> src/obniz.rs:497:12 [INFO] [stdout] | [INFO] [stdout] 497 | pub struct BleHci{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `init`, `deinit`, `write`, `write_with_callback`, `set_read_callback`, and `advertisement_filter` are never used [INFO] [stdout] --> src/obniz.rs:502:10 [INFO] [stdout] | [INFO] [stdout] 501 | impl BleHci { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 502 | pub fn init(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 506 | pub fn deinit(){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 510 | pub fn write(data : Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 513 | pub fn write_with_callback(data : Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | pub fn set_read_callback(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 523 | pub fn advertisement_filter( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/obniz.rs:530:8 [INFO] [stdout] | [INFO] [stdout] 530 | struct Message{} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `send` and `set_receive_callback` are never used [INFO] [stdout] --> src/obniz.rs:533:10 [INFO] [stdout] | [INFO] [stdout] 531 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 532 | [INFO] [stdout] 533 | pub fn send(data: &str, to: Vec ){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 537 | pub fn set_receive_callback( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plugin` is never constructed [INFO] [stdout] --> src/obniz.rs:546:8 [INFO] [stdout] | [INFO] [stdout] 546 | struct Plugin {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `send` and `set_receive_callback` are never used [INFO] [stdout] --> src/obniz.rs:549:10 [INFO] [stdout] | [INFO] [stdout] 547 | impl Plugin { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 548 | [INFO] [stdout] 549 | pub fn send(data: Vec ){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 553 | pub fn set_receive_callback( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/api/response.rs:102:3 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct Uart { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 102 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Uart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/api/response.rs:108:3 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct Spi{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] 108 | data :Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Spi` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scan` is never read [INFO] [stdout] --> src/api/response.rs:173:3 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct Wifi { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 173 | scan: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Wifi` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hci` is never read [INFO] [stdout] --> src/api/response.rs:181:3 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct Ble { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 181 | hci : Hci, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ble` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `read` is never read [INFO] [stdout] --> src/api/response.rs:187:3 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct Hci { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 187 | read : Read, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hci` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/api/response.rs:193:3 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct Read { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 193 | data : Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Read` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setAsInput` should have a snake case name [INFO] [stdout] --> src/obniz.rs:150:10 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn setAsInput(self,enable_stream_callback: bool){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `set_as_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setAsOutput` should have a snake case name [INFO] [stdout] --> src/obniz.rs:163:10 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn setAsOutput(self,value : bool){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `set_as_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setOutputType` should have a snake case name [INFO] [stdout] --> src/obniz.rs:174:10 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn setOutputType(self,output_type : OutputType){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_output_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setPullType` should have a snake case name [INFO] [stdout] --> src/obniz.rs:186:10 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn setPullType(self,pull_type : PullType){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `set_pull_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setFrequency` should have a snake case name [INFO] [stdout] --> src/obniz.rs:280:10 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn setFrequency(self, freq : u64) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `set_frequency` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setPulseWidth` should have a snake case name [INFO] [stdout] --> src/obniz.rs:285:10 [INFO] [stdout] | [INFO] [stdout] 285 | pub fn setPulseWidth(self, width_msec : u64) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_pulse_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bitArray` should have a snake case name [INFO] [stdout] --> src/obniz.rs:289:45 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn modulate(self, symbol_length: f64, bitArray: Vec){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `bit_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 99 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 99 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, `collections::HashMap`, and `io::Error as IoError` [INFO] [stdout] --> tests/common.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 3 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | io::Error as IoError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | net::SocketAddr, [INFO] [stdout] 6 | sync::{Arc, Mutex}, [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UnboundedSender` and `unbounded` [INFO] [stdout] --> tests/common.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | use futures_channel::mpsc::{unbounded, UnboundedSender}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `future`, `pin_mut`, and `stream::TryStreamExt` [INFO] [stdout] --> tests/common.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use futures_util::{future, pin_mut, stream::TryStreamExt, StreamExt}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::protocol::Message` [INFO] [stdout] --> tests/common.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tungstenite::protocol::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures_util::Future` that must be used [INFO] [stdout] --> tests/common.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 52 | launch_mock_obniz_server(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/server.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | recp.unbounded_send(msg.clone()).unwrap(); [INFO] [stdout] | -------------- ^^^^^^^^^^^ expected `tungstenite::Message`, found `Message` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `Message` and `tungstenite::Message` have similar names, but are actually distinct types [INFO] [stdout] note: `Message` is defined in crate `tungstenite` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tungstenite-0.13.0/src/protocol/message.rs:160:1 [INFO] [stdout] | [INFO] [stdout] 160 | pub enum Message { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `tungstenite::Message` is defined in crate `tungstenite` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tungstenite-0.17.2/src/protocol/message.rs:160:1 [INFO] [stdout] | [INFO] [stdout] 160 | pub enum Message { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `tungstenite` are being used? [INFO] [stdout] help: the return type of this call is `tokio_tungstenite::tungstenite::Message` due to the type of the argument passed [INFO] [stdout] --> examples/server.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | recp.unbounded_send(msg.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `unbounded_send` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/futures-channel-0.3.15/src/mpsc/mod.rs:825:12 [INFO] [stdout] | [INFO] [stdout] 825 | pub fn unbounded_send(&self, msg: T) -> Result<(), TrySendError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SplitSink, tokio_tungstenite::tungstenite::Message>: futures_util::Sink` is not satisfied [INFO] [stdout] --> examples/server.rs:67:48 [INFO] [stdout] | [INFO] [stdout] 67 | let receive_from_others = rx.map(Ok).forward(outgoing); [INFO] [stdout] | ------- ^^^^^^^^ the trait `futures_util::Sink` is not implemented for `SplitSink, tokio_tungstenite::tungstenite::Message>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures_util::Sink` is implemented for `SplitSink, tokio_tungstenite::tungstenite::Message>` [INFO] [stdout] = help: for that trait implementation, expected `tokio_tungstenite::tungstenite::Message`, found `tungstenite::Message` [INFO] [stdout] note: required by a bound in `futures_util::StreamExt::forward` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.15/src/stream/stream/mod.rs:1338:12 [INFO] [stdout] | [INFO] [stdout] 1336 | fn forward(self, sink: S) -> Forward [INFO] [stdout] | ------- required by a bound in this associated function [INFO] [stdout] 1337 | where [INFO] [stdout] 1338 | S: Sink, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StreamExt::forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SplitSink, tokio_tungstenite::tungstenite::Message>: futures_util::Sink` is not satisfied [INFO] [stdout] --> examples/server.rs:70:38 [INFO] [stdout] | [INFO] [stdout] 70 | future::select(broadcast_incoming, receive_from_others).await; [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^ the trait `futures_util::Sink` is not implemented for `SplitSink, tokio_tungstenite::tungstenite::Message>`, which is required by `Pin<&mut Forward, fn(tungstenite::Message) -> Result {Result::::Ok}>, SplitSink, tokio_tungstenite::tungstenite::Message>>>: futures_util::Future` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures_util::Sink` is implemented for `SplitSink, tokio_tungstenite::tungstenite::Message>` [INFO] [stdout] = help: for that trait implementation, expected `tokio_tungstenite::tungstenite::Message`, found `tungstenite::Message` [INFO] [stdout] = note: required for `Forward, fn(Message) -> Result {Result::<..., ...>::Ok}>, ..., ...>` to implement `futures_util::Future` [INFO] [stdout] = note: 2 redundant requirements hidden [INFO] [stdout] = note: required for `Pin<&mut Forward, fn(Message) -> ... {Result::<..., ...>::Ok}>, ...>>` to implement `futures_util::Future` [INFO] [stdout] note: required by a bound in `futures_util::future::select` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.15/src/future/select.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn select(future1: A, future2: B) -> Select [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 87 | B: Future + Unpin, [INFO] [stdout] | ^^^^^^ required by this bound in `select` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/server-41845b687d19838f.long-type-8145133005229390047.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SplitSink, tokio_tungstenite::tungstenite::Message>: futures_util::Sink` is not satisfied [INFO] [stdout] --> examples/server.rs:70:59 [INFO] [stdout] | [INFO] [stdout] 70 | future::select(broadcast_incoming, receive_from_others).await; [INFO] [stdout] | --------------------------------------------------------^^^^^ [INFO] [stdout] | | || [INFO] [stdout] | | |the trait `futures_util::Sink` is not implemented for `SplitSink, tokio_tungstenite::tungstenite::Message>`, which is required by `futures_util::future::Select>, futures_util::future::Ready>, {closure@examples/server.rs:52:50: 52:55}>>, Pin<&mut Forward, fn(tungstenite::Message) -> Result {Result::::Ok}>, SplitSink, tokio_tungstenite::tungstenite::Message>>>>: std::future::IntoFuture` [INFO] [stdout] | | help: remove the `.await` [INFO] [stdout] | this call returns `SplitSink, tokio_tungstenite::tungstenite::Message>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures_util::Sink` is implemented for `SplitSink, tokio_tungstenite::tungstenite::Message>` [INFO] [stdout] = help: for that trait implementation, expected `tokio_tungstenite::tungstenite::Message`, found `tungstenite::Message` [INFO] [stdout] = note: required for `Forward, fn(Message) -> Result {Result::<..., ...>::Ok}>, ..., ...>` to implement `futures_util::Future` [INFO] [stdout] = note: 3 redundant requirements hidden [INFO] [stdout] = note: required for `Select>, Ready>, ...>>, ...>` to implement `futures_util::Future` [INFO] [stdout] = note: required for `Select>, Ready>, ...>>, ...>` to implement `std::future::IntoFuture` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/server-41845b687d19838f.long-type-15823643805712946597.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/examples/server-41845b687d19838f.long-type-8145133005229390047.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `obniz-rust` (example "server") due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "46f77946a32d1cb19d2b0b336d1b714fd001675b4ee31de8ac386595591274c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46f77946a32d1cb19d2b0b336d1b714fd001675b4ee31de8ac386595591274c7", kill_on_drop: false }` [INFO] [stdout] 46f77946a32d1cb19d2b0b336d1b714fd001675b4ee31de8ac386595591274c7