[INFO] cloning repository https://github.com/MilkBlock/hyper_board [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MilkBlock/hyper_board" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMilkBlock%2Fhyper_board", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMilkBlock%2Fhyper_board'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 333c8620c757ae98d54c762eacf7733bf1b75b9f [INFO] checking MilkBlock/hyper_board against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMilkBlock%2Fhyper_board" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MilkBlock/hyper_board on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-6-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/MilkBlock/hyper_board [INFO] finished tweaking git repo https://github.com/MilkBlock/hyper_board [INFO] tweaked toml for git repo https://github.com/MilkBlock/hyper_board written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MilkBlock/hyper_board 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: target.armv7-unknown-linux-gnueabihf.linker [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded embedded-hal-nb v1.0.0 [INFO] [stderr] Downloaded syn v2.0.51 [INFO] [stderr] Downloaded embedded-hal v1.0.0 [INFO] [stderr] Downloaded gpio-cdev v0.6.0 [INFO] [stderr] Downloaded i2cdev v0.6.0 [INFO] [stderr] Downloaded spidev v0.6.0 [INFO] [stderr] Downloaded sysfs_gpio v0.6.1 [INFO] [stderr] Downloaded linux-embedded-hal v0.4.0 [INFO] [stderr] Downloaded hermit-abi v0.3.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e4b49d07325722ce5545def6daaed56250f9db3cd6b394be0f185ef295aa4e5 [INFO] running `Command { std: "docker" "start" "-a" "9e4b49d07325722ce5545def6daaed56250f9db3cd6b394be0f185ef295aa4e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e4b49d07325722ce5545def6daaed56250f9db3cd6b394be0f185ef295aa4e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e4b49d07325722ce5545def6daaed56250f9db3cd6b394be0f185ef295aa4e5", kill_on_drop: false }` [INFO] [stdout] 9e4b49d07325722ce5545def6daaed56250f9db3cd6b394be0f185ef295aa4e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 142d60257e0eedd5969cf5fba728b985fa7b4cdb00666a6be12e3f1b455cc47f [INFO] running `Command { std: "docker" "start" "-a" "142d60257e0eedd5969cf5fba728b985fa7b4cdb00666a6be12e3f1b455cc47f", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: target.armv7-unknown-linux-gnueabihf.linker [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking lock_api v0.4.11 [INFO] [stderr] Checking http v1.0.0 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking embedded-hal v1.0.0 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking embedded-hal-nb v1.0.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking clap_builder v4.4.6 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling syn v2.0.51 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking nix v0.23.2 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking gpio-cdev v0.6.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling clap_derive v4.4.2 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking sysfs_gpio v0.6.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking unescaper v0.1.4 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking serialport v4.3.0 [INFO] [stderr] Checking spidev v0.6.0 [INFO] [stderr] Checking i2cdev v0.6.0 [INFO] [stderr] Checking clap v4.4.6 [INFO] [stderr] Checking linux-embedded-hal v0.4.0 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking websocket_board v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `fmt::format`, `process::Command`, `rc::Rc` [INFO] [stdout] --> src/request.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::format, process::Command, rc::Rc, sync::Arc, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FutureExt` [INFO] [stdout] --> src/request.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use futures_util::{FutureExt, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebSocket` [INFO] [stdout] --> src/request.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio_tungstenite::{tungstenite::{ Message, WebSocket}, MaybeTlsStream, WebSocketStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HyperMod`, `self`, `walk_mod` [INFO] [stdout] --> src/request.rs:10:58 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{debug_info_blue, debug_info_red, hyper_mod::{self, FunctionalMod, HyperMod}, walk_mod, BoardData, GlobalData}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::format`, `process::Output`, `rc::Rc` [INFO] [stdout] --> src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{fmt::format, process::Output, rc::Rc, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `linux_embedded_hal::i2cdev::core::I2CDevice` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use linux_embedded_hal::i2cdev::core::I2CDevice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/main.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | use request::{read_server_sock, Stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `timeout` [INFO] [stdout] --> src/main.rs:14:58 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::{net::TcpListener, sync::Mutex, time::{sleep, timeout},spawn}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::stream::SplitSink` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use futures::stream::SplitSink; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FutureExt`, `Sink` [INFO] [stdout] --> src/main.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use futures_util::{FutureExt, Sink, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WebSocketStream`, `WebSocket`, `handshake::server`, `self` [INFO] [stdout] --> src/main.rs:20:53 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio_tungstenite::{accept_async, tungstenite::{self, handshake::server, Message, WebSocket}, WebSocketStream}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `tokio` is imported redundantly [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::{self, signal}; [INFO] [stdout] | ^^^^ the item `tokio` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Line` [INFO] [stdout] --> src/main.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | use linux_embedded_hal::{gpio_cdev::{self, Chip, Line, LineHandle, LineRequestFlags}, I2cdev}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/macros.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 8 - ($(Ok($arg_n)),*) =>{ [INFO] [stdout] 8 + Ok($arg_n) =>{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::format`, `process::Command`, `rc::Rc` [INFO] [stdout] --> src/request.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::format, process::Command, rc::Rc, sync::Arc, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FutureExt` [INFO] [stdout] --> src/request.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use futures_util::{FutureExt, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebSocket` [INFO] [stdout] --> src/request.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio_tungstenite::{tungstenite::{ Message, WebSocket}, MaybeTlsStream, WebSocketStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HyperMod`, `self`, `walk_mod` [INFO] [stdout] --> src/request.rs:10:58 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{debug_info_blue, debug_info_red, hyper_mod::{self, FunctionalMod, HyperMod}, walk_mod, BoardData, GlobalData}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::format`, `process::Output`, `rc::Rc` [INFO] [stdout] --> src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{fmt::format, process::Output, rc::Rc, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `linux_embedded_hal::i2cdev::core::I2CDevice` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use linux_embedded_hal::i2cdev::core::I2CDevice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/main.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | use request::{read_server_sock, Stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `timeout` [INFO] [stdout] --> src/main.rs:14:58 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::{net::TcpListener, sync::Mutex, time::{sleep, timeout},spawn}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::stream::SplitSink` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use futures::stream::SplitSink; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FutureExt`, `Sink` [INFO] [stdout] --> src/main.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use futures_util::{FutureExt, Sink, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WebSocketStream`, `WebSocket`, `handshake::server`, `self` [INFO] [stdout] --> src/main.rs:20:53 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio_tungstenite::{accept_async, tungstenite::{self, handshake::server, Message, WebSocket}, WebSocketStream}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `tokio` is imported redundantly [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::{self, signal}; [INFO] [stdout] | ^^^^ the item `tokio` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Line` [INFO] [stdout] --> src/main.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | use linux_embedded_hal::{gpio_cdev::{self, Chip, Line, LineHandle, LineRequestFlags}, I2cdev}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/macros.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 8 - ($(Ok($arg_n)),*) =>{ [INFO] [stdout] 8 + Ok($arg_n) =>{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_data_arctex` [INFO] [stdout] --> src/main.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | async fn init_i2c(board_data_arctex: Arc>,args:&Args){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_data_arctex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i2cdev` [INFO] [stdout] --> src/main.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(mut i2cdev) =>{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_i2cdev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(mut i2cdev) =>{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | let mut hyper_mod = i2cdev.to_hyper_mod().await; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_data_arctex` [INFO] [stdout] --> src/main.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | async fn init_i2c(board_data_arctex: Arc>,args:&Args){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_data_arctex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i2cdev` [INFO] [stdout] --> src/main.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(mut i2cdev) =>{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_i2cdev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(mut i2cdev) =>{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/macros.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ----------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 16 | _ => {println!("conversion failed \x1B[31m{}\x1B[0m with args \x1B[31m{:?}\x1B[0m ",stringify!($command_name), args)} [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_data_arctex` [INFO] [stdout] --> src/main.rs:220:72 [INFO] [stdout] | [INFO] [stdout] 220 | ...:String,ip:String,board_data_arctex: Arc>,global_data_arctex:Arc>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_data_arctex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dialogue_id` [INFO] [stdout] --> src/macros.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | $(Some(CommandArgs{command ,args ,dialogue_id}) if &command == stringify!($command_name) =>{ [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `dialogue_id: _` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/macros.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | let mut hyper_mod = i2cdev.to_hyper_mod().await; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | let (mut write,mut read) = if !is_local_test{ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let mut msg = read_server_sock(ctx.clone()).await; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `while let` pattern [INFO] [stdout] --> src/main.rs:270:11 [INFO] [stdout] | [INFO] [stdout] 270 | while let (stream,_sock_addr) = server.accept().await.expect("accept 失败") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the loop will never exit [INFO] [stdout] = help: consider instead using a `loop { ... }` with a `let` inside it [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/macros.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ----------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 16 | _ => {println!("conversion failed \x1B[31m{}\x1B[0m with args \x1B[31m{:?}\x1B[0m ",stringify!($command_name), args)} [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_data_arctex` [INFO] [stdout] --> src/main.rs:220:72 [INFO] [stdout] | [INFO] [stdout] 220 | ...:String,ip:String,board_data_arctex: Arc>,global_data_arctex:Arc>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_data_arctex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dialogue_id` [INFO] [stdout] --> src/macros.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | $(Some(CommandArgs{command ,args ,dialogue_id}) if &command == stringify!($command_name) =>{ [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `dialogue_id: _` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/macros.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/macros.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ----------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 16 | _ => {println!("conversion failed \x1B[31m{}\x1B[0m with args \x1B[31m{:?}\x1B[0m ",stringify!($command_name), args)} [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dialogue_id` [INFO] [stdout] --> src/macros.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | $(Some(CommandArgs{command ,args ,dialogue_id}) if &command == stringify!($command_name) =>{ [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `dialogue_id: _` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/macros.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | let (mut write,mut read) = if !is_local_test{ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let mut msg = read_server_sock(ctx.clone()).await; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/request.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn log(ctx:ContextWithApp,log_string:&String){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/request.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let handle = ctx.board_data_arctex.lock().await [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `while let` pattern [INFO] [stdout] --> src/main.rs:270:11 [INFO] [stdout] | [INFO] [stdout] 270 | while let (stream,_sock_addr) = server.accept().await.expect("accept 失败") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the loop will never exit [INFO] [stdout] = help: consider instead using a `loop { ... }` with a `let` inside it [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/macros.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ----------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 16 | _ => {println!("conversion failed \x1B[31m{}\x1B[0m with args \x1B[31m{:?}\x1B[0m ",stringify!($command_name), args)} [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dialogue_id` [INFO] [stdout] --> src/macros.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | $(Some(CommandArgs{command ,args ,dialogue_id}) if &command == stringify!($command_name) =>{ [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `dialogue_id: _` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/macros.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/request.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn log(ctx:ContextWithApp,log_string:&String){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/request.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let handle = ctx.board_data_arctex.lock().await [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/command_args.rs:32:65 [INFO] [stdout] | [INFO] [stdout] 32 | let event_id_end_index = rev_chs.enumerate().find(|(index,ch)| *ch=='[').unwrap().0 +1; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `occupied`, `handle_x`, and `handle_y` are never read [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct BoardData{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 71 | occupied : bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | handle_x: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 73 | handle_y: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_data` is never read [INFO] [stdout] --> src/request.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ContextWithServer{ [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 22 | pub write:Arc> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContextWithServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_data_arctex` is never read [INFO] [stdout] --> src/request.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct ContextWithApp{ [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 51 | pub board_data_arctex:Arc>,pub write:SinkArctex,pub read:StreamArctex, [INFO] [stdout] 52 | pub global_data_arctex:Arc> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContextWithApp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_sleeping` is never read [INFO] [stdout] --> src/walk_mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct WalkMod{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub is_sleeping:bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_is_sleeping` is never used [INFO] [stdout] --> src/walk_mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl WalkMod{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn send_is_sleeping(&self,i2c_dev:&mut I2cdev){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `factory_name` is never read [INFO] [stdout] --> src/hyper_mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HyperMod{ [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 7 | pub factory_name:String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/command_args.rs:32:65 [INFO] [stdout] | [INFO] [stdout] 32 | let event_id_end_index = rev_chs.enumerate().find(|(index,ch)| *ch=='[').unwrap().0 +1; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | signal::ctrl_c().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = signal::ctrl_c().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | server.await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = server.await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | write.send(Message::Text("log:(This is board zynq 7020)".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 230 | let _ = write.send(Message::Text("log:(This is board zynq 7020)".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | write.send(Message::Text(format!("register_board:({},{})",wifi,ip))).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 231 | let _ = write.send(Message::Text(format!("register_board:({},{})",wifi,ip))).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/request.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | ctx.write.lock().await.send(Message::Text("check:()".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 27 | let _ = ctx.write.lock().await.send(Message::Text("check:()".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/request.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ctx.write.lock().await.send(Message::Text("response:(true)".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = ctx.write.lock().await.send(Message::Text("response:(true)".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/walk_mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | i2c_dev.smbus_write_block_data(50, data_converted); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 18 | let _ = i2c_dev.smbus_write_block_data(50, data_converted); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `occupied`, `handle_x`, and `handle_y` are never read [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct BoardData{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 71 | occupied : bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | handle_x: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 73 | handle_y: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_data` is never read [INFO] [stdout] --> src/request.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ContextWithServer{ [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 22 | pub write:Arc> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContextWithServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_data_arctex` is never read [INFO] [stdout] --> src/request.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct ContextWithApp{ [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 51 | pub board_data_arctex:Arc>,pub write:SinkArctex,pub read:StreamArctex, [INFO] [stdout] 52 | pub global_data_arctex:Arc> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContextWithApp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_sleeping` is never read [INFO] [stdout] --> src/walk_mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct WalkMod{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub is_sleeping:bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_is_sleeping` is never used [INFO] [stdout] --> src/walk_mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl WalkMod{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn send_is_sleeping(&self,i2c_dev:&mut I2cdev){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `factory_name` is never read [INFO] [stdout] --> src/hyper_mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HyperMod{ [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 7 | pub factory_name:String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | signal::ctrl_c().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = signal::ctrl_c().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | server.await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = server.await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | write.send(Message::Text("log:(This is board zynq 7020)".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 230 | let _ = write.send(Message::Text("log:(This is board zynq 7020)".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | write.send(Message::Text(format!("register_board:({},{})",wifi,ip))).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 231 | let _ = write.send(Message::Text(format!("register_board:({},{})",wifi,ip))).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/request.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | ctx.write.lock().await.send(Message::Text("check:()".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 27 | let _ = ctx.write.lock().await.send(Message::Text("check:()".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/request.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ctx.write.lock().await.send(Message::Text("response:(true)".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = ctx.write.lock().await.send(Message::Text("response:(true)".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/walk_mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | i2c_dev.smbus_write_block_data(50, data_converted); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 18 | let _ = i2c_dev.smbus_write_block_data(50, data_converted); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.27s [INFO] running `Command { std: "docker" "inspect" "142d60257e0eedd5969cf5fba728b985fa7b4cdb00666a6be12e3f1b455cc47f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "142d60257e0eedd5969cf5fba728b985fa7b4cdb00666a6be12e3f1b455cc47f", kill_on_drop: false }` [INFO] [stdout] 142d60257e0eedd5969cf5fba728b985fa7b4cdb00666a6be12e3f1b455cc47f [INFO] checking MilkBlock/hyper_board against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMilkBlock%2Fhyper_board" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MilkBlock/hyper_board on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-6-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/MilkBlock/hyper_board [INFO] finished tweaking git repo https://github.com/MilkBlock/hyper_board [INFO] tweaked toml for git repo https://github.com/MilkBlock/hyper_board written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MilkBlock/hyper_board 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: target.armv7-unknown-linux-gnueabihf.linker [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df7d154f667fa527a5298325793c9f6a709be2f22ce1f89ec4c34017f7a5929d [INFO] running `Command { std: "docker" "start" "-a" "df7d154f667fa527a5298325793c9f6a709be2f22ce1f89ec4c34017f7a5929d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df7d154f667fa527a5298325793c9f6a709be2f22ce1f89ec4c34017f7a5929d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df7d154f667fa527a5298325793c9f6a709be2f22ce1f89ec4c34017f7a5929d", kill_on_drop: false }` [INFO] [stdout] df7d154f667fa527a5298325793c9f6a709be2f22ce1f89ec4c34017f7a5929d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f123a643085f2f7ecff04c17302ad56fcd4f4e7f0656771e523efefa0b018e9 [INFO] running `Command { std: "docker" "start" "-a" "8f123a643085f2f7ecff04c17302ad56fcd4f4e7f0656771e523efefa0b018e9", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: target.armv7-unknown-linux-gnueabihf.linker [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking lock_api v0.4.11 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking http v1.0.0 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Checking embedded-hal v1.0.0 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking embedded-hal-nb v1.0.0 [INFO] [stderr] Checking clap_builder v4.4.6 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling syn v2.0.51 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking nix v0.23.2 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking gpio-cdev v0.6.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling clap_derive v4.4.2 [INFO] [stderr] Checking sysfs_gpio v0.6.1 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking spidev v0.6.0 [INFO] [stderr] Checking i2cdev v0.6.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking unescaper v0.1.4 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking serialport v4.3.0 [INFO] [stderr] Checking linux-embedded-hal v0.4.0 [INFO] [stderr] Checking clap v4.4.6 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking websocket_board v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `fmt::format`, `process::Command`, `rc::Rc` [INFO] [stdout] --> src/request.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::format, process::Command, rc::Rc, sync::Arc, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FutureExt` [INFO] [stdout] --> src/request.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use futures_util::{FutureExt, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebSocket` [INFO] [stdout] --> src/request.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio_tungstenite::{tungstenite::{ Message, WebSocket}, MaybeTlsStream, WebSocketStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HyperMod`, `self`, `walk_mod` [INFO] [stdout] --> src/request.rs:10:58 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{debug_info_blue, debug_info_red, hyper_mod::{self, FunctionalMod, HyperMod}, walk_mod, BoardData, GlobalData}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::format`, `process::Output`, `rc::Rc` [INFO] [stdout] --> src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{fmt::format, process::Output, rc::Rc, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `linux_embedded_hal::i2cdev::core::I2CDevice` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use linux_embedded_hal::i2cdev::core::I2CDevice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/main.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | use request::{read_server_sock, Stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `timeout` [INFO] [stdout] --> src/main.rs:14:58 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::{net::TcpListener, sync::Mutex, time::{sleep, timeout},spawn}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::stream::SplitSink` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use futures::stream::SplitSink; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FutureExt`, `Sink` [INFO] [stdout] --> src/main.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use futures_util::{FutureExt, Sink, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WebSocketStream`, `WebSocket`, `handshake::server`, `self` [INFO] [stdout] --> src/main.rs:20:53 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio_tungstenite::{accept_async, tungstenite::{self, handshake::server, Message, WebSocket}, WebSocketStream}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `tokio` is imported redundantly [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::{self, signal}; [INFO] [stdout] | ^^^^ the item `tokio` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Line` [INFO] [stdout] --> src/main.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | use linux_embedded_hal::{gpio_cdev::{self, Chip, Line, LineHandle, LineRequestFlags}, I2cdev}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/macros.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 8 - ($(Ok($arg_n)),*) =>{ [INFO] [stdout] 8 + Ok($arg_n) =>{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::format`, `process::Command`, `rc::Rc` [INFO] [stdout] --> src/request.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::format, process::Command, rc::Rc, sync::Arc, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FutureExt` [INFO] [stdout] --> src/request.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use futures_util::{FutureExt, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebSocket` [INFO] [stdout] --> src/request.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio_tungstenite::{tungstenite::{ Message, WebSocket}, MaybeTlsStream, WebSocketStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HyperMod`, `self`, `walk_mod` [INFO] [stdout] --> src/request.rs:10:58 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{debug_info_blue, debug_info_red, hyper_mod::{self, FunctionalMod, HyperMod}, walk_mod, BoardData, GlobalData}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::format`, `process::Output`, `rc::Rc` [INFO] [stdout] --> src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{fmt::format, process::Output, rc::Rc, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `linux_embedded_hal::i2cdev::core::I2CDevice` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use linux_embedded_hal::i2cdev::core::I2CDevice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/main.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | use request::{read_server_sock, Stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `timeout` [INFO] [stdout] --> src/main.rs:14:58 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::{net::TcpListener, sync::Mutex, time::{sleep, timeout},spawn}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::stream::SplitSink` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use futures::stream::SplitSink; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FutureExt`, `Sink` [INFO] [stdout] --> src/main.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use futures_util::{FutureExt, Sink, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WebSocketStream`, `WebSocket`, `handshake::server`, `self` [INFO] [stdout] --> src/main.rs:20:53 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio_tungstenite::{accept_async, tungstenite::{self, handshake::server, Message, WebSocket}, WebSocketStream}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `tokio` is imported redundantly [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::{self, signal}; [INFO] [stdout] | ^^^^ the item `tokio` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Line` [INFO] [stdout] --> src/main.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | use linux_embedded_hal::{gpio_cdev::{self, Chip, Line, LineHandle, LineRequestFlags}, I2cdev}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/macros.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 8 - ($(Ok($arg_n)),*) =>{ [INFO] [stdout] 8 + Ok($arg_n) =>{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_data_arctex` [INFO] [stdout] --> src/main.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | async fn init_i2c(board_data_arctex: Arc>,args:&Args){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_data_arctex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i2cdev` [INFO] [stdout] --> src/main.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(mut i2cdev) =>{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_i2cdev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(mut i2cdev) =>{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | let mut hyper_mod = i2cdev.to_hyper_mod().await; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_data_arctex` [INFO] [stdout] --> src/main.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | async fn init_i2c(board_data_arctex: Arc>,args:&Args){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_data_arctex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i2cdev` [INFO] [stdout] --> src/main.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(mut i2cdev) =>{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_i2cdev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(mut i2cdev) =>{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | let mut hyper_mod = i2cdev.to_hyper_mod().await; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/macros.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ----------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 16 | _ => {println!("conversion failed \x1B[31m{}\x1B[0m with args \x1B[31m{:?}\x1B[0m ",stringify!($command_name), args)} [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_data_arctex` [INFO] [stdout] --> src/main.rs:220:72 [INFO] [stdout] | [INFO] [stdout] 220 | ...:String,ip:String,board_data_arctex: Arc>,global_data_arctex:Arc>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_data_arctex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dialogue_id` [INFO] [stdout] --> src/macros.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | $(Some(CommandArgs{command ,args ,dialogue_id}) if &command == stringify!($command_name) =>{ [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `dialogue_id: _` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/macros.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | let (mut write,mut read) = if !is_local_test{ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let mut msg = read_server_sock(ctx.clone()).await; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/macros.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ----------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 16 | _ => {println!("conversion failed \x1B[31m{}\x1B[0m with args \x1B[31m{:?}\x1B[0m ",stringify!($command_name), args)} [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_data_arctex` [INFO] [stdout] --> src/main.rs:220:72 [INFO] [stdout] | [INFO] [stdout] 220 | ...:String,ip:String,board_data_arctex: Arc>,global_data_arctex:Arc>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_data_arctex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dialogue_id` [INFO] [stdout] --> src/macros.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | $(Some(CommandArgs{command ,args ,dialogue_id}) if &command == stringify!($command_name) =>{ [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `dialogue_id: _` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/macros.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | let (mut write,mut read) = if !is_local_test{ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let mut msg = read_server_sock(ctx.clone()).await; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / match_command!( [INFO] [stdout] 254 | | command request_check with args () debug true [INFO] [stdout] 255 | | in cmd_args [INFO] [stdout] 256 | | with context ctx [INFO] [stdout] 257 | | ) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `while let` pattern [INFO] [stdout] --> src/main.rs:270:11 [INFO] [stdout] | [INFO] [stdout] 270 | while let (stream,_sock_addr) = server.accept().await.expect("accept 失败") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the loop will never exit [INFO] [stdout] = help: consider instead using a `loop { ... }` with a `let` inside it [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/macros.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ----------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 16 | _ => {println!("conversion failed \x1B[31m{}\x1B[0m with args \x1B[31m{:?}\x1B[0m ",stringify!($command_name), args)} [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dialogue_id` [INFO] [stdout] --> src/macros.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | $(Some(CommandArgs{command ,args ,dialogue_id}) if &command == stringify!($command_name) =>{ [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `dialogue_id: _` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/macros.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `while let` pattern [INFO] [stdout] --> src/main.rs:270:11 [INFO] [stdout] | [INFO] [stdout] 270 | while let (stream,_sock_addr) = server.accept().await.expect("accept 失败") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the loop will never exit [INFO] [stdout] = help: consider instead using a `loop { ... }` with a `let` inside it [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/macros.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 8 | ($(Ok($arg_n)),*) =>{ [INFO] [stdout] | ----------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 16 | _ => {println!("conversion failed \x1B[31m{}\x1B[0m with args \x1B[31m{:?}\x1B[0m ",stringify!($command_name), args)} [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dialogue_id` [INFO] [stdout] --> src/macros.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | $(Some(CommandArgs{command ,args ,dialogue_id}) if &command == stringify!($command_name) =>{ [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `dialogue_id: _` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/macros.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/request.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn log(ctx:ContextWithApp,log_string:&String){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/request.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn log(ctx:ContextWithApp,log_string:&String){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/request.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let handle = ctx.board_data_arctex.lock().await [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/request.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let handle = ctx.board_data_arctex.lock().await [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:300:21 [INFO] [stdout] | [INFO] [stdout] 300 | / match_command!( [INFO] [stdout] 301 | | command log with args (log_str:String) debug false [INFO] [stdout] 302 | | command request_occupy with args () debug true [INFO] [stdout] 303 | | command update_gpio with args (pin_num:usize,state:u8) debug true [INFO] [stdout] ... | [INFO] [stdout] 306 | | with context ctx [INFO] [stdout] 307 | | ) [INFO] [stdout] | |_____________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `match_command` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/command_args.rs:32:65 [INFO] [stdout] | [INFO] [stdout] 32 | let event_id_end_index = rev_chs.enumerate().find(|(index,ch)| *ch=='[').unwrap().0 +1; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/command_args.rs:32:65 [INFO] [stdout] | [INFO] [stdout] 32 | let event_id_end_index = rev_chs.enumerate().find(|(index,ch)| *ch=='[').unwrap().0 +1; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `occupied`, `handle_x`, and `handle_y` are never read [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct BoardData{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 71 | occupied : bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | handle_x: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 73 | handle_y: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_data` is never read [INFO] [stdout] --> src/request.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ContextWithServer{ [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 22 | pub write:Arc> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContextWithServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_data_arctex` is never read [INFO] [stdout] --> src/request.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct ContextWithApp{ [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 51 | pub board_data_arctex:Arc>,pub write:SinkArctex,pub read:StreamArctex, [INFO] [stdout] 52 | pub global_data_arctex:Arc> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContextWithApp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_sleeping` is never read [INFO] [stdout] --> src/walk_mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct WalkMod{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub is_sleeping:bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_is_sleeping` is never used [INFO] [stdout] --> src/walk_mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl WalkMod{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn send_is_sleeping(&self,i2c_dev:&mut I2cdev){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `factory_name` is never read [INFO] [stdout] --> src/hyper_mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HyperMod{ [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 7 | pub factory_name:String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `occupied`, `handle_x`, and `handle_y` are never read [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct BoardData{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 71 | occupied : bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | handle_x: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 73 | handle_y: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_data` is never read [INFO] [stdout] --> src/request.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ContextWithServer{ [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 22 | pub write:Arc> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContextWithServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_data_arctex` is never read [INFO] [stdout] --> src/request.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct ContextWithApp{ [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 51 | pub board_data_arctex:Arc>,pub write:SinkArctex,pub read:StreamArctex, [INFO] [stdout] 52 | pub global_data_arctex:Arc> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContextWithApp` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_sleeping` is never read [INFO] [stdout] --> src/walk_mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct WalkMod{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub is_sleeping:bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_is_sleeping` is never used [INFO] [stdout] --> src/walk_mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl WalkMod{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn send_is_sleeping(&self,i2c_dev:&mut I2cdev){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `factory_name` is never read [INFO] [stdout] --> src/hyper_mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HyperMod{ [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 7 | pub factory_name:String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | signal::ctrl_c().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = signal::ctrl_c().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | server.await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = server.await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | write.send(Message::Text("log:(This is board zynq 7020)".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 230 | let _ = write.send(Message::Text("log:(This is board zynq 7020)".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | write.send(Message::Text(format!("register_board:({},{})",wifi,ip))).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 231 | let _ = write.send(Message::Text(format!("register_board:({},{})",wifi,ip))).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/request.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | ctx.write.lock().await.send(Message::Text("check:()".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 27 | let _ = ctx.write.lock().await.send(Message::Text("check:()".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | signal::ctrl_c().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = signal::ctrl_c().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/request.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ctx.write.lock().await.send(Message::Text("response:(true)".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = ctx.write.lock().await.send(Message::Text("response:(true)".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/walk_mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | i2c_dev.smbus_write_block_data(50, data_converted); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 18 | let _ = i2c_dev.smbus_write_block_data(50, data_converted); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | server.await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = server.await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | write.send(Message::Text("log:(This is board zynq 7020)".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 230 | let _ = write.send(Message::Text("log:(This is board zynq 7020)".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | write.send(Message::Text(format!("register_board:({},{})",wifi,ip))).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 231 | let _ = write.send(Message::Text(format!("register_board:({},{})",wifi,ip))).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/request.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | ctx.write.lock().await.send(Message::Text("check:()".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 27 | let _ = ctx.write.lock().await.send(Message::Text("check:()".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/request.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ctx.write.lock().await.send(Message::Text("response:(true)".to_string())).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = ctx.write.lock().await.send(Message::Text("response:(true)".to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/walk_mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | i2c_dev.smbus_write_block_data(50, data_converted); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 18 | let _ = i2c_dev.smbus_write_block_data(50, data_converted); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.95s [INFO] running `Command { std: "docker" "inspect" "8f123a643085f2f7ecff04c17302ad56fcd4f4e7f0656771e523efefa0b018e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f123a643085f2f7ecff04c17302ad56fcd4f4e7f0656771e523efefa0b018e9", kill_on_drop: false }` [INFO] [stdout] 8f123a643085f2f7ecff04c17302ad56fcd4f4e7f0656771e523efefa0b018e9