[INFO] cloning repository https://github.com/yato-Neco/raserver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yato-Neco/raserver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyato-Neco%2Fraserver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyato-Neco%2Fraserver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5394bcee2efb396a8dfa272a09ae80dd20ebba33 [INFO] testing yato-Neco/raserver against master#0e21a27075a8c508f00d1a4430497f17ce93d5c9 for pr-98839 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyato-Neco%2Fraserver" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yato-Neco/raserver on toolchain 0e21a27075a8c508f00d1a4430497f17ce93d5c9 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yato-Neco/raserver [INFO] finished tweaking git repo https://github.com/yato-Neco/raserver [INFO] tweaked toml for git repo https://github.com/yato-Neco/raserver written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/yato-Neco/raserver already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c71555bcec153c048e42cda6625206b2ba1f86bec74f7220ed466a7a1a2fa237 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c71555bcec153c048e42cda6625206b2ba1f86bec74f7220ed466a7a1a2fa237", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c71555bcec153c048e42cda6625206b2ba1f86bec74f7220ed466a7a1a2fa237", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c71555bcec153c048e42cda6625206b2ba1f86bec74f7220ed466a7a1a2fa237", kill_on_drop: false }` [INFO] [stdout] c71555bcec153c048e42cda6625206b2ba1f86bec74f7220ed466a7a1a2fa237 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] bde25197029799e8fb94528957a81b92d031ccd3fdce20191688efcc1de8ce71 [INFO] running `Command { std: "docker" "start" "-a" "bde25197029799e8fb94528957a81b92d031ccd3fdce20191688efcc1de8ce71", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling nix v0.16.1 [INFO] [stderr] Compiling cpal v0.13.5 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling textwrap v0.14.2 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling tracing v0.1.30 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling os_str_bytes v6.0.0 [INFO] [stderr] Compiling clap v3.0.14 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling brotli v3.3.3 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling nix v0.23.1 [INFO] [stderr] Compiling slice-deque v0.3.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling libudev v0.2.0 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling serialport v4.0.1 [INFO] [stderr] Compiling alsa v0.6.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling minimp3 v0.5.1 [INFO] [stderr] Compiling rodio v0.15.0 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling trust-dns-proto v0.19.7 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling h2 v0.3.11 [INFO] [stderr] Compiling trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling actix-http v2.2.2 [INFO] [stderr] Compiling hyper v0.14.17 [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling actix-web v3.3.3 [INFO] [stderr] Compiling actix-cors v0.5.4 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.9 [INFO] [stderr] Compiling raserver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::net::ToSocketAddrs` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::ToSocketAddrs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | #[warn(unused_imports)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufWriter` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::BufWriter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::UdpSocket` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::net::UdpSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ReqJsonInput`, `ReqJsonInputnew` [INFO] [stdout] --> src/main.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | use models::req::{ReqJsonInput,ReqJsonInputnew,ReqJsonSenser,ReqJsonInputnewad}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpRequest`, `Result`, `get`, `http` [INFO] [stdout] --> src/main.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use actix_web::{http,get,post,web,App,HttpResponse,HttpServer,Responder,HttpRequest,Result}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::middleware::Logger` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use actix_web::middleware::Logger; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/post.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Duration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/post.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/post.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let mut tmp = format!(r#"{{"Power": "{}", "Direction": "{}","Rotate":"{}" ,"Stop": "{}"}}"#,data.power,data.direction,data.rotate,dat... [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:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut tmp = format!(r#"{{"Power": "{}", "Direction": "{}","Rotate":"{}" ,"Stop": "{}"}}"#,data.power,data.direction,data.rotate,dat... [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reqwests_post` [INFO] [stdout] --> src/main.rs:139:54 [INFO] [stdout] | [INFO] [stdout] 139 | async fn senser_index(data: web::Json,reqwests_post:web::Data)->impl Responder{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reqwests_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> src/main.rs:238:33 [INFO] [stdout] | [INFO] [stdout] 238 | .allowed_origin_fn(|origin, _req_head| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addrs` [INFO] [stdout] --> src/socket_l.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut addrs = tmp.to_socket_addrs().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_addrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/senser.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let mut count:usize = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/post.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let res = client.post("http://".to_owned() + self.ip.as_str()+"/input") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/post.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let res = client.post("http://".to_owned() + self.ip.as_str()+"/senser") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/socket_l.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut tmp = format!("{}:{}",&self.ip_port.trim(),9999); [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/socket_l.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut addrs = tmp.to_socket_addrs().unwrap(); [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/udep_l.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut tmp = format!("{}:{}",&self.ip_port.trim(),55555); [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/senser.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut count:usize = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Input` is never constructed [INFO] [stdout] --> src/models/req.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Input <'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/models/req.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inf` is never constructed [INFO] [stdout] --> src/models/req.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Inf { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5m 33s [INFO] running `Command { std: "docker" "inspect" "bde25197029799e8fb94528957a81b92d031ccd3fdce20191688efcc1de8ce71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bde25197029799e8fb94528957a81b92d031ccd3fdce20191688efcc1de8ce71", kill_on_drop: false }` [INFO] [stdout] bde25197029799e8fb94528957a81b92d031ccd3fdce20191688efcc1de8ce71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d0d39e425fa7b8c5823ae41c1b40196f3f965a296114c1bb6578b5fb4c7aa07e [INFO] running `Command { std: "docker" "start" "-a" "d0d39e425fa7b8c5823ae41c1b40196f3f965a296114c1bb6578b5fb4c7aa07e", kill_on_drop: false }` [INFO] [stderr] Compiling raserver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::net::ToSocketAddrs` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::ToSocketAddrs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | #[warn(unused_imports)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufWriter` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::BufWriter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::UdpSocket` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::net::UdpSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ReqJsonInput`, `ReqJsonInputnew` [INFO] [stdout] --> src/main.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | use models::req::{ReqJsonInput,ReqJsonInputnew,ReqJsonSenser,ReqJsonInputnewad}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpRequest`, `Result`, `get`, `http` [INFO] [stdout] --> src/main.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use actix_web::{http,get,post,web,App,HttpResponse,HttpServer,Responder,HttpRequest,Result}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::middleware::Logger` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use actix_web::middleware::Logger; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/post.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Duration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/post.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/post.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let mut tmp = format!(r#"{{"Power": "{}", "Direction": "{}","Rotate":"{}" ,"Stop": "{}"}}"#,data.power,data.direction,data.rotate,dat... [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:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut tmp = format!(r#"{{"Power": "{}", "Direction": "{}","Rotate":"{}" ,"Stop": "{}"}}"#,data.power,data.direction,data.rotate,dat... [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reqwests_post` [INFO] [stdout] --> src/main.rs:139:54 [INFO] [stdout] | [INFO] [stdout] 139 | async fn senser_index(data: web::Json,reqwests_post:web::Data)->impl Responder{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reqwests_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> src/main.rs:238:33 [INFO] [stdout] | [INFO] [stdout] 238 | .allowed_origin_fn(|origin, _req_head| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addrs` [INFO] [stdout] --> src/socket_l.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut addrs = tmp.to_socket_addrs().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_addrs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/senser.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let mut count:usize = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/post.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let res = client.post("http://".to_owned() + self.ip.as_str()+"/input") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/post.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let res = client.post("http://".to_owned() + self.ip.as_str()+"/senser") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/socket_l.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut tmp = format!("{}:{}",&self.ip_port.trim(),9999); [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/socket_l.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut addrs = tmp.to_socket_addrs().unwrap(); [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/udep_l.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut tmp = format!("{}:{}",&self.ip_port.trim(),55555); [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/senser.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut count:usize = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Input` is never constructed [INFO] [stdout] --> src/models/req.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Input <'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/models/req.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inf` is never constructed [INFO] [stdout] --> src/models/req.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Inf { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.42s [INFO] running `Command { std: "docker" "inspect" "d0d39e425fa7b8c5823ae41c1b40196f3f965a296114c1bb6578b5fb4c7aa07e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0d39e425fa7b8c5823ae41c1b40196f3f965a296114c1bb6578b5fb4c7aa07e", kill_on_drop: false }` [INFO] [stdout] d0d39e425fa7b8c5823ae41c1b40196f3f965a296114c1bb6578b5fb4c7aa07e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 736817abc94d21acca498be6e71259bb6d8f3cfc9965debe596f7896c5d2167c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "736817abc94d21acca498be6e71259bb6d8f3cfc9965debe596f7896c5d2167c", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::net::ToSocketAddrs` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::net::ToSocketAddrs; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/main.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | #[warn(unused_imports)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::net::TcpStream` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use std::net::TcpStream; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::BufWriter` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::io::BufWriter; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::net::UdpSocket` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::net::UdpSocket; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ReqJsonInput`, `ReqJsonInputnew` [INFO] [stderr] --> src/main.rs:13:19 [INFO] [stderr] | [INFO] [stderr] 13 | use models::req::{ReqJsonInput,ReqJsonInputnew,ReqJsonSenser,ReqJsonInputnewad}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HttpRequest`, `Result`, `get`, `http` [INFO] [stderr] --> src/main.rs:14:17 [INFO] [stderr] | [INFO] [stderr] 14 | use actix_web::{http,get,post,web,App,HttpResponse,HttpServer,Responder,HttpRequest,Result}; [INFO] [stderr] | ^^^^ ^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `actix_web::middleware::Logger` [INFO] [stderr] --> src/main.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use actix_web::middleware::Logger; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Duration` [INFO] [stderr] --> src/post.rs:1:17 [INFO] [stderr] | [INFO] [stderr] 1 | use std::time::{Duration}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io` [INFO] [stderr] --> src/post.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Write` [INFO] [stderr] --> src/post.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Write; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Mutex` [INFO] [stderr] --> src/main.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | use std::sync::Mutex; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:105:9 [INFO] [stderr] | [INFO] [stderr] 105 | let mut tmp = format!(r#"{{"Power": "{}", "Direction": "{}","Rotate":"{}" ,"Stop": "{}"}}"#,data.power,data.direction,data.rotate,dat... [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:123:9 [INFO] [stderr] | [INFO] [stderr] 123 | let mut tmp = format!(r#"{{"Power": "{}", "Direction": "{}","Rotate":"{}" ,"Stop": "{}"}}"#,data.power,data.direction,data.rotate,dat... [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reqwests_post` [INFO] [stderr] --> src/main.rs:139:54 [INFO] [stderr] | [INFO] [stderr] 139 | async fn senser_index(data: web::Json,reqwests_post:web::Data)->impl Responder{ [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reqwests_post` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `origin` [INFO] [stderr] --> src/main.rs:238:33 [INFO] [stderr] | [INFO] [stderr] 238 | .allowed_origin_fn(|origin, _req_head| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `addrs` [INFO] [stderr] --> src/socket_l.rs:44:13 [INFO] [stderr] | [INFO] [stderr] 44 | let mut addrs = tmp.to_socket_addrs().unwrap(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_addrs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `count` [INFO] [stderr] --> src/senser.rs:133:13 [INFO] [stderr] | [INFO] [stderr] 133 | let mut count:usize = 0; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `res` [INFO] [stderr] --> src/post.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | let res = client.post("http://".to_owned() + self.ip.as_str()+"/input") [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `res` [INFO] [stderr] --> src/post.rs:31:13 [INFO] [stderr] | [INFO] [stderr] 31 | let res = client.post("http://".to_owned() + self.ip.as_str()+"/senser") [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/socket_l.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | let mut tmp = format!("{}:{}",&self.ip_port.trim(),9999); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/socket_l.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 44 | let mut addrs = tmp.to_socket_addrs().unwrap(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/udep_l.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | let mut tmp = format!("{}:{}",&self.ip_port.trim(),55555); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/senser.rs:133:9 [INFO] [stderr] | [INFO] [stderr] 133 | let mut count:usize = 0; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: struct `Input` is never constructed [INFO] [stderr] --> src/models/req.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 31 | pub struct Input <'a> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/models/req.rs:30:8 [INFO] [stderr] | [INFO] [stderr] 30 | #[warn(dead_code)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Inf` is never constructed [INFO] [stderr] --> src/models/req.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 40 | pub struct Inf { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `raserver` (bin "raserver" test) generated 26 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.32s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/raserver-1e43e32d06d19598) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "736817abc94d21acca498be6e71259bb6d8f3cfc9965debe596f7896c5d2167c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "736817abc94d21acca498be6e71259bb6d8f3cfc9965debe596f7896c5d2167c", kill_on_drop: false }` [INFO] [stdout] 736817abc94d21acca498be6e71259bb6d8f3cfc9965debe596f7896c5d2167c