[INFO] cloning repository https://github.com/P40b0s/warning_tg_bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/P40b0s/warning_tg_bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FP40b0s%2Fwarning_tg_bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FP40b0s%2Fwarning_tg_bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] faa920c5289a66df3a6c800b32586782a5a5f866 [INFO] checking P40b0s/warning_tg_bot against try#028201683a76a5cd349729c6819c46607119c4e8 for pr-144157 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FP40b0s%2Fwarning_tg_bot" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/P40b0s/warning_tg_bot [INFO] finished tweaking git repo https://github.com/P40b0s/warning_tg_bot [INFO] tweaked toml for git repo https://github.com/P40b0s/warning_tg_bot written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/P40b0s/warning_tg_bot on toolchain 028201683a76a5cd349729c6819c46607119c4e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028201683a76a5cd349729c6819c46607119c4e8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/P40b0s/warning_tg_bot 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" "+028201683a76a5cd349729c6819c46607119c4e8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/P40b0s/logger.git` [INFO] [stderr] Updating git repository `https://github.com/P40b0s/help_utilites.git` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded teloxide-macros v0.8.0 [INFO] [stderr] Downloaded owo-colors v4.1.0 [INFO] [stderr] Downloaded teloxide v0.13.0 [INFO] [stderr] Downloaded tower-http v0.6.1 [INFO] [stderr] Downloaded teloxide-core v0.10.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+028201683a76a5cd349729c6819c46607119c4e8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 184e0a93d2141a1acfc05bc7285ccc9717f7e5ef2c87c1d368a5027086a9c2ad [INFO] running `Command { std: "docker" "start" "-a" "184e0a93d2141a1acfc05bc7285ccc9717f7e5ef2c87c1d368a5027086a9c2ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "184e0a93d2141a1acfc05bc7285ccc9717f7e5ef2c87c1d368a5027086a9c2ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "184e0a93d2141a1acfc05bc7285ccc9717f7e5ef2c87c1d368a5027086a9c2ad", kill_on_drop: false }` [INFO] [stdout] 184e0a93d2141a1acfc05bc7285ccc9717f7e5ef2c87c1d368a5027086a9c2ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+028201683a76a5cd349729c6819c46607119c4e8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1937324eb7612a63c1c73a121fcc653d5e641a5bc78aa15ce783fcc70c181c7 [INFO] running `Command { std: "docker" "start" "-a" "e1937324eb7612a63c1c73a121fcc653d5e641a5bc78aa15ce783fcc70c181c7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.162 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking allocator-api2 v0.2.20 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking foldhash v0.1.3 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Checking litemap v0.7.3 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling unicase v2.8.0 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tokio v1.41.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling hashbrown v0.15.1 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling rustix v0.38.40 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.4 [INFO] [stderr] Checking yoke v0.7.4 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking url v2.5.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling erasable v1.2.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling owo-colors v4.1.0 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Checking h2 v0.4.6 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Compiling pin-project-internal v1.1.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling include_dir_macros v0.7.4 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking winnow v0.6.20 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking hyper v0.14.31 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking ipnet v2.10.1 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking pin-project v1.1.7 [INFO] [stderr] Compiling include_dir v0.7.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking rc-box v1.2.0 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Compiling sqlx-sqlite v0.8.2 [INFO] [stderr] Checking hyper v1.5.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking uuid v1.11.0 [INFO] [stderr] Checking fern v0.7.0 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Compiling thiserror v2.0.3 [INFO] [stderr] Checking http-range-header v0.4.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking takecell v0.1.1 [INFO] [stderr] Checking tower-http v0.6.1 [INFO] [stderr] Checking logger v0.1.1 (https://github.com/P40b0s/logger.git?branch=main#155c99ed) [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Compiling teloxide-macros v0.8.0 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling aquamarine v0.5.0 [INFO] [stderr] Checking teloxide-core v0.10.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking dptree v0.3.0 [INFO] [stderr] Compiling thiserror-impl v2.0.3 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking utilites v0.1.0 (https://github.com/P40b0s/help_utilites.git#c737c16c) [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Checking sqlx v0.8.2 [INFO] [stderr] Checking teloxide v0.13.0 [INFO] [stderr] Checking warning_tg_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `api_key` [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod api_key; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `api_key`, create file "src/api_key.rs" or "src/api_key/mod.rs" [INFO] [stdout] = note: if there is a `mod api_key` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `api_key` [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod api_key; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `api_key`, create file "src/api_key.rs" or "src/api_key/mod.rs" [INFO] [stdout] = note: if there is a `mod api_key` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `fmt::format` [INFO] [stdout] --> src/users.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Cow, collections::HashMap, fmt::format}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/app_state.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/app_state.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GroupRepository`, `Group`, `IGroupRepository`, `IUserRepository`, `UserRepository`, `keys::Keys`, and `new_connection` [INFO] [stdout] --> src/app_state.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | ...{db::{new_connection, GroupRepository, IGroupRepository, IUserRepository, Repository, UserRepository}, keys::Keys, users::{Group}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRow`, `Row`, and `sqlite::SqliteRow` [INFO] [stdout] --> src/db/user_repository.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{sqlite::SqliteRow, FromRow, Row, SqlitePool}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utilites::Date` [INFO] [stdout] --> src/db/user_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use utilites::Date; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> src/db/group_repository.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any`, `Database`, `Decode`, `Encode`, `encode::IsNull`, and `error::BoxDynError` [INFO] [stdout] --> src/db/group_repository.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{encode::IsNull, error::BoxDynError, sqlite::SqliteRow, Any, Database, Decode, Encode, FromRow, Row, SqlitePool, Value}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Status` [INFO] [stdout] --> src/db/group_repository.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::users::{Group, GroupSettings, Status, User}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IUserRepository` [INFO] [stdout] --> src/main.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use db::{IGroupRepository, IUserRepository}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BotCommand` and `CommandDescription` [INFO] [stdout] --> src/main.rs:14:70 [INFO] [stdout] | [INFO] [stdout] 14 | ..., types::{BotCommand, MessageId, ParseMode, ReactionType, Recipient, True}, utils::command::{BotCommands, CommandDescription}, Request... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Group` [INFO] [stdout] --> src/main.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use users::{Status, Group}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `fmt::format` [INFO] [stdout] --> src/users.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Cow, collections::HashMap, fmt::format}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/app_state.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/app_state.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GroupRepository`, `Group`, `IGroupRepository`, `IUserRepository`, `UserRepository`, `keys::Keys`, and `new_connection` [INFO] [stdout] --> src/app_state.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | ...{db::{new_connection, GroupRepository, IGroupRepository, IUserRepository, Repository, UserRepository}, keys::Keys, users::{Group}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utilites::Date` [INFO] [stdout] --> src/keys.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | use utilites::Date; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRow`, `Row`, and `sqlite::SqliteRow` [INFO] [stdout] --> src/db/user_repository.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{sqlite::SqliteRow, FromRow, Row, SqlitePool}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utilites::Date` [INFO] [stdout] --> src/db/user_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use utilites::Date; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> src/db/group_repository.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any`, `Database`, `Decode`, `Encode`, `encode::IsNull`, and `error::BoxDynError` [INFO] [stdout] --> src/db/group_repository.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{encode::IsNull, error::BoxDynError, sqlite::SqliteRow, Any, Database, Decode, Encode, FromRow, Row, SqlitePool, Value}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Status` [INFO] [stdout] --> src/db/group_repository.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::users::{Group, GroupSettings, Status, User}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/db/group_repository.rs:384:9 [INFO] [stdout] | [INFO] [stdout] 384 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IUserRepository` [INFO] [stdout] --> src/main.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use db::{IGroupRepository, IUserRepository}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BotCommand` and `CommandDescription` [INFO] [stdout] --> src/main.rs:14:70 [INFO] [stdout] | [INFO] [stdout] 14 | ..., types::{BotCommand, MessageId, ParseMode, ReactionType, Recipient, True}, utils::command::{BotCommands, CommandDescription}, Request... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Group` [INFO] [stdout] --> src/main.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use users::{Status, Group}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `date` [INFO] [stdout] --> src/main.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | let date = date.add_minutes(3*60); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_date` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `date` [INFO] [stdout] --> src/main.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | let date = date.add_minutes(3*60); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_date` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/db/group_repository.rs:2:124 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{encode::IsNull, error::BoxDynError, sqlite::SqliteRow, Any, Database, Decode, Encode, FromRow, Row, SqlitePool, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stderr] error: could not compile `warning_tg_bot` (bin "warning_tg_bot") due to 1 previous error; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/db/group_repository.rs:2:124 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{encode::IsNull, error::BoxDynError, sqlite::SqliteRow, Any, Database, Decode, Encode, FromRow, Row, SqlitePool, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_d` [INFO] [stdout] --> src/users.rs:306:17 [INFO] [stdout] | [INFO] [stdout] 306 | let mut current_d = rng.gen_range(0..=1); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/users.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | let mut current_d = rng.gen_range(0..=1); [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: unused variable: `p` [INFO] [stdout] --> src/users.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | let p = split_orders_by_total_sum_2(1000, 456547894.0); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_sum` [INFO] [stdout] --> src/users.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 529 | let current_sum: i32 = prices.iter().sum(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_sum` [INFO] [stdout] --> src/users.rs:569:17 [INFO] [stdout] | [INFO] [stdout] 569 | let current_sum: f64 = totals.iter().sum(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stderr] error: could not compile `warning_tg_bot` (bin "warning_tg_bot" test) due to 1 previous error; 21 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e1937324eb7612a63c1c73a121fcc653d5e641a5bc78aa15ce783fcc70c181c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1937324eb7612a63c1c73a121fcc653d5e641a5bc78aa15ce783fcc70c181c7", kill_on_drop: false }` [INFO] [stdout] e1937324eb7612a63c1c73a121fcc653d5e641a5bc78aa15ce783fcc70c181c7