[INFO] cloning repository https://github.com/huming2207/plunger-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/huming2207/plunger-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuming2207%2Fplunger-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuming2207%2Fplunger-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 49514b963f87d9cccb5fd2035db744ba46b0252d [INFO] checking huming2207/plunger-api against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuming2207%2Fplunger-api" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/huming2207/plunger-api on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/huming2207/plunger-api [INFO] finished tweaking git repo https://github.com/huming2207/plunger-api [INFO] tweaked toml for git repo https://github.com/huming2207/plunger-api written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/huming2207/plunger-api 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/probe-rs/probe-rs` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/magiclen/rocket-multipart-form-data` [INFO] [stderr] Updating git repository `https://github.com/SergioBenitez/Rocket` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.27 [INFO] [stderr] Downloaded thiserror-impl v1.0.25 [INFO] [stderr] Downloaded devise v0.3.0 [INFO] [stderr] Downloaded devise_codegen v0.3.0 [INFO] [stderr] Downloaded vcpkg v0.2.13 [INFO] [stderr] Downloaded thiserror v1.0.25 [INFO] [stderr] Downloaded os_str_bytes v2.4.0 [INFO] [stderr] Downloaded bitfield v0.13.2 [INFO] [stderr] Downloaded generator v0.7.0 [INFO] [stderr] Downloaded boolean_expression v0.3.11 [INFO] [stderr] Downloaded clap_derive v3.0.0-beta.2 [INFO] [stderr] Downloaded anyhow v1.0.41 [INFO] [stderr] Downloaded twoway v0.2.2 [INFO] [stderr] Downloaded figment v0.10.5 [INFO] [stderr] Downloaded rocket_codegen v0.5.0-rc.1 [INFO] [stderr] Downloaded rocket_http v0.5.0-rc.1 [INFO] [stderr] Downloaded clap v3.0.0-beta.2 [INFO] [stderr] Downloaded bitvec v0.19.5 [INFO] [stderr] Downloaded hyper v0.14.9 [INFO] [stderr] Downloaded wasm-bindgen v0.2.74 [INFO] [stderr] Downloaded object v0.25.2 [INFO] [stderr] Downloaded syn v1.0.73 [INFO] [stderr] Downloaded libusb1-sys v0.5.0 [INFO] [stderr] Downloaded rocket v0.5.0-rc.1 [INFO] [stderr] Downloaded hidapi v1.2.6 [INFO] [stderr] Downloaded bumpalo v3.7.0 [INFO] [stderr] Downloaded derive_more v0.99.14 [INFO] [stderr] Downloaded loom v0.5.0 [INFO] [stderr] Downloaded cc v1.0.68 [INFO] [stderr] Downloaded jaylink v0.2.0 [INFO] [stderr] Downloaded serde_yaml v0.8.17 [INFO] [stderr] Downloaded async-trait v0.1.50 [INFO] [stderr] Downloaded devise_core v0.3.0 [INFO] [stderr] Downloaded tokio v1.6.1 [INFO] [stderr] Downloaded cookie v0.15.0 [INFO] [stderr] Downloaded state v0.5.1 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.74 [INFO] [stderr] Downloaded libc v0.2.97 [INFO] [stderr] Downloaded textwrap v0.12.1 [INFO] [stderr] Downloaded bitmatch v0.1.1 [INFO] [stderr] Downloaded jep106 v0.2.5 [INFO] [stderr] Downloaded scroll v0.10.2 [INFO] [stderr] Downloaded radix_fmt v1.0.0 [INFO] [stderr] Downloaded spin v0.9.0 [INFO] [stderr] Downloaded multer v2.0.0 [INFO] [stderr] Downloaded uncased v0.9.6 [INFO] [stderr] Downloaded gimli v0.24.0 [INFO] [stderr] Downloaded ubyte v0.10.1 [INFO] [stderr] Downloaded serde_derive v1.0.126 [INFO] [stderr] Downloaded unchecked-index v0.2.2 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.74 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.74 [INFO] [stderr] Downloaded rusb v0.8.1 [INFO] [stderr] Downloaded enum-primitive-derive v0.2.1 [INFO] [stderr] Downloaded ihex v3.0.0 [INFO] [stderr] Downloaded inlinable_string v0.1.14 [INFO] [stderr] Downloaded pear_codegen v0.2.3 [INFO] [stderr] Downloaded pear v0.2.3 [INFO] [stderr] Downloaded radium v0.5.3 [INFO] [stderr] Downloaded itm-decode v0.2.1 [INFO] [stderr] Downloaded svg v0.9.2 [INFO] [stderr] Downloaded atomic v0.5.0 [INFO] [stderr] Downloaded futures-executor v0.3.15 [INFO] [stderr] Downloaded futures-macro v0.3.15 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4bee82a9388000ca318385a5e29d68d9676c2b18fb8932f211008f7289a12e9c [INFO] running `Command { std: "docker" "start" "-a" "4bee82a9388000ca318385a5e29d68d9676c2b18fb8932f211008f7289a12e9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4bee82a9388000ca318385a5e29d68d9676c2b18fb8932f211008f7289a12e9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bee82a9388000ca318385a5e29d68d9676c2b18fb8932f211008f7289a12e9c", kill_on_drop: false }` [INFO] [stdout] 4bee82a9388000ca318385a5e29d68d9676c2b18fb8932f211008f7289a12e9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13b94b20eec09a8e4b1e70767f1640cb6bddea7395dcb11690d4bc4e599fca4c [INFO] running `Command { std: "docker" "start" "-a" "13b94b20eec09a8e4b1e70767f1640cb6bddea7395dcb11690d4bc4e599fca4c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling time v0.2.26 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Compiling cookie v0.15.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Compiling cc v1.0.68 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling inlinable_string v0.1.14 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling state v0.5.1 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling atomic v0.5.0 [INFO] [stderr] Compiling multer v2.0.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling figment v0.10.5 [INFO] [stderr] Compiling libusb1-sys v0.5.0 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Checking unchecked-index v0.2.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Checking twoway v0.2.2 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling hidapi v1.2.6 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Compiling rusb v0.8.1 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Checking spin v0.9.0 [INFO] [stderr] Compiling rocket v0.5.0-rc.1 (https://github.com/SergioBenitez/Rocket#e45e1645) [INFO] [stderr] Compiling anyhow v1.0.41 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Compiling rocket v0.5.0-rc.1 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking http-body v0.4.2 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking jaylink v0.2.0 [INFO] [stderr] Checking object v0.25.2 [INFO] [stderr] Checking bitvec v0.19.5 [INFO] [stderr] Checking svg v0.9.2 [INFO] [stderr] Checking thousands v0.2.0 [INFO] [stderr] Checking gimli v0.24.0 [INFO] [stderr] Checking ihex v3.0.0 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Compiling boolean_expression v0.3.11 [INFO] [stderr] Checking scroll v0.10.2 [INFO] [stderr] Checking bitfield v0.13.2 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking radix_fmt v1.0.0 [INFO] [stderr] Compiling devise_core v0.3.0 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling derive_more v0.99.14 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling bitmatch v0.1.1 [INFO] [stderr] Compiling enum-primitive-derive v0.2.1 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling devise_codegen v0.3.0 [INFO] [stderr] Checking async-stream v0.3.2 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling devise v0.3.0 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Checking itm-decode v0.2.1 [INFO] [stderr] Checking thiserror v1.0.25 [INFO] [stderr] Checking futures-executor v0.3.15 [INFO] [stderr] Checking tokio-util v0.6.7 [INFO] [stderr] Checking tokio-stream v0.1.6 [INFO] [stderr] Checking futures v0.3.15 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking ubyte v0.10.1 [INFO] [stderr] Checking jep106 v0.2.5 [INFO] [stderr] Checking serde_yaml v0.8.17 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking probe-rs-target v0.10.1 (https://github.com/probe-rs/probe-rs?branch=master#7d61446f) [INFO] [stderr] Checking h2 v0.3.3 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Compiling probe-rs v0.10.1 (https://github.com/probe-rs/probe-rs?branch=master#7d61446f) [INFO] [stderr] Checking hyper v0.14.9 [INFO] [stderr] Checking rocket_http v0.5.0-rc.1 (https://github.com/SergioBenitez/Rocket#e45e1645) [INFO] [stderr] Checking rocket_http v0.5.0-rc.1 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 (https://github.com/SergioBenitez/Rocket#e45e1645) [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 [INFO] [stderr] Checking rocket-multipart-form-data v0.10.0 (https://github.com/magiclen/rocket-multipart-form-data#899ac578) [INFO] [stderr] Checking plunger-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `JoinError` and `spawn_blocking` [INFO] [stdout] --> src/routes/production/flash_firmware.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use rocket::tokio::task::{JoinError, spawn_blocking}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JoinError` and `spawn_blocking` [INFO] [stdout] --> src/routes/production/flash_firmware.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use rocket::tokio::task::{JoinError, spawn_blocking}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cm_firmware_flash` [INFO] [stdout] --> src/routes/production/flash_firmware.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) async fn cm_firmware_flash<'r>(data: Form>>) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cm_firmware_flash` [INFO] [stdout] --> src/routes/production/flash_firmware.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) async fn cm_firmware_flash<'r>(data: Form>>) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_all_probes` [INFO] [stdout] --> src/routes/production/list_probes.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) async fn get_all_probes() -> (Status, Json>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_all_probes` [INFO] [stdout] --> src/routes/production/list_probes.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) async fn get_all_probes() -> (Status, Json>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Contextual` [INFO] [stdout] --> src/routes/production/erase_flash.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::{form::{Contextual, Form}, http::Status, serde::json::Json}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `erase_flash` [INFO] [stdout] --> src/routes/production/erase_flash.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) async fn erase_flash(data: Form) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Contextual` [INFO] [stdout] --> src/routes/production/erase_flash.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::{form::{Contextual, Form}, http::Status, serde::json::Json}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `erase_flash` [INFO] [stdout] --> src/routes/production/erase_flash.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) async fn erase_flash(data: Form) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `download_result` [INFO] [stdout] --> src/routes/production/flash_firmware.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let download_result = match form.fw_type { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_download_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `download_result` [INFO] [stdout] --> src/routes/production/flash_firmware.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let download_result = match form.fw_type { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_download_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/routes/production/list_probes.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | ... Err(err) => return (Status::InternalServerError, Json(PlungerResponse { message: "Failed to get probes".to_string(), details: None ... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/routes/production/list_probes.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | ... Err(err) => return (Status::InternalServerError, Json(PlungerResponse { message: "Failed to get probes".to_string(), details: None ... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/routes/production/flash_firmware.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct CmFirmwareForm<'v> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 17 | #[field(validate = len(..32.mebibytes()))] [INFO] [stdout] 18 | blob: TempFile<'v>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | #[field(validate = one_of(vec!["bin", "hex", "elf"]))] [INFO] [stdout] 20 | fw_type: &'v str, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | #[field(validate = range(1..))] [INFO] [stdout] 22 | fw_ver: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | probe_sn: &'v str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | #[field(validate = range(100..))] [INFO] [stdout] 25 | speed_khz: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | probe_vid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 27 | probe_pid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 28 | target_name: &'v str, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | skip_erase: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmFirmwareForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/routes/production/flash_firmware.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct CmFirmwareForm<'v> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 17 | #[field(validate = len(..32.mebibytes()))] [INFO] [stdout] 18 | blob: TempFile<'v>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | #[field(validate = one_of(vec!["bin", "hex", "elf"]))] [INFO] [stdout] 20 | fw_type: &'v str, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | #[field(validate = range(1..))] [INFO] [stdout] 22 | fw_ver: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | probe_sn: &'v str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | #[field(validate = range(100..))] [INFO] [stdout] 25 | speed_khz: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | probe_vid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 27 | probe_pid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 28 | target_name: &'v str, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | skip_erase: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmFirmwareForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cm_firmware_flash` is never used [INFO] [stdout] --> src/routes/production/flash_firmware.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) async fn cm_firmware_flash<'r>(data: Form>>) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cm_firmware_flash` is never used [INFO] [stdout] --> src/routes/production/flash_firmware.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) async fn cm_firmware_flash<'r>(data: Form>>) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_probes` is never used [INFO] [stdout] --> src/routes/production/list_probes.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) async fn get_all_probes() -> (Status, Json>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_probes` is never used [INFO] [stdout] --> src/routes/production/list_probes.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) async fn get_all_probes() -> (Status, Json>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `probe_sn`, `probe_vid`, `probe_pid`, and `target_name` are never read [INFO] [stdout] --> src/routes/production/erase_flash.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct CmFirmwareEraseForm { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 8 | probe_sn: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | probe_vid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | probe_pid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | target_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmFirmwareEraseForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `probe_sn`, `probe_vid`, `probe_pid`, and `target_name` are never read [INFO] [stdout] --> src/routes/production/erase_flash.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct CmFirmwareEraseForm { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 8 | probe_sn: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | probe_vid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | probe_pid: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | target_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmFirmwareEraseForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `erase_flash` is never used [INFO] [stdout] --> src/routes/production/erase_flash.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) async fn erase_flash(data: Form) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `erase_flash` is never used [INFO] [stdout] --> src/routes/production/erase_flash.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) async fn erase_flash(data: Form) -> (Status, Json) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidTarget` is never constructed [INFO] [stdout] --> src/massprod/eraser/eraser_error.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum EraserError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 5 | #[error("Invalid target - probably not a STM32L0?")] [INFO] [stdout] 6 | InvalidTarget, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EraserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mass_erase` is never used [INFO] [stdout] --> src/massprod/eraser/base_eraser.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait BaseEraser { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 4 | fn mass_erase(&mut self) -> Result<(), EraserError>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidTarget` is never constructed [INFO] [stdout] --> src/massprod/eraser/eraser_error.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum EraserError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 5 | #[error("Invalid target - probably not a STM32L0?")] [INFO] [stdout] 6 | InvalidTarget, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EraserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/massprod/eraser/stm32l0_eraser.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl STM32L0Eraser { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 21 | pub fn new(target_name: String, probe: DebugProbeSelector) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mass_erase` is never used [INFO] [stdout] --> src/massprod/eraser/base_eraser.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait BaseEraser { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 4 | fn mass_erase(&mut self) -> Result<(), EraserError>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stm32L0EraserTask` is never constructed [INFO] [stdout] --> src/massprod/eraser/stm32l0_eraser.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub struct Stm32L0EraserTask { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/massprod/eraser/stm32l0_eraser.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl STM32L0Eraser { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 21 | pub fn new(target_name: String, probe: DebugProbeSelector) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlungerResponse` is never constructed [INFO] [stdout] --> src/model/response.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct PlungerResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stm32L0EraserTask` is never constructed [INFO] [stdout] --> src/massprod/eraser/stm32l0_eraser.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub struct Stm32L0EraserTask { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlungerResponse` is never constructed [INFO] [stdout] --> src/model/response.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) struct PlungerResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/routes/production/flash_firmware.rs:54:70 [INFO] [stdout] | [INFO] [stdout] 54 | let mut session = match probe.attach_under_reset(form.target_name.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/routes/production/flash_firmware.rs:54:70 [INFO] [stdout] | [INFO] [stdout] 54 | let mut session = match probe.attach_under_reset(form.target_name.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.69s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: svg v0.9.2, ubyte v0.10.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "13b94b20eec09a8e4b1e70767f1640cb6bddea7395dcb11690d4bc4e599fca4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13b94b20eec09a8e4b1e70767f1640cb6bddea7395dcb11690d4bc4e599fca4c", kill_on_drop: false }` [INFO] [stdout] 13b94b20eec09a8e4b1e70767f1640cb6bddea7395dcb11690d4bc4e599fca4c