[INFO] cloning repository https://github.com/Iamjava/nutritionist
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Iamjava/nutritionist" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIamjava%2Fnutritionist", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIamjava%2Fnutritionist'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 812b3b4328c212c61ee70eb830332763063d52ad
[INFO] checking Iamjava/nutritionist/812b3b4328c212c61ee70eb830332763063d52ad against 3d50c25bc66853bf0ad205529d0f305a1d841b5e for pr-159598
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIamjava%2Fnutritionist" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Iamjava/nutritionist
[INFO] finished tweaking git repo https://github.com/Iamjava/nutritionist
[INFO] tweaked toml for git repo https://github.com/Iamjava/nutritionist written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Iamjava/nutritionist on toolchain 3d50c25bc66853bf0ad205529d0f305a1d841b5e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3d50c25bc66853bf0ad205529d0f305a1d841b5e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Iamjava/nutritionist 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" "+3d50c25bc66853bf0ad205529d0f305a1d841b5e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tower-cookies v0.10.0
[INFO] [stderr]   Downloaded cc v1.0.91
[INFO] [stderr]   Downloaded tower-sessions-core v0.11.1
[INFO] [stderr]   Downloaded tower-sessions-memory-store v0.11.1
[INFO] [stderr]   Downloaded tower-sessions v0.11.1
[INFO] [stderr]   Downloaded security-framework-sys v2.10.0
[INFO] [stderr]   Downloaded hyper v1.2.0
[INFO] [stderr]   Downloaded hyper-rustls v0.26.0
[INFO] [stderr]   Downloaded serde_with_macros v3.8.0
[INFO] [stderr]   Downloaded num-iter v0.1.44
[INFO] [stderr]   Downloaded oauth2 v4.4.2
[INFO] [stderr]   Downloaded security-framework v2.10.0
[INFO] [stderr]   Downloaded serde_with v3.8.0
[INFO] [stderr]   Downloaded reqwest v0.12.3
[INFO] [stderr]   Downloaded openidconnect v3.5.0
[INFO] [stderr]   Downloaded rustls-webpki v0.102.2
[INFO] [stderr]   Downloaded redis v0.25.3
[INFO] [stderr]   Downloaded rustls v0.22.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 962ffca8ccac7e25f33666f4adf64249f79446f66894a05d5ebf695eacf13996
[INFO] running `Command { std: "docker" "start" "962ffca8ccac7e25f33666f4adf64249f79446f66894a05d5ebf695eacf13996", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "962ffca8ccac7e25f33666f4adf64249f79446f66894a05d5ebf695eacf13996", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "962ffca8ccac7e25f33666f4adf64249f79446f66894a05d5ebf695eacf13996" "/opt/rustwide/cargo-home/bin/cargo" "+3d50c25bc66853bf0ad205529d0f305a1d841b5e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "962ffca8ccac7e25f33666f4adf64249f79446f66894a05d5ebf695eacf13996", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "962ffca8ccac7e25f33666f4adf64249f79446f66894a05d5ebf695eacf13996" "/opt/rustwide/cargo-home/bin/cargo" "+3d50c25bc66853bf0ad205529d0f305a1d841b5e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.79
[INFO] [stderr]    Compiling serde v1.0.197
[INFO] [stderr]     Checking zeroize v1.7.0
[INFO] [stderr]    Compiling cc v1.0.91
[INFO] [stderr]     Checking subtle v2.5.0
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]     Checking getrandom v0.2.14
[INFO] [stderr]     Checking parking_lot_core v0.9.9
[INFO] [stderr]     Checking socket2 v0.5.6
[INFO] [stderr]     Checking mio v0.8.11
[INFO] [stderr]    Compiling libm v0.2.8
[INFO] [stderr]     Checking indexmap v2.2.6
[INFO] [stderr]    Compiling num-traits v0.2.18
[INFO] [stderr]    Compiling serde_json v1.0.115
[INFO] [stderr]    Compiling semver v1.0.22
[INFO] [stderr]     Checking generic-array v0.14.7
[INFO] [stderr]     Checking der v0.7.9
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling async-trait v0.1.79
[INFO] [stderr]    Compiling axum-core v0.4.3
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]    Compiling thiserror v1.0.58
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]    Compiling time-macros v0.2.18
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking ff v0.13.0
[INFO] [stderr]    Compiling strsim v0.10.0
[INFO] [stderr]     Checking rustls-pki-types v1.4.1
[INFO] [stderr]    Compiling unicase v2.7.0
[INFO] [stderr]     Checking group v0.13.0
[INFO] [stderr]     Checking base64 v0.22.0
[INFO] [stderr]    Compiling platforms v3.4.0
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling rustc_version v0.4.0
[INFO] [stderr]    Compiling cookie v0.18.1
[INFO] [stderr]    Compiling rustls v0.22.3
[INFO] [stderr]    Compiling num-bigint-dig v0.8.4
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking crypto-bigint v0.5.5
[INFO] [stderr]    Compiling mime_guess v2.0.4
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]     Checking webpki-roots v0.25.4
[INFO] [stderr]    Compiling memchr v2.7.2
[INFO] [stderr]    Compiling axum v0.7.5
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling curve25519-dalek v4.1.2
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling syn v2.0.58
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]     Checking either v1.11.0
[INFO] [stderr]     Checking rustls-pemfile v2.1.2
[INFO] [stderr]     Checking humansize v2.1.3
[INFO] [stderr]     Checking hmac v0.12.1
[INFO] [stderr]     Checking signature v2.2.0
[INFO] [stderr]     Checking spki v0.7.3
[INFO] [stderr]     Checking sha2 v0.10.8
[INFO] [stderr]     Checking itertools v0.10.5
[INFO] [stderr]     Checking webpki-roots v0.26.1
[INFO] [stderr]     Checking combine v4.6.6
[INFO] [stderr]     Checking askama_escape v0.10.3
[INFO] [stderr]     Checking hkdf v0.12.4
[INFO] [stderr]     Checking rfc6979 v0.4.0
[INFO] [stderr]     Checking sha1_smol v1.0.0
[INFO] [stderr]     Checking pkcs8 v0.10.2
[INFO] [stderr]    Compiling ring v0.17.8
[INFO] [stderr]    Compiling openssl-sys v0.9.102
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]     Checking sec1 v0.7.3
[INFO] [stderr]     Checking ed25519 v2.2.3
[INFO] [stderr]     Checking pkcs1 v0.7.5
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking ordered-float v2.10.1
[INFO] [stderr]     Checking num-iter v0.1.44
[INFO] [stderr]    Compiling openssl v0.10.64
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]     Checking elliptic-curve v0.13.8
[INFO] [stderr]     Checking primeorder v0.13.6
[INFO] [stderr]     Checking ecdsa v0.16.9
[INFO] [stderr]     Checking rsa v0.9.6
[INFO] [stderr]     Checking p256 v0.13.2
[INFO] [stderr]     Checking p384 v0.13.0
[INFO] [stderr]    Compiling askama_parser v0.2.1
[INFO] [stderr]    Compiling darling_core v0.20.8
[INFO] [stderr]    Compiling serde_derive v1.0.197
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling thiserror-impl v1.0.58
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling curve25519-dalek-derive v0.1.1
[INFO] [stderr]     Checking rustls-webpki v0.101.7
[INFO] [stderr]     Checking sct v0.7.1
[INFO] [stderr]     Checking rustls-webpki v0.102.2
[INFO] [stderr]     Checking futures-util v0.3.30
[INFO] [stderr]     Checking pin-project v1.1.5
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]    Compiling darling_macro v0.20.8
[INFO] [stderr]    Compiling darling v0.20.8
[INFO] [stderr]    Compiling serde_with_macros v3.8.0
[INFO] [stderr]     Checking ed25519-dalek v2.1.1
[INFO] [stderr]     Checking futures v0.3.30
[INFO] [stderr]     Checking deranged v0.3.11
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking url v2.5.0
[INFO] [stderr]     Checking serde_path_to_error v0.1.16
[INFO] [stderr]     Checking chrono v0.4.38
[INFO] [stderr]     Checking serde-value v0.7.0
[INFO] [stderr]     Checking serde_with v3.8.0
[INFO] [stderr]     Checking serde_plain v1.0.2
[INFO] [stderr]     Checking uuid v1.8.0
[INFO] [stderr]    Compiling basic-toml v0.1.9
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]     Checking tokio v1.37.0
[INFO] [stderr]     Checking redis v0.25.3
[INFO] [stderr]     Checking time v0.3.36
[INFO] [stderr]    Compiling askama_derive v0.12.5
[INFO] [stderr]     Checking askama v0.12.1
[INFO] [stderr]     Checking tower-cookies v0.10.0
[INFO] [stderr]     Checking tokio-util v0.7.10
[INFO] [stderr]     Checking tower v0.4.13
[INFO] [stderr]     Checking tokio-rustls v0.24.1
[INFO] [stderr]     Checking tower-sessions-core v0.11.1
[INFO] [stderr]     Checking tokio-rustls v0.25.0
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking tower-sessions-memory-store v0.11.1
[INFO] [stderr]     Checking h2 v0.4.4
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking tower-sessions v0.11.1
[INFO] [stderr]     Checking hyper v1.2.0
[INFO] [stderr]     Checking hyper v0.14.28
[INFO] [stderr]     Checking hyper-util v0.1.3
[INFO] [stderr]     Checking hyper-rustls v0.26.0
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking reqwest v0.12.3
[INFO] [stderr]     Checking hyper-rustls v0.24.2
[INFO] [stderr]     Checking reqwest v0.11.27
[INFO] [stderr]     Checking oauth2 v4.4.2
[INFO] [stderr]     Checking openidconnect v3.5.0
[INFO] [stderr]     Checking axum-oidc v0.3.0 (/opt/rustwide/workdir/axum-oidc)
[INFO] [stderr]     Checking nutritionist v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::db`
[INFO] [stdout]  --> src/app/handler.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::db;
[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: `RedisORM`
[INFO] [stdout]  --> src/app/handler.rs:2:54
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::models::models::{NutritionistSearchQuery, RedisORM};
[INFO] [stdout]   |                                                      ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::PartialEq`
[INFO] [stdout]  --> src/app/meal_handler.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::cmp::PartialEq;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/app/meal_handler.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime`, `Local`, and `TimeZone`
[INFO] [stdout]   --> src/app/meal_handler.rs:14:14
[INFO] [stdout]    |
[INFO] [stdout] 14 | use chrono::{DateTime, Local, NaiveDate, TimeZone, Utc};
[INFO] [stdout]    |              ^^^^^^^^  ^^^^^             ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around pattern
[INFO] [stdout]    --> src/app/meal_handler.rs:387:10
[INFO] [stdout]     |
[INFO] [stdout] 387 |     Path((id)): Path<String>,
[INFO] [stdout]     |          ^  ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 387 -     Path((id)): Path<String>,
[INFO] [stdout] 387 +     Path(id): Path<String>,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `handle_subuser_meal`
[INFO] [stdout]  --> src/app/server.rs:2:83
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::app::meal_handler::{handle_allmeals, handle_create_meal, handle_meals, handle_subuser_meal, handle_subuser_meals, handle_s...
[INFO] [stdout]   |                                                                                   ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Response` and `StatusCode`
[INFO] [stdout]  --> src/app/server.rs:6:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | use axum::http::{Response, StatusCode, Uri};
[INFO] [stdout]   |                  ^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::format`
[INFO] [stdout]  --> src/db/connector.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fmt::format;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::db::connector`
[INFO] [stdout]  --> src/models/meal.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::db::connector;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `default_fetch_from_uuid`
[INFO] [stdout]  --> src/models/meal.rs:3:28
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::db::connector::{default_fetch_from_uuid, default_save};
[INFO] [stdout]   |                            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Mul`
[INFO] [stdout]  --> src/models/meal.rs:9:21
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::ops::{Add, Mul};
[INFO] [stdout]   |                     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::NaiveDate`
[INFO] [stdout]   --> src/models/meal.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use chrono::NaiveDate;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tower_sessions::cookie::time::error::Format`
[INFO] [stdout]   --> src/models/meal.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use tower_sessions::cookie::time::error::Format;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::PartialEq`
[INFO] [stdout]  --> src/models/user.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::cmp::PartialEq;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RedisResult`
[INFO] [stdout]  --> src/models/user.rs:6:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | use redis::{Connection, RedisError, RedisResult};
[INFO] [stdout]   |                                     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Display`
[INFO] [stdout]  --> src/usda/search.rs:6:23
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::fmt::{Debug, Display};
[INFO] [stdout]   |                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]  --> src/usda/search.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use uuid::Uuid;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::db`
[INFO] [stdout]  --> src/app/handler.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::db;
[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: `RedisORM`
[INFO] [stdout]  --> src/app/handler.rs:2:54
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::models::models::{NutritionistSearchQuery, RedisORM};
[INFO] [stdout]   |                                                      ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::PartialEq`
[INFO] [stdout]  --> src/app/meal_handler.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::cmp::PartialEq;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/app/meal_handler.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime`, `Local`, and `TimeZone`
[INFO] [stdout]   --> src/app/meal_handler.rs:14:14
[INFO] [stdout]    |
[INFO] [stdout] 14 | use chrono::{DateTime, Local, NaiveDate, TimeZone, Utc};
[INFO] [stdout]    |              ^^^^^^^^  ^^^^^             ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around pattern
[INFO] [stdout]    --> src/app/meal_handler.rs:387:10
[INFO] [stdout]     |
[INFO] [stdout] 387 |     Path((id)): Path<String>,
[INFO] [stdout]     |          ^  ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 387 -     Path((id)): Path<String>,
[INFO] [stdout] 387 +     Path(id): Path<String>,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `NaiveDateTime`
[INFO] [stdout]    --> src/app/meal_handler.rs:412:18
[INFO] [stdout]     |
[INFO] [stdout] 412 |     use chrono::{DateTime, NaiveDateTime};
[INFO] [stdout]     |                  ^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `handle_subuser_meal`
[INFO] [stdout]  --> src/app/server.rs:2:83
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::app::meal_handler::{handle_allmeals, handle_create_meal, handle_meals, handle_subuser_meal, handle_subuser_meals, handle_s...
[INFO] [stdout]   |                                                                                   ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Response` and `StatusCode`
[INFO] [stdout]  --> src/app/server.rs:6:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | use axum::http::{Response, StatusCode, Uri};
[INFO] [stdout]   |                  ^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::format`
[INFO] [stdout]  --> src/db/connector.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fmt::format;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::db::connector`
[INFO] [stdout]  --> src/models/meal.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::db::connector;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `default_fetch_from_uuid`
[INFO] [stdout]  --> src/models/meal.rs:3:28
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::db::connector::{default_fetch_from_uuid, default_save};
[INFO] [stdout]   |                            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Mul`
[INFO] [stdout]  --> src/models/meal.rs:9:21
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::ops::{Add, Mul};
[INFO] [stdout]   |                     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::NaiveDate`
[INFO] [stdout]   --> src/models/meal.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use chrono::NaiveDate;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tower_sessions::cookie::time::error::Format`
[INFO] [stdout]   --> src/models/meal.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use tower_sessions::cookie::time::error::Format;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::models::RedisORM`
[INFO] [stdout]    --> src/models/meal.rs:204:9
[INFO] [stdout]     |
[INFO] [stdout] 204 |     use crate::models::models::RedisORM;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::user::User`
[INFO] [stdout]    --> src/models/meal.rs:205:9
[INFO] [stdout]     |
[INFO] [stdout] 205 |     use crate::models::user::User;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `db` and `models`
[INFO] [stdout]    --> src/models/meal.rs:206:17
[INFO] [stdout]     |
[INFO] [stdout] 206 |     use crate::{db, models};
[INFO] [stdout]     |                 ^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::PartialEq`
[INFO] [stdout]  --> src/models/user.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::cmp::PartialEq;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RedisResult`
[INFO] [stdout]  --> src/models/user.rs:6:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | use redis::{Connection, RedisError, RedisResult};
[INFO] [stdout]   |                                     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::meal::Meal`
[INFO] [stdout]    --> src/models/user.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 108 |     use crate::models::meal::Meal;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::models::RedisORM`
[INFO] [stdout]    --> src/models/user.rs:109:9
[INFO] [stdout]     |
[INFO] [stdout] 109 |     use crate::models::models::RedisORM;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::user::User`
[INFO] [stdout]    --> src/models/user.rs:110:9
[INFO] [stdout]     |
[INFO] [stdout] 110 |     use crate::models::user::User;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `db` and `models`
[INFO] [stdout]    --> src/models/user.rs:111:17
[INFO] [stdout]     |
[INFO] [stdout] 111 |     use crate::{db, models};
[INFO] [stdout]     |                 ^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `redis::Commands`
[INFO] [stdout]    --> src/models/user.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 112 |     use redis::Commands;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Display`
[INFO] [stdout]  --> src/usda/search.rs:6:23
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::fmt::{Debug, Display};
[INFO] [stdout]   |                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]  --> src/usda/search.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use uuid::Uuid;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::user::User`
[INFO] [stdout]    --> src/usda/search.rs:377:9
[INFO] [stdout]     |
[INFO] [stdout] 377 |     use crate::models::user::User;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `query_usda_food_database`
[INFO] [stdout]    --> src/usda/search.rs:378:31
[INFO] [stdout]     |
[INFO] [stdout] 378 |     use crate::usda::search::{query_usda_food_database, Food};
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/app/handler.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let mut user = User::check_if_exists_or_create(&mut con, oidc_claims).unwrap();
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/app/handler.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let mut user = User::check_if_exists_or_create(&mut con, oidc_claims).unwrap();
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/app/meal_handler.rs:119:17
[INFO] [stdout]     |
[INFO] [stdout] 119 |             let mut m: &mut Vec<Meal>  = hash_map.get_mut(&meal.date).unwrap();
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/app/meal_handler.rs:119:17
[INFO] [stdout]     |
[INFO] [stdout] 119 |             let mut m: &mut Vec<Meal>  = hash_map.get_mut(&meal.date).unwrap();
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/app/meal_handler.rs:168:17
[INFO] [stdout]     |
[INFO] [stdout] 168 |             let mut m: &mut Vec<Meal>  = hash_map.get_mut(&meal.date).unwrap();
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/app/meal_handler.rs:168:17
[INFO] [stdout]     |
[INFO] [stdout] 168 |             let mut m: &mut Vec<Meal>  = hash_map.get_mut(&meal.date).unwrap();
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/app/meal_handler.rs:240:17
[INFO] [stdout]     |
[INFO] [stdout] 240 |             let mut m: &mut Vec<Meal>  = hash_map.get_mut(&meal.date).unwrap();
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/app/meal_handler.rs:240:17
[INFO] [stdout]     |
[INFO] [stdout] 240 |             let mut m: &mut Vec<Meal>  = hash_map.get_mut(&meal.date).unwrap();
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/app/meal_handler.rs:330:13
[INFO] [stdout]     |
[INFO] [stdout] 330 |         let mut c = content.clone();
[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/app/meal_handler.rs:330:13
[INFO] [stdout]     |
[INFO] [stdout] 330 |         let mut c = content.clone();
[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/app/meal_handler.rs:358:13
[INFO] [stdout]     |
[INFO] [stdout] 358 |         let mut c = content.clone();
[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/app/meal_handler.rs:358:13
[INFO] [stdout]     |
[INFO] [stdout] 358 |         let mut c = content.clone();
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `api_key`
[INFO] [stdout]    --> src/usda/search.rs:269:9
[INFO] [stdout]     |
[INFO] [stdout] 269 |     let api_key = "x6VEBsX1defxOWiAjX2MVZMcCh2HACrmeUecluye"; // Replace 'DEMO_KEY' with your actual API key
[INFO] [stdout]     |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_key`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> src/main.rs:25:50
[INFO] [stdout]    |
[INFO] [stdout] 25 |             date: NaiveDate::from(NaiveDateTime::from_timestamp(0, 0)),
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> src/main.rs:60:50
[INFO] [stdout]    |
[INFO] [stdout] 60 |             date: NaiveDate::from(NaiveDateTime::from_timestamp(0, 0)),
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `username`
[INFO] [stdout]   --> src/app/meal_handler.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let username = claims.preferred_username().unwrap();
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `username`
[INFO] [stdout]    --> src/app/meal_handler.rs:113:9
[INFO] [stdout]     |
[INFO] [stdout] 113 |     let username = claims.preferred_username().unwrap();
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `username`
[INFO] [stdout]    --> src/app/meal_handler.rs:160:9
[INFO] [stdout]     |
[INFO] [stdout] 160 |     let username = claims.preferred_username().unwrap();
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `username`
[INFO] [stdout]    --> src/app/meal_handler.rs:210:9
[INFO] [stdout]     |
[INFO] [stdout] 210 |     let username = claims.preferred_username().unwrap();
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/app/meal_handler.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let user = User::check_if_exists_or_create(&mut con, claims).unwrap();
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `api_key`
[INFO] [stdout]    --> src/usda/search.rs:269:9
[INFO] [stdout]     |
[INFO] [stdout] 269 |     let api_key = "x6VEBsX1defxOWiAjX2MVZMcCh2HACrmeUecluye"; // Replace 'DEMO_KEY' with your actual API key
[INFO] [stdout]     |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_key`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/app/server.rs:109:5
[INFO] [stdout]     |
[INFO] [stdout] 109 |     id: Path<String>,
[INFO] [stdout]     |     ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_ex`
[INFO] [stdout]   --> src/db/connector.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let result_ex: RedisResult<()> = redis::cmd("EXPIRE").arg(key.clone()).arg(expiry).query(con);
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_ex`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `username`
[INFO] [stdout]   --> src/app/meal_handler.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let username = claims.preferred_username().unwrap();
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `username`
[INFO] [stdout]    --> src/app/meal_handler.rs:113:9
[INFO] [stdout]     |
[INFO] [stdout] 113 |     let username = claims.preferred_username().unwrap();
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `username`
[INFO] [stdout]    --> src/app/meal_handler.rs:160:9
[INFO] [stdout]     |
[INFO] [stdout] 160 |     let username = claims.preferred_username().unwrap();
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `username`
[INFO] [stdout]    --> src/app/meal_handler.rs:210:9
[INFO] [stdout]     |
[INFO] [stdout] 210 |     let username = claims.preferred_username().unwrap();
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/app/meal_handler.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let user = User::check_if_exists_or_create(&mut con, claims).unwrap();
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/app/server.rs:109:5
[INFO] [stdout]     |
[INFO] [stdout] 109 |     id: Path<String>,
[INFO] [stdout]     |     ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_ex`
[INFO] [stdout]   --> src/db/connector.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let result_ex: RedisResult<()> = redis::cmd("EXPIRE").arg(key.clone()).arg(expiry).query(con);
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_ex`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/models/meal.rs:123:17
[INFO] [stdout]     |
[INFO] [stdout] 123 |             let mut i = content.product.get_numerical_macros() * content.quantity * 0.01;
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user_id`
[INFO] [stdout]    --> src/models/meal.rs:139:54
[INFO] [stdout]     |
[INFO] [stdout] 139 |     fn add_meal_to_user(&self, con: &mut Connection, user_id: &str) {
[INFO] [stdout]     |                                                      ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user_id`
[INFO] [stdout]    --> src/models/meal.rs:157:59
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn remove_meal_from_user(&self, con: &mut Connection, user_id: &str) {
[INFO] [stdout]     |                                                           ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/models/meal.rs:172:13
[INFO] [stdout]     |
[INFO] [stdout] 172 |         let id = self.username.to_string() + ":" + &*self.id.to_string();
[INFO] [stdout]     |             ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/models/meal.rs:123:17
[INFO] [stdout]     |
[INFO] [stdout] 123 |             let mut i = content.product.get_numerical_macros() * content.quantity * 0.01;
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user_id`
[INFO] [stdout]    --> src/models/meal.rs:139:54
[INFO] [stdout]     |
[INFO] [stdout] 139 |     fn add_meal_to_user(&self, con: &mut Connection, user_id: &str) {
[INFO] [stdout]     |                                                      ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/models/user.rs:57:17
[INFO] [stdout]    |
[INFO] [stdout] 57 |             let mut user = user.unwrap();
[INFO] [stdout]    |                 ----^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout]   --> src/models/user.rs:54:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let name= id.clone();
[INFO] [stdout]    |             ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `email`
[INFO] [stdout]   --> src/models/user.rs:55:13
[INFO] [stdout]    |
[INFO] [stdout] 55 |         let email = "test@test.de";
[INFO] [stdout]    |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_email`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user_id`
[INFO] [stdout]    --> src/models/meal.rs:157:59
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn remove_meal_from_user(&self, con: &mut Connection, user_id: &str) {
[INFO] [stdout]     |                                                           ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/models/meal.rs:172:13
[INFO] [stdout]     |
[INFO] [stdout] 172 |         let id = self.username.to_string() + ":" + &*self.id.to_string();
[INFO] [stdout]     |             ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/models/user.rs:57:17
[INFO] [stdout]    |
[INFO] [stdout] 57 |             let mut user = user.unwrap();
[INFO] [stdout]    |                 ----^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout]   --> src/models/user.rs:54:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let name= id.clone();
[INFO] [stdout]    |             ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `email`
[INFO] [stdout]   --> src/models/user.rs:55:13
[INFO] [stdout]    |
[INFO] [stdout] 55 |         let email = "test@test.de";
[INFO] [stdout]    |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_email`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Nutrient` is more private than the item `Food::new`
[INFO] [stdout]   --> src/usda/search.rs:77:5
[INFO] [stdout]    |
[INFO] [stdout] 77 |     pub fn new(id: i32, description: impl Into<String>, nutrients: Vec<Nutrient>) -> Self {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `Food::new` is reachable at visibility `pub(crate)`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `Nutrient` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/usda/search.rs:11:1
[INFO] [stdout]    |
[INFO] [stdout] 11 | struct Nutrient {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `meal_id` is never read
[INFO] [stdout]   --> src/app/meal_handler.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | struct MealsTemplate<'a> {
[INFO] [stdout]    |        ------------- field in this struct
[INFO] [stdout] 21 |     // the name of the struct can be anything
[INFO] [stdout] 22 |     meal_id: &'a str,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_subuser_meal` is never used
[INFO] [stdout]    --> src/app/meal_handler.rs:205:14
[INFO] [stdout]     |
[INFO] [stdout] 205 | pub async fn handle_subuser_meal(claims: Option<OidcClaims<EmptyAdditionalClaims>>,Path(id):Path<String>) -> Response<String> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `maybe_authenticated` is never used
[INFO] [stdout]    --> src/app/server.rs:119:10
[INFO] [stdout]     |
[INFO] [stdout] 119 | async fn maybe_authenticated(
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `default_fetch_all_keys` is never used
[INFO] [stdout]   --> src/db/connector.rs:93:15
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub(crate) fn default_fetch_all_keys(con: &mut redis::Connection, key_prefix: &str) -> Vec<String> {
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `remove_from_set` is never used
[INFO] [stdout]    --> src/db/connector.rs:112:15
[INFO] [stdout]     |
[INFO] [stdout] 112 | pub(crate) fn remove_from_set(p0: &mut Connection, p1: String, p2: String) -> RedisResult<()> {
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `to_date` and `to_meal_type` are never used
[INFO] [stdout]   --> src/models/meal.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl Meal {
[INFO] [stdout]    | --------- methods in this implementation
[INFO] [stdout] 34 |     pub fn to_date(&self) -> String {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn to_meal_type(&self) -> String {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_date` is never used
[INFO] [stdout]   --> src/models/meal.rs:43:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl DailyMealCombo {
[INFO] [stdout]    | ------------------- method in this implementation
[INFO] [stdout] 43 |     pub fn to_date(&self) -> String {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_kcal` and `remove_meal_from_user` are never used
[INFO] [stdout]    --> src/models/meal.rs:129:19
[INFO] [stdout]     |
[INFO] [stdout] 118 | impl Meal {
[INFO] [stdout]     | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub(crate) fn get_kcal(&self) -> Result<f32, Error> {
[INFO] [stdout]     |                   ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 157 |     fn remove_meal_from_user(&self, con: &mut Connection, user_id: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `create_default_user` is never used
[INFO] [stdout]   --> src/models/user.rs:90:8
[INFO] [stdout]    |
[INFO] [stdout] 47 | impl User {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 90 |     fn create_default_user(con: &mut Connection) -> Result<User, RedisError> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/usda/search.rs:77:12
[INFO] [stdout]    |
[INFO] [stdout] 70 | impl Food {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub fn new(id: i32, description: impl Into<String>, nutrients: Vec<Nutrient>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/models/user.rs:54:21
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let name= id.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: variable does not need to be mutable
[INFO] [stdout]    --> src/usda/search.rs:426:13
[INFO] [stdout]     |
[INFO] [stdout] 426 |         let mut meal = models::meal::Meal::fetch_from_uuid(&mut con, &meal.id.to_string()).unwrap();
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let mut con = crate::db::connector::get_connection()
[INFO] [stdout]    |             ----^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `con`
[INFO] [stdout]   --> src/main.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let mut con = crate::db::connector::get_connection()
[INFO] [stdout]    |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_con`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Nutrient` is more private than the item `Food::new`
[INFO] [stdout]   --> src/usda/search.rs:77:5
[INFO] [stdout]    |
[INFO] [stdout] 77 |     pub fn new(id: i32, description: impl Into<String>, nutrients: Vec<Nutrient>) -> Self {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `Food::new` is reachable at visibility `pub(crate)`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `Nutrient` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/usda/search.rs:11:1
[INFO] [stdout]    |
[INFO] [stdout] 11 | struct Nutrient {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `meal_id` is never read
[INFO] [stdout]   --> src/app/meal_handler.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | struct MealsTemplate<'a> {
[INFO] [stdout]    |        ------------- field in this struct
[INFO] [stdout] 21 |     // the name of the struct can be anything
[INFO] [stdout] 22 |     meal_id: &'a str,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_subuser_meal` is never used
[INFO] [stdout]    --> src/app/meal_handler.rs:205:14
[INFO] [stdout]     |
[INFO] [stdout] 205 | pub async fn handle_subuser_meal(claims: Option<OidcClaims<EmptyAdditionalClaims>>,Path(id):Path<String>) -> Response<String> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `maybe_authenticated` is never used
[INFO] [stdout]    --> src/app/server.rs:119:10
[INFO] [stdout]     |
[INFO] [stdout] 119 | async fn maybe_authenticated(
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `default_fetch_all_keys` is never used
[INFO] [stdout]   --> src/db/connector.rs:93:15
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub(crate) fn default_fetch_all_keys(con: &mut redis::Connection, key_prefix: &str) -> Vec<String> {
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `remove_from_set` is never used
[INFO] [stdout]    --> src/db/connector.rs:112:15
[INFO] [stdout]     |
[INFO] [stdout] 112 | pub(crate) fn remove_from_set(p0: &mut Connection, p1: String, p2: String) -> RedisResult<()> {
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `to_date` and `to_meal_type` are never used
[INFO] [stdout]   --> src/models/meal.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl Meal {
[INFO] [stdout]    | --------- methods in this implementation
[INFO] [stdout] 34 |     pub fn to_date(&self) -> String {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn to_meal_type(&self) -> String {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_date` is never used
[INFO] [stdout]   --> src/models/meal.rs:43:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl DailyMealCombo {
[INFO] [stdout]    | ------------------- method in this implementation
[INFO] [stdout] 43 |     pub fn to_date(&self) -> String {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_kcal` and `remove_meal_from_user` are never used
[INFO] [stdout]    --> src/models/meal.rs:129:19
[INFO] [stdout]     |
[INFO] [stdout] 118 | impl Meal {
[INFO] [stdout]     | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub(crate) fn get_kcal(&self) -> Result<f32, Error> {
[INFO] [stdout]     |                   ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 157 |     fn remove_meal_from_user(&self, con: &mut Connection, user_id: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `create_default_user` is never used
[INFO] [stdout]   --> src/models/user.rs:90:8
[INFO] [stdout]    |
[INFO] [stdout] 47 | impl User {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 90 |     fn create_default_user(con: &mut Connection) -> Result<User, RedisError> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/usda/search.rs:77:12
[INFO] [stdout]    |
[INFO] [stdout] 70 | impl Food {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub fn new(id: i32, description: impl Into<String>, nutrients: Vec<Nutrient>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/models/user.rs:54:21
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let name= id.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] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.34s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4, redis v0.25.3
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 8`
[INFO] running `Command { std: "docker" "inspect" "962ffca8ccac7e25f33666f4adf64249f79446f66894a05d5ebf695eacf13996", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "962ffca8ccac7e25f33666f4adf64249f79446f66894a05d5ebf695eacf13996", kill_on_drop: false }`
[INFO] [stdout] 962ffca8ccac7e25f33666f4adf64249f79446f66894a05d5ebf695eacf13996
