[INFO] cloning repository https://github.com/JahJahWei/smart-infusion [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JahJahWei/smart-infusion" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJahJahWei%2Fsmart-infusion", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJahJahWei%2Fsmart-infusion'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2b0f1a9704a17e13f34599d157ddaaf21d14b859 [INFO] building JahJahWei/smart-infusion against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJahJahWei%2Fsmart-infusion" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/JahJahWei/smart-infusion [INFO] finished tweaking git repo https://github.com/JahJahWei/smart-infusion [INFO] tweaked toml for git repo https://github.com/JahJahWei/smart-infusion written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JahJahWei/smart-infusion on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JahJahWei/smart-infusion 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded deranged v0.4.1 [INFO] [stderr] Downloaded indexmap v2.8.0 [INFO] [stderr] Downloaded serde_bytes_ng v0.1.2 [INFO] [stderr] Downloaded amqp_serde v0.4.1 [INFO] [stderr] Downloaded amqprs v2.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 71f97c7946c55712f602e19c9a86ef7a7309037ec2a3bdc6615a9c4a5b3eac8a [INFO] running `Command { std: "docker" "start" "-a" "71f97c7946c55712f602e19c9a86ef7a7309037ec2a3bdc6615a9c4a5b3eac8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "71f97c7946c55712f602e19c9a86ef7a7309037ec2a3bdc6615a9c4a5b3eac8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71f97c7946c55712f602e19c9a86ef7a7309037ec2a3bdc6615a9c4a5b3eac8a", kill_on_drop: false }` [INFO] [stdout] 71f97c7946c55712f602e19c9a86ef7a7309037ec2a3bdc6615a9c4a5b3eac8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de46ab422e7e3d85aa103a0201a23b175594f3d0db3273e17b8b9819d3700ed9 [INFO] running `Command { std: "docker" "start" "-a" "de46ab422e7e3d85aa103a0201a23b175594f3d0db3273e17b8b9819d3700ed9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling rustix v1.0.3 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling linux-raw-sys v0.9.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling tempfile v3.19.1 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling deranged v0.4.1 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling serde_bytes_ng v0.1.2 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling amqp_serde v0.4.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling sqlx-sqlite v0.7.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.14 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling amqprs v2.1.0 [INFO] [stderr] Compiling tracing-appender v0.2.3 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling smart-infusion v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/main.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::{info, error, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::response::Response` [INFO] [stdout] --> src/api.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::response::Response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeviceStatus` [INFO] [stdout] --> src/api.rs:4:127 [INFO] [stdout] | [INFO] [stdout] 4 | ...publish_start_or_stop_drip_cmd, publish_turn_off_device_cmd, DeviceStatus, ModifyPresetAmountCmd, SetUpDripRateCmd, StartOrStopDripCmd... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `query_infusions` [INFO] [stdout] --> src/api.rs:5:74 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::repository::{fetch_all_patient_page, query_bed, query_device, query_infusions, PatientDetail}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `db::get_db` [INFO] [stdout] --> src/api.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{db::get_db, repository::query_patient}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DefaultConsumer` [INFO] [stdout] --> src/mq/amqp.rs:1:264 [INFO] [stdout] | [INFO] [stdout] 1 | ...ction, OpenConnectionArguments}, consumer::{AsyncConsumer, DefaultConsumer}, BasicProperties}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/mq/amqp.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{error, info}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Level` [INFO] [stdout] --> src/mq/binding.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{info, error, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Infusion`, `fetch_drug_by_patient_no`, `insert_infusion`, `update_device_status`, and `update_patient_by_device_id` [INFO] [stdout] --> src/mq/binding.rs:5:75 [INFO] [stdout] | [INFO] [stdout] 5 | ...c, fetch_drug_by_patient_no, fetch_patient_by_bed_no, insert_infusion, update_device_status, update_patient_by_device_id, update_patient_device_id, Infusion}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Level` and `info` [INFO] [stdout] --> src/mq/publisher.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use tracing::{info, error, Level}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::soft_link` [INFO] [stdout] --> src/mq/device_data_consumer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::soft_link; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Level` and `info` [INFO] [stdout] --> src/mq/device_data_consumer.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use tracing::{info, error, Level}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `QueryBuilder` and `Sqlite` [INFO] [stdout] --> src/repository/device.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{prelude::FromRow, QueryBuilder, Sqlite}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Alarm`, `DeviceStatus`, and `publish_alarm` [INFO] [stdout] --> src/repository/patient.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{db::get_db, mq::{publish_alarm, Alarm, DeviceData, DeviceStatus}}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `QueryBuilder` and `Sqlite` [INFO] [stdout] --> src/repository/drug.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::{QueryBuilder, Sqlite, prelude::FromRow}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Alarm` and `publish_alarm` [INFO] [stdout] --> src/repository/infusion.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{db::get_db, mq::{publish_alarm, Alarm}}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `api` and `db::get_db` [INFO] [stdout] --> src/http_client.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{api, db::get_db, repository::{insert_beds, insert_devices, insert_drugs, insert_patients, Bed, Device, Drug, Patient}}; [INFO] [stdout] | ^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::fs::soft_link`: replaced with std::os::unix::fs::symlink and std::os::windows::fs::{symlink_file, symlink_dir} [INFO] [stdout] --> src/mq/device_data_consumer.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::soft_link; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/mq/binding.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deliver` [INFO] [stdout] --> src/mq/binding.rs:18:52 [INFO] [stdout] | [INFO] [stdout] 18 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deliver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `basic_properties` [INFO] [stdout] --> src/mq/binding.rs:18:70 [INFO] [stdout] | [INFO] [stdout] 18 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_basic_properties` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/mq/device_data_consumer.rs:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deliver` [INFO] [stdout] --> src/mq/device_data_consumer.rs:62:52 [INFO] [stdout] | [INFO] [stdout] 62 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deliver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `basic_properties` [INFO] [stdout] --> src/mq/device_data_consumer.rs:62:70 [INFO] [stdout] | [INFO] [stdout] 62 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_basic_properties` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http_client` [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let http_client = HttpClient::new("https://api.example.com".to_string()); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaginationParams` is never constructed [INFO] [stdout] --> src/api.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct PaginationParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_channel` is never used [INFO] [stdout] --> src/mq/amqp.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl AmqpManager { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_channel(&self, routing_key: &str) -> Option<&Channel> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceStatus` is never constructed [INFO] [stdout] --> src/mq/publisher.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct DeviceStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mq/publisher.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl DeviceStatus { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 25 | pub fn new(device_id: String, status: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_device_exist` is never used [INFO] [stdout] --> src/repository/device.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn is_device_exist(device_id: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_drug_by_patient_no` is never used [INFO] [stdout] --> src/repository/drug.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn query_drug_by_patient_no(patient_no: String) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_drug_by_patient_no` is never used [INFO] [stdout] --> src/repository/drug.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn fetch_drug_by_patient_no(patient_no: String) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Infusion` is never constructed [INFO] [stdout] --> src/repository/infusion.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Infusion { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/infusion.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Infusion { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new(name: String, gender: String, age: u16, bed_no: String, device_id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InfusionWithDetail` is never constructed [INFO] [stdout] --> src/repository/infusion.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct InfusionWithDetail { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/infusion.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl InfusionWithDetail { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 37 | pub fn new(infusion: Infusion, drugs: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_infusion` is never used [INFO] [stdout] --> src/repository/infusion.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn insert_infusion(infusion: Infusion) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_infusions` is never used [INFO] [stdout] --> src/repository/infusion.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn query_infusions() -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_api_base_url` is never used [INFO] [stdout] --> src/http_client.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl HttpClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn set_api_base_url(&mut self, api_base_url: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | mq::init_mq().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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 45 | let _ = mq::init_mq().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 48s [INFO] running `Command { std: "docker" "inspect" "de46ab422e7e3d85aa103a0201a23b175594f3d0db3273e17b8b9819d3700ed9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de46ab422e7e3d85aa103a0201a23b175594f3d0db3273e17b8b9819d3700ed9", kill_on_drop: false }` [INFO] [stdout] de46ab422e7e3d85aa103a0201a23b175594f3d0db3273e17b8b9819d3700ed9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7d7422901324deae97ac37b1cd2680e1dd3e3242a8cd676e54c2daffc488927 [INFO] running `Command { std: "docker" "start" "-a" "b7d7422901324deae97ac37b1cd2680e1dd3e3242a8cd676e54c2daffc488927", kill_on_drop: false }` [INFO] [stderr] Compiling smart-infusion v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/main.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::{info, error, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::response::Response` [INFO] [stdout] --> src/api.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::response::Response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeviceStatus` [INFO] [stdout] --> src/api.rs:4:127 [INFO] [stdout] | [INFO] [stdout] 4 | ...publish_start_or_stop_drip_cmd, publish_turn_off_device_cmd, DeviceStatus, ModifyPresetAmountCmd, SetUpDripRateCmd, StartOrStopDripCmd... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `query_infusions` [INFO] [stdout] --> src/api.rs:5:74 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::repository::{fetch_all_patient_page, query_bed, query_device, query_infusions, PatientDetail}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `db::get_db` [INFO] [stdout] --> src/api.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{db::get_db, repository::query_patient}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DefaultConsumer` [INFO] [stdout] --> src/mq/amqp.rs:1:264 [INFO] [stdout] | [INFO] [stdout] 1 | ...ction, OpenConnectionArguments}, consumer::{AsyncConsumer, DefaultConsumer}, BasicProperties}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/mq/amqp.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{error, info}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Level` [INFO] [stdout] --> src/mq/binding.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{info, error, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Infusion`, `fetch_drug_by_patient_no`, `insert_infusion`, `update_device_status`, and `update_patient_by_device_id` [INFO] [stdout] --> src/mq/binding.rs:5:75 [INFO] [stdout] | [INFO] [stdout] 5 | ...c, fetch_drug_by_patient_no, fetch_patient_by_bed_no, insert_infusion, update_device_status, update_patient_by_device_id, update_patient_device_id, Infusion}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Level` and `info` [INFO] [stdout] --> src/mq/publisher.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use tracing::{info, error, Level}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::soft_link` [INFO] [stdout] --> src/mq/device_data_consumer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::soft_link; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Level` and `info` [INFO] [stdout] --> src/mq/device_data_consumer.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use tracing::{info, error, Level}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `QueryBuilder` and `Sqlite` [INFO] [stdout] --> src/repository/device.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{prelude::FromRow, QueryBuilder, Sqlite}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Alarm`, `DeviceStatus`, and `publish_alarm` [INFO] [stdout] --> src/repository/patient.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{db::get_db, mq::{publish_alarm, Alarm, DeviceData, DeviceStatus}}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `QueryBuilder` and `Sqlite` [INFO] [stdout] --> src/repository/drug.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::{QueryBuilder, Sqlite, prelude::FromRow}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Alarm` and `publish_alarm` [INFO] [stdout] --> src/repository/infusion.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{db::get_db, mq::{publish_alarm, Alarm}}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `api` and `db::get_db` [INFO] [stdout] --> src/http_client.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{api, db::get_db, repository::{insert_beds, insert_devices, insert_drugs, insert_patients, Bed, Device, Drug, Patient}}; [INFO] [stdout] | ^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::fs::soft_link`: replaced with std::os::unix::fs::symlink and std::os::windows::fs::{symlink_file, symlink_dir} [INFO] [stdout] --> src/mq/device_data_consumer.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::soft_link; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/mq/binding.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deliver` [INFO] [stdout] --> src/mq/binding.rs:18:52 [INFO] [stdout] | [INFO] [stdout] 18 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deliver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `basic_properties` [INFO] [stdout] --> src/mq/binding.rs:18:70 [INFO] [stdout] | [INFO] [stdout] 18 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_basic_properties` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/mq/device_data_consumer.rs:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deliver` [INFO] [stdout] --> src/mq/device_data_consumer.rs:62:52 [INFO] [stdout] | [INFO] [stdout] 62 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deliver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `basic_properties` [INFO] [stdout] --> src/mq/device_data_consumer.rs:62:70 [INFO] [stdout] | [INFO] [stdout] 62 | async fn consume(&mut self, channel: &Channel, deliver: Deliver, basic_properties: BasicProperties, content: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_basic_properties` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `http_client` [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let http_client = HttpClient::new("https://api.example.com".to_string()); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_http_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaginationParams` is never constructed [INFO] [stdout] --> src/api.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct PaginationParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_channel` is never used [INFO] [stdout] --> src/mq/amqp.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl AmqpManager { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_channel(&self, routing_key: &str) -> Option<&Channel> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceStatus` is never constructed [INFO] [stdout] --> src/mq/publisher.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct DeviceStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mq/publisher.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl DeviceStatus { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 25 | pub fn new(device_id: String, status: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_device_exist` is never used [INFO] [stdout] --> src/repository/device.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn is_device_exist(device_id: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_drug_by_patient_no` is never used [INFO] [stdout] --> src/repository/drug.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn query_drug_by_patient_no(patient_no: String) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_drug_by_patient_no` is never used [INFO] [stdout] --> src/repository/drug.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn fetch_drug_by_patient_no(patient_no: String) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Infusion` is never constructed [INFO] [stdout] --> src/repository/infusion.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Infusion { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/infusion.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Infusion { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new(name: String, gender: String, age: u16, bed_no: String, device_id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InfusionWithDetail` is never constructed [INFO] [stdout] --> src/repository/infusion.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct InfusionWithDetail { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/infusion.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl InfusionWithDetail { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 37 | pub fn new(infusion: Infusion, drugs: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_infusion` is never used [INFO] [stdout] --> src/repository/infusion.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn insert_infusion(infusion: Infusion) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_infusions` is never used [INFO] [stdout] --> src/repository/infusion.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn query_infusions() -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_api_base_url` is never used [INFO] [stdout] --> src/http_client.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl HttpClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn set_api_base_url(&mut self, api_base_url: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | mq::init_mq().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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 45 | let _ = mq::init_mq().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 8.11s [INFO] running `Command { std: "docker" "inspect" "b7d7422901324deae97ac37b1cd2680e1dd3e3242a8cd676e54c2daffc488927", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7d7422901324deae97ac37b1cd2680e1dd3e3242a8cd676e54c2daffc488927", kill_on_drop: false }` [INFO] [stdout] b7d7422901324deae97ac37b1cd2680e1dd3e3242a8cd676e54c2daffc488927