[INFO] cloning repository https://github.com/omaraaa/techunicorn-backend-assessment [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/omaraaa/techunicorn-backend-assessment" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomaraaa%2Ftechunicorn-backend-assessment", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomaraaa%2Ftechunicorn-backend-assessment'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6ff47ca08d8d5f48fa697dcaac93b7eac4cff4e6 [INFO] checking omaraaa/techunicorn-backend-assessment against try#742889a08e10036dc30b8a7308f2a2a15b706883 for pr-103450-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomaraaa%2Ftechunicorn-backend-assessment" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/omaraaa/techunicorn-backend-assessment on toolchain 742889a08e10036dc30b8a7308f2a2a15b706883 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+742889a08e10036dc30b8a7308f2a2a15b706883" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/omaraaa/techunicorn-backend-assessment [INFO] finished tweaking git repo https://github.com/omaraaa/techunicorn-backend-assessment [INFO] tweaked toml for git repo https://github.com/omaraaa/techunicorn-backend-assessment written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/omaraaa/techunicorn-backend-assessment already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+742889a08e10036dc30b8a7308f2a2a15b706883" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+742889a08e10036dc30b8a7308f2a2a15b706883" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f918b9fe40ef1c2cf28d14bf27641bac487fc6411be73cf37340f7ca1c2db55 [INFO] running `Command { std: "docker" "start" "-a" "0f918b9fe40ef1c2cf28d14bf27641bac487fc6411be73cf37340f7ca1c2db55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f918b9fe40ef1c2cf28d14bf27641bac487fc6411be73cf37340f7ca1c2db55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f918b9fe40ef1c2cf28d14bf27641bac487fc6411be73cf37340f7ca1c2db55", kill_on_drop: false }` [INFO] [stdout] 0f918b9fe40ef1c2cf28d14bf27641bac487fc6411be73cf37340f7ca1c2db55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "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:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+742889a08e10036dc30b8a7308f2a2a15b706883" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9004fb9f822c93e5c9bb5f662021d8c1d84150797aa18888b883baf334f0c237 [INFO] running `Command { std: "docker" "start" "-a" "9004fb9f822c93e5c9bb5f662021d8c1d84150797aa18888b883baf334f0c237", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking getrandom v0.2.5 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking universal-hash v0.4.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Checking cpuid-bool v0.2.0 [INFO] [stderr] Checking polyval v0.4.5 [INFO] [stderr] Checking aes-soft v0.6.4 [INFO] [stderr] Compiling tracing v0.1.31 [INFO] [stderr] Checking crypto-mac v0.10.1 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Checking aes v0.6.0 [INFO] [stderr] Checking ghash v0.3.1 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking ctr v0.6.0 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking aes-gcm v0.8.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Checking hkdf v0.10.0 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling figment v0.10.6 [INFO] [stderr] Compiling multer v2.0.2 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Checking num_threads v0.1.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling state v0.5.2 [INFO] [stderr] Compiling time-macros v0.2.3 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Compiling rocket v0.5.0-rc.1 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Checking spin v0.9.2 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking hashlink v0.7.0 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking blake2b_simd v1.0.0 [INFO] [stderr] Checking pem v1.0.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Compiling libsqlite3-sys v0.24.0 [INFO] [stderr] Checking rust-argon2 v1.0.0 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Checking time v0.3.7 [INFO] [stderr] Compiling h2 v0.3.11 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Checking async-stream v0.3.2 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling hyper v0.14.17 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking tokio-stream v0.1.8 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Checking simple_asn1 v0.6.1 [INFO] [stderr] Compiling num_enum_derive v0.5.6 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking ubyte v0.10.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking num_enum v0.5.6 [INFO] [stderr] Checking rusqlite v0.27.0 [INFO] [stderr] Checking jsonwebtoken v8.0.1 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.1 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 [INFO] [stderr] Checking backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `data` used with non-payload-supporting method [INFO] [stdout] --> src/api.rs:46:54 [INFO] [stdout] | [INFO] [stdout] 46 | #[get("/doctors//slots", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: 'GET' does not typically support payloads [INFO] [stdout] --> src/api.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | #[get("/doctors//slots", format = "json", data = "")] [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `data` used with non-payload-supporting method [INFO] [stdout] --> src/api.rs:46:54 [INFO] [stdout] | [INFO] [stdout] 46 | #[get("/doctors//slots", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: 'GET' does not typically support payloads [INFO] [stdout] --> src/api.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | #[get("/doctors//slots", format = "json", data = "")] [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `data` used with non-payload-supporting method [INFO] [stdout] --> src/api.rs:124:46 [INFO] [stdout] | [INFO] [stdout] 124 | #[get("/doctors/available", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: 'GET' does not typically support payloads [INFO] [stdout] --> src/api.rs:124:3 [INFO] [stdout] | [INFO] [stdout] 124 | #[get("/doctors/available", format = "json", data = "")] [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `data` used with non-payload-supporting method [INFO] [stdout] --> src/api.rs:124:46 [INFO] [stdout] | [INFO] [stdout] 124 | #[get("/doctors/available", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: 'GET' does not typically support payloads [INFO] [stdout] --> src/api.rs:124:3 [INFO] [stdout] | [INFO] [stdout] 124 | #[get("/doctors/available", format = "json", data = "")] [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `data` used with non-payload-supporting method [INFO] [stdout] --> src/api.rs:170:56 [INFO] [stdout] | [INFO] [stdout] 170 | #[get("/doctors/by_top_appointments", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: 'GET' does not typically support payloads [INFO] [stdout] --> src/api.rs:170:3 [INFO] [stdout] | [INFO] [stdout] 170 | #[get("/doctors/by_top_appointments", format = "json", data = "")] [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `data` used with non-payload-supporting method [INFO] [stdout] --> src/api.rs:189:56 [INFO] [stdout] | [INFO] [stdout] 189 | #[get("/doctors/with_six_hours_plus", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: 'GET' does not typically support payloads [INFO] [stdout] --> src/api.rs:189:3 [INFO] [stdout] | [INFO] [stdout] 189 | #[get("/doctors/with_six_hours_plus", format = "json", data = "")] [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `data` used with non-payload-supporting method [INFO] [stdout] --> src/api.rs:170:56 [INFO] [stdout] | [INFO] [stdout] 170 | #[get("/doctors/by_top_appointments", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: 'GET' does not typically support payloads [INFO] [stdout] --> src/api.rs:170:3 [INFO] [stdout] | [INFO] [stdout] 170 | #[get("/doctors/by_top_appointments", format = "json", data = "")] [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `data` used with non-payload-supporting method [INFO] [stdout] --> src/api.rs:189:56 [INFO] [stdout] | [INFO] [stdout] 189 | #[get("/doctors/with_six_hours_plus", format = "json", data = "")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: 'GET' does not typically support payloads [INFO] [stdout] --> src/api.rs:189:3 [INFO] [stdout] | [INFO] [stdout] 189 | #[get("/doctors/with_six_hours_plus", format = "json", data = "")] [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/api.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, Duration, FixedOffset}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `derive_more::From` [INFO] [stdout] --> src/api.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use derive_more::From; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Accept` [INFO] [stdout] --> src/api.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::http::{Accept, Status}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::State` [INFO] [stdout] --> src/api.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rocket::State; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `DOCTOR_ADMIN` should have an upper camel case name [INFO] [stdout] --> src/api.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 239 | pub struct DOCTOR_ADMIN {} [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `DoctorAdmin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `NaiveDate` [INFO] [stdout] --> src/db.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, DateTime, Duration, FixedOffset, NaiveDate}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TransactionBehavior` [INFO] [stdout] --> src/db.rs:2:54 [INFO] [stdout] | [INFO] [stdout] 2 | use rusqlite::{params, Connection, Row, Transaction, TransactionBehavior}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefCell`, `Ref`, `ops::Deref`, `rc::Rc` [INFO] [stdout] --> src/db.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | cell::{Ref, RefCell}, [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] 8 | ops::Deref, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/api.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, Duration, FixedOffset}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `derive_more::From` [INFO] [stdout] --> src/api.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use derive_more::From; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Accept` [INFO] [stdout] --> src/api.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::http::{Accept, Status}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::State` [INFO] [stdout] --> src/api.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rocket::State; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `DOCTOR_ADMIN` should have an upper camel case name [INFO] [stdout] --> src/api.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 239 | pub struct DOCTOR_ADMIN {} [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `DoctorAdmin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `NaiveDate` [INFO] [stdout] --> src/db.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, DateTime, Duration, FixedOffset, NaiveDate}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TransactionBehavior` [INFO] [stdout] --> src/db.rs:2:54 [INFO] [stdout] | [INFO] [stdout] 2 | use rusqlite::{params, Connection, Row, Transaction, TransactionBehavior}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefCell`, `Ref`, `ops::Deref`, `rc::Rc` [INFO] [stdout] --> src/db.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | cell::{Ref, RefCell}, [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] 8 | ops::Deref, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `claims` [INFO] [stdout] --> src/api.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | fn is_valid(claims: &db::Claims) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_claims` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `claims` [INFO] [stdout] --> src/api.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | fn is_valid(claims: &db::Claims) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_claims` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let mut q = stmnt.query_map( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | let mut q = stmnt.query_map(params![patient_id], appointment_from_row)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let mut q = stmnt.query_map( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | let mut q = stmnt.query_map(params![patient_id], appointment_from_row)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tx` is never read [INFO] [stdout] --> src/db.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct DB<'a> { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 40 | con: Connection, [INFO] [stdout] 41 | tx: Option>, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `DB` 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: field `tx` is never read [INFO] [stdout] --> src/db.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct DB<'a> { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 40 | con: Connection, [INFO] [stdout] 41 | tx: Option>, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `DB` 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: associated function `init` is never used [INFO] [stdout] --> src/db.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn init(path: Option<&str>) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "9004fb9f822c93e5c9bb5f662021d8c1d84150797aa18888b883baf334f0c237", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9004fb9f822c93e5c9bb5f662021d8c1d84150797aa18888b883baf334f0c237", kill_on_drop: false }` [INFO] [stdout] 9004fb9f822c93e5c9bb5f662021d8c1d84150797aa18888b883baf334f0c237