[INFO] cloning repository https://github.com/miroslavchakarov/smart-messroom-gui [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/miroslavchakarov/smart-messroom-gui" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiroslavchakarov%2Fsmart-messroom-gui", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiroslavchakarov%2Fsmart-messroom-gui'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5d0f7a714e1f603b986215596b3eef7e7e915f2d [INFO] testing miroslavchakarov/smart-messroom-gui against try#613d1972a772987ed4ee06faccbab0e2fc839871+rustflags=-Copt-level=3 for pr-107051 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiroslavchakarov%2Fsmart-messroom-gui" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/miroslavchakarov/smart-messroom-gui on toolchain 613d1972a772987ed4ee06faccbab0e2fc839871 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/miroslavchakarov/smart-messroom-gui [INFO] finished tweaking git repo https://github.com/miroslavchakarov/smart-messroom-gui [INFO] tweaked toml for git repo https://github.com/miroslavchakarov/smart-messroom-gui written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/miroslavchakarov/smart-messroom-gui 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" "+613d1972a772987ed4ee06faccbab0e2fc839871" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 432c3a477ef1c5d446a130b10d80825876140ab12f99f46365cb01973e8b50a7 [INFO] running `Command { std: "docker" "start" "-a" "432c3a477ef1c5d446a130b10d80825876140ab12f99f46365cb01973e8b50a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "432c3a477ef1c5d446a130b10d80825876140ab12f99f46365cb01973e8b50a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "432c3a477ef1c5d446a130b10d80825876140ab12f99f46365cb01973e8b50a7", kill_on_drop: false }` [INFO] [stdout] 432c3a477ef1c5d446a130b10d80825876140ab12f99f46365cb01973e8b50a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2ca12109ad8b50cf6f50b2a39dc0ce565ef93f16dd06ca23911273e8b813769 [INFO] running `Command { std: "docker" "start" "-a" "e2ca12109ad8b50cf6f50b2a39dc0ce565ef93f16dd06ca23911273e8b813769", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling once_cell v1.13.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling serde_derive v1.0.139 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling serde v1.0.139 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling tokio v1.20.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling futures-micro v0.5.0 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling event-listener v2.5.2 [INFO] [stderr] Compiling async-oneshot v0.5.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling ntex-service v0.3.3 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling rustls v0.20.6 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling semver v1.0.7 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling cmake v0.1.45 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling nb v1.0.0 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling fltk-sys v1.3.3 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling nix v0.6.0 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-common v0.1.5 [INFO] [stderr] Compiling ntex-http v0.1.1 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling webpki-roots v0.22.4 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling num-bigint v0.1.44 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.4 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling bitflags v0.4.0 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling ttf-parser v0.15.0 [INFO] [stderr] Compiling sha-1 v0.10.0 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling boolean_expression v0.3.11 [INFO] [stderr] Compiling xdg v2.4.1 [INFO] [stderr] Compiling num-complex v0.1.43 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling bitflags v0.3.3 [INFO] [stderr] Compiling itoa v0.3.4 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling serde v0.9.15 [INFO] [stderr] Compiling nanorand v0.6.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling spidev v0.3.0 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling app_dirs v1.2.1 [INFO] [stderr] Compiling serde_codegen_internals v0.14.2 [INFO] [stderr] Compiling i2cdev v0.4.4 [INFO] [stderr] Compiling sysfs_gpio v0.5.4 [INFO] [stderr] Compiling color-maps v0.1.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling serde_json v0.9.10 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling linux-embedded-hal v0.2.2 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling stopwatch v0.0.7 [INFO] [stderr] Compiling hd44780-hal v0.2.1 [INFO] [stderr] Compiling rppal v0.12.0 [INFO] [stderr] Compiling serde_derive v0.9.15 [INFO] [stderr] Compiling preferences v1.1.0 [INFO] [stderr] Compiling byte_string v1.0.0 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling ntex-rt v0.4.5 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling ntex-util v0.1.17 [INFO] [stderr] Compiling ntex-macros v0.1.3 [INFO] [stderr] Compiling ntex-bytes v0.1.16 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ntex-codec v0.6.2 [INFO] [stderr] Compiling ntex-io v0.1.8 [INFO] [stderr] Compiling ntex-tokio v0.1.3 [INFO] [stderr] Compiling ntex-tls v0.1.5 [INFO] [stderr] Compiling fltk v1.3.4 [INFO] [stderr] Compiling ntex-router v0.5.1 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling bitmatch v0.1.1 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling ntex-connect v0.1.0 [INFO] [stderr] Compiling ntex-h2 v0.1.4 [INFO] [stderr] Compiling ntex v0.5.23 [INFO] [stderr] Compiling hx711_spi v0.3.2 [INFO] [stderr] Compiling fltk-theme v0.4.2 [INFO] [stderr] Compiling fltk-evented v0.2.0 [INFO] [stderr] Compiling ntex-mqtt v0.8.7 [INFO] [stderr] Compiling smart-messroom-gui v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ntex_mqtt::v3` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ntex_mqtt::v3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `runtime::Runtime`, `spawn` [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::{runtime::Runtime, spawn}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_derive` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use serde_derive; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `app_dirs` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use app_dirs; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prefs_base_dir` [INFO] [stdout] --> src/main.rs:27:57 [INFO] [stdout] | [INFO] [stdout] 27 | use preferences::{AppInfo, PreferencesMap, Preferences, prefs_base_dir}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread`, `time` [INFO] [stdout] --> src/main.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `fltk::app::repeat_timeout`: please use `repeat_timeout3` instead [INFO] [stdout] --> src/main.rs:117:10 [INFO] [stdout] | [INFO] [stdout] 117 | app::repeat_timeout(0.05, Box::new(move || { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `fltk::app::add_timeout`: please use `add_timeout3` instead [INFO] [stdout] --> src/main.rs:342:10 [INFO] [stdout] | [INFO] [stdout] 342 | app::add_timeout(0.05, Box::new(move || { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prod` [INFO] [stdout] --> src/main.rs:100:34 [INFO] [stdout] | [INFO] [stdout] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_prod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quant` [INFO] [stdout] --> src/main.rs:100:48 [INFO] [stdout] | [INFO] [stdout] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_quant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/main.rs:123:16 [INFO] [stdout] | [INFO] [stdout] 123 | fn add_product(product: String, quantity: u32){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/main.rs:123:33 [INFO] [stdout] | [INFO] [stdout] 123 | fn add_product(product: String, quantity: u32){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefs_key` [INFO] [stdout] --> src/main.rs:555:13 [INFO] [stdout] | [INFO] [stdout] 555 | let prefs_key = "rust-apps/smart-messroom-gui"; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefs_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:409:26 [INFO] [stdout] | [INFO] [stdout] 409 | pay_btn.handle(move |b, ev| match ev{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:699:29 [INFO] [stdout] | [INFO] [stdout] 699 | ... unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:714:33 [INFO] [stdout] | [INFO] [stdout] 651 | unsafe{ [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 714 | unsafe{pay_amount_lbl.set_label(format!("{:.2} EUR", amount).as_str());} [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:751:29 [INFO] [stdout] | [INFO] [stdout] 751 | ... unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `publish` is never used [INFO] [stdout] --> src/main.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | async fn publish(pkt: v5::Publish) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Customer` is never constructed [INFO] [stdout] --> src/main.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct Customer{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_product` is never used [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn add_product(product: String, quantity: u32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_for_response` is never used [INFO] [stdout] --> src/main.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | async fn wait_for_response(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_new_customer` is never used [INFO] [stdout] --> src/main.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `kgval` should have an upper case name [INFO] [stdout] --> src/main.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | static mut kgval : f32 = 0.0; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `KGVAL` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `calib_flag` should have an upper case name [INFO] [stdout] --> src/main.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | static mut calib_flag: bool = false; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `CALIB_FLAG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `payment_flag` should have an upper case name [INFO] [stdout] --> src/main.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | static mut payment_flag: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `PAYMENT_FLAG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `payment_success_flag` should have an upper case name [INFO] [stdout] --> src/main.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | static mut payment_success_flag: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PAYMENT_SUCCESS_FLAG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `amount` should have an upper case name [INFO] [stdout] --> src/main.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | static mut amount : f32 = 0.0; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `AMOUNT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:675:17 [INFO] [stdout] | [INFO] [stdout] 675 | / ntex::rt::spawn(async move { [INFO] [stdout] 676 | | sleep(Millis(1_000)).await; [INFO] [stdout] 677 | | println!{"SENDING MESSAGE!!!"}; [INFO] [stdout] 678 | | log::info!("sending client publish"); [INFO] [stdout] ... | [INFO] [stdout] 810 | | [INFO] [stdout] 811 | | }).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] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14m 18s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "e2ca12109ad8b50cf6f50b2a39dc0ce565ef93f16dd06ca23911273e8b813769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2ca12109ad8b50cf6f50b2a39dc0ce565ef93f16dd06ca23911273e8b813769", kill_on_drop: false }` [INFO] [stdout] e2ca12109ad8b50cf6f50b2a39dc0ce565ef93f16dd06ca23911273e8b813769 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 010fc018a67ec3a071bc47fcbbdde5c6c3b9f9325f12da1f3bfa319e6aa90dc5 [INFO] running `Command { std: "docker" "start" "-a" "010fc018a67ec3a071bc47fcbbdde5c6c3b9f9325f12da1f3bfa319e6aa90dc5", kill_on_drop: false }` [INFO] [stderr] Compiling smart-messroom-gui v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ntex_mqtt::v3` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ntex_mqtt::v3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `runtime::Runtime`, `spawn` [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::{runtime::Runtime, spawn}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_derive` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use serde_derive; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `app_dirs` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use app_dirs; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prefs_base_dir` [INFO] [stdout] --> src/main.rs:27:57 [INFO] [stdout] | [INFO] [stdout] 27 | use preferences::{AppInfo, PreferencesMap, Preferences, prefs_base_dir}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread`, `time` [INFO] [stdout] --> src/main.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `fltk::app::repeat_timeout`: please use `repeat_timeout3` instead [INFO] [stdout] --> src/main.rs:117:10 [INFO] [stdout] | [INFO] [stdout] 117 | app::repeat_timeout(0.05, Box::new(move || { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `fltk::app::add_timeout`: please use `add_timeout3` instead [INFO] [stdout] --> src/main.rs:342:10 [INFO] [stdout] | [INFO] [stdout] 342 | app::add_timeout(0.05, Box::new(move || { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prod` [INFO] [stdout] --> src/main.rs:100:34 [INFO] [stdout] | [INFO] [stdout] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_prod` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quant` [INFO] [stdout] --> src/main.rs:100:48 [INFO] [stdout] | [INFO] [stdout] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_quant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/main.rs:123:16 [INFO] [stdout] | [INFO] [stdout] 123 | fn add_product(product: String, quantity: u32){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/main.rs:123:33 [INFO] [stdout] | [INFO] [stdout] 123 | fn add_product(product: String, quantity: u32){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefs_key` [INFO] [stdout] --> src/main.rs:555:13 [INFO] [stdout] | [INFO] [stdout] 555 | let prefs_key = "rust-apps/smart-messroom-gui"; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefs_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:409:26 [INFO] [stdout] | [INFO] [stdout] 409 | pay_btn.handle(move |b, ev| match ev{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:699:29 [INFO] [stdout] | [INFO] [stdout] 699 | ... unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:714:33 [INFO] [stdout] | [INFO] [stdout] 651 | unsafe{ [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 714 | unsafe{pay_amount_lbl.set_label(format!("{:.2} EUR", amount).as_str());} [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:751:29 [INFO] [stdout] | [INFO] [stdout] 751 | ... unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `publish` is never used [INFO] [stdout] --> src/main.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | async fn publish(pkt: v5::Publish) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Customer` is never constructed [INFO] [stdout] --> src/main.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct Customer{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_product` is never used [INFO] [stdout] --> src/main.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn add_product(product: String, quantity: u32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_for_response` is never used [INFO] [stdout] --> src/main.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | async fn wait_for_response(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_new_customer` is never used [INFO] [stdout] --> src/main.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `kgval` should have an upper case name [INFO] [stdout] --> src/main.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | static mut kgval : f32 = 0.0; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `KGVAL` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `calib_flag` should have an upper case name [INFO] [stdout] --> src/main.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | static mut calib_flag: bool = false; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `CALIB_FLAG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `payment_flag` should have an upper case name [INFO] [stdout] --> src/main.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | static mut payment_flag: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `PAYMENT_FLAG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `payment_success_flag` should have an upper case name [INFO] [stdout] --> src/main.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | static mut payment_success_flag: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PAYMENT_SUCCESS_FLAG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `amount` should have an upper case name [INFO] [stdout] --> src/main.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | static mut amount : f32 = 0.0; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `AMOUNT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:675:17 [INFO] [stdout] | [INFO] [stdout] 675 | / ntex::rt::spawn(async move { [INFO] [stdout] 676 | | sleep(Millis(1_000)).await; [INFO] [stdout] 677 | | println!{"SENDING MESSAGE!!!"}; [INFO] [stdout] 678 | | log::info!("sending client publish"); [INFO] [stdout] ... | [INFO] [stdout] 810 | | [INFO] [stdout] 811 | | }).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] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.28s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "010fc018a67ec3a071bc47fcbbdde5c6c3b9f9325f12da1f3bfa319e6aa90dc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "010fc018a67ec3a071bc47fcbbdde5c6c3b9f9325f12da1f3bfa319e6aa90dc5", kill_on_drop: false }` [INFO] [stdout] 010fc018a67ec3a071bc47fcbbdde5c6c3b9f9325f12da1f3bfa319e6aa90dc5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0086fd5855ffbdf21f4b3ff9bcc5dc41c7ddcc183b350c771af1aa05aaba5cb2 [INFO] running `Command { std: "docker" "start" "-a" "0086fd5855ffbdf21f4b3ff9bcc5dc41c7ddcc183b350c771af1aa05aaba5cb2", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `ntex_mqtt::v3` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use ntex_mqtt::v3; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `runtime::Runtime`, `spawn` [INFO] [stderr] --> src/main.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | use tokio::{runtime::Runtime, spawn}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_derive` [INFO] [stderr] --> src/main.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | use serde_derive; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `app_dirs` [INFO] [stderr] --> src/main.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | use app_dirs; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `prefs_base_dir` [INFO] [stderr] --> src/main.rs:27:57 [INFO] [stderr] | [INFO] [stderr] 27 | use preferences::{AppInfo, PreferencesMap, Preferences, prefs_base_dir}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/main.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `thread`, `time` [INFO] [stderr] --> src/main.rs:50:11 [INFO] [stderr] | [INFO] [stderr] 50 | use std::{thread, time}; [INFO] [stderr] | ^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `fltk::app::repeat_timeout`: please use `repeat_timeout3` instead [INFO] [stderr] --> src/main.rs:117:10 [INFO] [stderr] | [INFO] [stderr] 117 | app::repeat_timeout(0.05, Box::new(move || { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `fltk::app::add_timeout`: please use `add_timeout3` instead [INFO] [stderr] --> src/main.rs:342:10 [INFO] [stderr] | [INFO] [stderr] 342 | app::add_timeout(0.05, Box::new(move || { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/main.rs:100:25 [INFO] [stderr] | [INFO] [stderr] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `prod` [INFO] [stderr] --> src/main.rs:100:34 [INFO] [stderr] | [INFO] [stderr] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_prod` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `quant` [INFO] [stderr] --> src/main.rs:100:48 [INFO] [stderr] | [INFO] [stderr] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_quant` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `product` [INFO] [stderr] --> src/main.rs:123:16 [INFO] [stderr] | [INFO] [stderr] 123 | fn add_product(product: String, quantity: u32){ [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `quantity` [INFO] [stderr] --> src/main.rs:123:33 [INFO] [stderr] | [INFO] [stderr] 123 | fn add_product(product: String, quantity: u32){ [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `prefs_key` [INFO] [stderr] --> src/main.rs:555:13 [INFO] [stderr] | [INFO] [stderr] 555 | let prefs_key = "rust-apps/smart-messroom-gui"; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefs_key` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/main.rs:409:26 [INFO] [stderr] | [INFO] [stderr] 409 | pay_btn.handle(move |b, ev| match ev{ [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/main.rs:699:29 [INFO] [stderr] | [INFO] [stderr] 699 | ... unsafe{ [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/main.rs:714:33 [INFO] [stderr] | [INFO] [stderr] 651 | unsafe{ [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 714 | unsafe{pay_amount_lbl.set_label(format!("{:.2} EUR", amount).as_str());} [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/main.rs:751:29 [INFO] [stderr] | [INFO] [stderr] 751 | ... unsafe{ [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: function `publish` is never used [INFO] [stderr] --> src/main.rs:83:10 [INFO] [stderr] | [INFO] [stderr] 83 | async fn publish(pkt: v5::Publish) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Customer` is never constructed [INFO] [stderr] --> src/main.rs:93:8 [INFO] [stderr] | [INFO] [stderr] 93 | struct Customer{ [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `add_product` is never used [INFO] [stderr] --> src/main.rs:123:4 [INFO] [stderr] | [INFO] [stderr] 123 | fn add_product(product: String, quantity: u32){ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `wait_for_response` is never used [INFO] [stderr] --> src/main.rs:129:10 [INFO] [stderr] | [INFO] [stderr] 129 | async fn wait_for_response(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `add_new_customer` is never used [INFO] [stderr] --> src/main.rs:100:8 [INFO] [stderr] | [INFO] [stderr] 100 | fn add_new_customer(id: u64, prod: String, quant: f32){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static variable `kgval` should have an upper case name [INFO] [stderr] --> src/main.rs:66:12 [INFO] [stderr] | [INFO] [stderr] 66 | static mut kgval : f32 = 0.0; [INFO] [stderr] | ^^^^^ help: convert the identifier to upper case: `KGVAL` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static variable `calib_flag` should have an upper case name [INFO] [stderr] --> src/main.rs:67:12 [INFO] [stderr] | [INFO] [stderr] 67 | static mut calib_flag: bool = false; [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to upper case: `CALIB_FLAG` [INFO] [stderr] [INFO] [stderr] warning: static variable `payment_flag` should have an upper case name [INFO] [stderr] --> src/main.rs:68:12 [INFO] [stderr] | [INFO] [stderr] 68 | static mut payment_flag: bool = false; [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `PAYMENT_FLAG` [INFO] [stderr] [INFO] [stderr] warning: static variable `payment_success_flag` should have an upper case name [INFO] [stderr] --> src/main.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 69 | static mut payment_success_flag: bool = false; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `PAYMENT_SUCCESS_FLAG` [INFO] [stderr] [INFO] [stderr] warning: static variable `amount` should have an upper case name [INFO] [stderr] --> src/main.rs:70:12 [INFO] [stderr] | [INFO] [stderr] 70 | static mut amount : f32 = 0.0; [INFO] [stderr] | ^^^^^^ help: convert the identifier to upper case: `AMOUNT` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:675:17 [INFO] [stderr] | [INFO] [stderr] 675 | / ntex::rt::spawn(async move { [INFO] [stderr] 676 | | sleep(Millis(1_000)).await; [INFO] [stderr] 677 | | println!{"SENDING MESSAGE!!!"}; [INFO] [stderr] 678 | | log::info!("sending client publish"); [INFO] [stderr] ... | [INFO] [stderr] 810 | | [INFO] [stderr] 811 | | }).await; [INFO] [stderr] | |________________________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `smart-messroom-gui` (bin "smart-messroom-gui" test) generated 30 warnings (run `cargo fix --bin "smart-messroom-gui" --tests` to apply 14 suggestions) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/smart_messroom_gui-c7c19c7f4365cd35) [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" "0086fd5855ffbdf21f4b3ff9bcc5dc41c7ddcc183b350c771af1aa05aaba5cb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0086fd5855ffbdf21f4b3ff9bcc5dc41c7ddcc183b350c771af1aa05aaba5cb2", kill_on_drop: false }` [INFO] [stdout] 0086fd5855ffbdf21f4b3ff9bcc5dc41c7ddcc183b350c771af1aa05aaba5cb2