[INFO] cloning repository https://github.com/rewin123/wordreminder [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rewin123/wordreminder" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frewin123%2Fwordreminder", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frewin123%2Fwordreminder'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ba10315c6fc8b9a01abd0f750532032e8f7c9ce4 [INFO] testing rewin123/wordreminder against 1.84.0 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frewin123%2Fwordreminder" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rewin123/wordreminder on toolchain 1.84.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.84.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rewin123/wordreminder [INFO] finished tweaking git repo https://github.com/rewin123/wordreminder [INFO] tweaked toml for git repo https://github.com/rewin123/wordreminder written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/rewin123/wordreminder 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" "+1.84.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded once_cell v1.13.1 [INFO] [stderr] Downloaded tower-layer v0.3.1 [INFO] [stderr] Downloaded futures-sink v0.3.23 [INFO] [stderr] Downloaded futures-task v0.3.23 [INFO] [stderr] Downloaded futures-util v0.3.23 [INFO] [stderr] Downloaded tower-http v0.3.4 [INFO] [stderr] Downloaded erasable v1.2.1 [INFO] [stderr] Downloaded never v0.1.0 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.32 [INFO] [stderr] Downloaded uuid v1.1.2 [INFO] [stderr] Downloaded futures-channel v0.3.23 [INFO] [stderr] Downloaded axum-core v0.2.7 [INFO] [stderr] Downloaded dptree v0.3.0 [INFO] [stderr] Downloaded futures v0.3.23 [INFO] [stderr] Downloaded distance v0.4.0 [INFO] [stderr] Downloaded futures-io v0.3.23 [INFO] [stderr] Downloaded futures-macro v0.3.23 [INFO] [stderr] Downloaded time v0.3.13 [INFO] [stderr] Downloaded simplelog v0.12.0 [INFO] [stderr] Downloaded aquamarine v0.1.12 [INFO] [stderr] Downloaded matchit v0.5.0 [INFO] [stderr] Downloaded axum v0.5.15 [INFO] [stderr] Downloaded dtoa v0.4.8 [INFO] [stderr] Downloaded redis v0.21.5 [INFO] [stderr] Downloaded dotenvy v0.15.1 [INFO] [stderr] Downloaded openssl v0.10.41 [INFO] [stderr] Downloaded paste v1.0.8 [INFO] [stderr] Downloaded futures-executor v0.3.23 [INFO] [stderr] Downloaded openssl-sys v0.9.75 [INFO] [stderr] Downloaded sync_wrapper v0.1.1 [INFO] [stderr] Downloaded futures-core v0.3.23 [INFO] [stderr] Downloaded tokio v1.20.1 [INFO] [stderr] Downloaded rc-box v1.2.0 [INFO] [stderr] Downloaded takecell v0.1.1 [INFO] [stderr] Downloaded vecrem v0.1.0 [INFO] [stderr] Downloaded libsqlite3-sys v0.24.2 [INFO] [stderr] Downloaded teloxide-macros v0.6.3 [INFO] [stderr] Downloaded teloxide-core v0.7.0 [INFO] [stderr] Downloaded teloxide v0.10.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 75768ac0af1779bbf7047449852d3282b730b101dfddf4db7bc5eab176e3ab5a [INFO] running `Command { std: "docker" "start" "-a" "75768ac0af1779bbf7047449852d3282b730b101dfddf4db7bc5eab176e3ab5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75768ac0af1779bbf7047449852d3282b730b101dfddf4db7bc5eab176e3ab5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75768ac0af1779bbf7047449852d3282b730b101dfddf4db7bc5eab176e3ab5a", kill_on_drop: false }` [INFO] [stdout] 75768ac0af1779bbf7047449852d3282b730b101dfddf4db7bc5eab176e3ab5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb4c57225f8a4c7925e593593043a6c8500cb7d06cd80753356b0d1b6bb553e0 [INFO] running `Command { std: "docker" "start" "-a" "bb4c57225f8a4c7925e593593043a6c8500cb7d06cd80753356b0d1b6bb553e0", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling once_cell v1.13.1 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-core v0.3.23 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling bytes v1.2.1 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling futures-task v0.3.23 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling futures-sink v0.3.23 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling futures-channel v0.3.23 [INFO] [stderr] Compiling itoa v1.0.3 [INFO] [stderr] Compiling futures-util v0.3.23 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling futures-io v0.3.23 [INFO] [stderr] Compiling serde_derive v1.0.143 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling serde v1.0.143 [INFO] [stderr] Compiling tracing-core v0.1.29 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling tracing v0.1.36 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling unicode-normalization v0.1.21 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling spin v0.9.4 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling crossbeam-queue v0.3.6 [INFO] [stderr] Compiling rustls v0.20.6 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling libsqlite3-sys v0.24.2 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling serde_json v1.0.83 [INFO] [stderr] Compiling ryu v1.0.11 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling atoi v1.0.0 [INFO] [stderr] Compiling dotenvy v0.15.1 [INFO] [stderr] Compiling futures-intrusive v0.4.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling erasable v1.2.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling paste v1.0.8 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling hashlink v0.8.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tower-layer v0.3.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rustls-pemfile v1.0.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling http-range-header v0.3.0 [INFO] [stderr] Compiling sqlformat v0.1.8 [INFO] [stderr] Compiling ipnet v2.5.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling chrono v0.4.22 [INFO] [stderr] Compiling rc-box v1.2.0 [INFO] [stderr] Compiling uuid v1.1.2 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling matchit v0.5.0 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling takecell v0.1.1 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling never v0.1.0 [INFO] [stderr] Compiling futures-executor v0.3.23 [INFO] [stderr] Compiling vecrem v0.1.0 [INFO] [stderr] Compiling half v1.8.2 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling sync_wrapper v0.1.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling distance v0.4.0 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling webpki-roots v0.22.4 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling futures-macro v0.3.23 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling time v0.3.13 [INFO] [stderr] Compiling tokio-stream v0.1.9 [INFO] [stderr] Compiling aquamarine v0.1.12 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling teloxide-macros v0.6.3 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling simplelog v0.12.0 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling thiserror v1.0.32 [INFO] [stderr] Compiling axum-core v0.2.7 [INFO] [stderr] Compiling futures v0.3.23 [INFO] [stderr] Compiling dptree v0.3.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling sqlx-rt v0.6.1 [INFO] [stderr] Compiling tokio-util v0.7.3 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-util v0.6.10 [INFO] [stderr] Compiling tower-http v0.3.4 [INFO] [stderr] Compiling h2 v0.3.14 [INFO] [stderr] Compiling combine v4.6.6 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling ron v0.8.0 [INFO] [stderr] Compiling sqlx-core v0.6.1 [INFO] [stderr] Compiling sqlx-macros v0.6.1 [INFO] [stderr] Compiling redis v0.21.5 [INFO] [stderr] Compiling hyper v0.14.20 [INFO] [stderr] Compiling sqlx v0.6.1 [INFO] [stderr] Compiling hyper-rustls v0.23.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling axum v0.5.15 [INFO] [stderr] Compiling reqwest v0.11.11 [INFO] [stderr] Compiling teloxide-core v0.7.0 [INFO] [stderr] Compiling teloxide v0.10.1 [INFO] [stderr] Compiling wordreminder v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ron::ser` [INFO] [stdout] --> src/bot_functions.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ron::ser; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InlineQueryResultArticle`, `InputMessageContentText`, `InputMessageContent`, and `self` [INFO] [stdout] --> src/bot_functions.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | utils::command::{BotCommands, self}, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | InlineKeyboardButton, InlineKeyboardMarkup, InlineQueryResultArticle, InputMessageContent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | InputMessageContentText, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::*` [INFO] [stdout] --> src/bot_functions.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bot_functions.rs:127:33 [INFO] [stdout] | [INFO] [stdout] 127 | ... let mut msg = format!("Тест закончился!\ [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/bot_functions.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | ... let mut msg = format!("{} из {}.\n Веротность угадать ответ: {}%\n Выбери перевод слова: {} \n... [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/user.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use teloxide::{prelude::*}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/word.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | for idx in 0..count { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/user.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | for i in 0..dur { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `answers` is never read [INFO] [stdout] --> src/bot_functions.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | let mut answers = vec![]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sigmoid` is never used [INFO] [stdout] --> src/word.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn sigmoid(val : f32) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bot_functions.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | Del(String), [INFO] [stdout] | --- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 264 | Del(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PlayerELO` should have an upper case name [INFO] [stdout] --> src/word.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const PlayerELO : f32 = 1000.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `PLAYER_ELO` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EloK` should have an upper case name [INFO] [stdout] --> src/word.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const EloK : f32 = 128.0; [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `ELO_K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `P` should have a snake case name [INFO] [stdout] --> src/word.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn P(&self) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/userdb.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | std::fs::create_dir(self.dir_path.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = std::fs::create_dir(self.dir_path.as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | bot.send_message(message.chat.id, "Перевод слова:").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 29 | let _ = bot.send_message(message.chat.id, "Перевод слова:").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | bot.send_message(message.chat.id, "Отлично, слово добавлено в словарик").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = bot.send_message(message.chat.id, "Отлично, слово добавлено в словарик").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | / bot.send_message( [INFO] [stdout] 41 | | message.chat.id, [INFO] [stdout] 42 | | format!("Отлично, слово {}:{} заменено на {}:{}", [INFO] [stdout] 43 | | user.words[idx].ru_name, [INFO] [stdout] 44 | | user.words[idx].eng_name, [INFO] [stdout] 45 | | word.ru_name, [INFO] [stdout] 46 | | word.eng_name)).await; [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = bot.send_message( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | ... bot.send_message(q.message.clone().unwrap().chat.id, msg).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 133 | let _ = bot.send_message(q.message.clone().unwrap().chat.id, msg).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | / bot.send_message( [INFO] [stdout] 206 | | message.chat.id, [INFO] [stdout] 207 | | msg [INFO] [stdout] 208 | | ).reply_markup(keyboard) [INFO] [stdout] 209 | | .await; [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 205 | let _ = bot.send_message( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 227 | bot.send_message(message.chat.id, "Русский перевод слова:").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 227 | let _ = bot.send_message(message.chat.id, "Русский перевод слова:").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teloxide::prelude::*` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use teloxide::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::*` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | / TermLogger::init( [INFO] [stdout] 10 | | LevelFilter::Info, [INFO] [stdout] 11 | | Config::default(), [INFO] [stdout] 12 | | TerminalMode::Mixed, [INFO] [stdout] 13 | | ColorChoice::Auto [INFO] [stdout] 14 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 9 | let _ = TermLogger::init( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 05s [INFO] running `Command { std: "docker" "inspect" "bb4c57225f8a4c7925e593593043a6c8500cb7d06cd80753356b0d1b6bb553e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb4c57225f8a4c7925e593593043a6c8500cb7d06cd80753356b0d1b6bb553e0", kill_on_drop: false }` [INFO] [stdout] bb4c57225f8a4c7925e593593043a6c8500cb7d06cd80753356b0d1b6bb553e0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a689011f4dc0c133519aceba5df8da7027bf21ff6780d2ac623b79b85eac357 [INFO] running `Command { std: "docker" "start" "-a" "9a689011f4dc0c133519aceba5df8da7027bf21ff6780d2ac623b79b85eac357", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `ron::ser` [INFO] [stdout] --> src/bot_functions.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ron::ser; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InlineQueryResultArticle`, `InputMessageContentText`, `InputMessageContent`, and `self` [INFO] [stdout] --> src/bot_functions.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | utils::command::{BotCommands, self}, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | InlineKeyboardButton, InlineKeyboardMarkup, InlineQueryResultArticle, InputMessageContent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | InputMessageContentText, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::*` [INFO] [stdout] --> src/bot_functions.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bot_functions.rs:127:33 [INFO] [stdout] | [INFO] [stdout] 127 | ... let mut msg = format!("Тест закончился!\ [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/bot_functions.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | ... let mut msg = format!("{} из {}.\n Веротность угадать ответ: {}%\n Выбери перевод слова: {} \n... [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/user.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use teloxide::{prelude::*}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/word.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | for idx in 0..count { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/user.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | for i in 0..dur { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wordreminder v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `answers` is never read [INFO] [stdout] --> src/bot_functions.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | let mut answers = vec![]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sigmoid` is never used [INFO] [stdout] --> src/word.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn sigmoid(val : f32) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bot_functions.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | Del(String), [INFO] [stdout] | --- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 264 | Del(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PlayerELO` should have an upper case name [INFO] [stdout] --> src/word.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const PlayerELO : f32 = 1000.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `PLAYER_ELO` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EloK` should have an upper case name [INFO] [stdout] --> src/word.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const EloK : f32 = 128.0; [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `ELO_K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `P` should have a snake case name [INFO] [stdout] --> src/word.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn P(&self) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/userdb.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | std::fs::create_dir(self.dir_path.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = std::fs::create_dir(self.dir_path.as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | bot.send_message(message.chat.id, "Перевод слова:").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 29 | let _ = bot.send_message(message.chat.id, "Перевод слова:").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | bot.send_message(message.chat.id, "Отлично, слово добавлено в словарик").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = bot.send_message(message.chat.id, "Отлично, слово добавлено в словарик").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | / bot.send_message( [INFO] [stdout] 41 | | message.chat.id, [INFO] [stdout] 42 | | format!("Отлично, слово {}:{} заменено на {}:{}", [INFO] [stdout] 43 | | user.words[idx].ru_name, [INFO] [stdout] 44 | | user.words[idx].eng_name, [INFO] [stdout] 45 | | word.ru_name, [INFO] [stdout] 46 | | word.eng_name)).await; [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = bot.send_message( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | ... bot.send_message(q.message.clone().unwrap().chat.id, msg).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 133 | let _ = bot.send_message(q.message.clone().unwrap().chat.id, msg).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | / bot.send_message( [INFO] [stdout] 206 | | message.chat.id, [INFO] [stdout] 207 | | msg [INFO] [stdout] 208 | | ).reply_markup(keyboard) [INFO] [stdout] 209 | | .await; [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 205 | let _ = bot.send_message( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 227 | bot.send_message(message.chat.id, "Русский перевод слова:").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 227 | let _ = bot.send_message(message.chat.id, "Русский перевод слова:").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teloxide::prelude::*` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use teloxide::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::*` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ron::ser` [INFO] [stdout] --> src/bot_functions.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ron::ser; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InlineQueryResultArticle`, `InputMessageContentText`, `InputMessageContent`, and `self` [INFO] [stdout] --> src/bot_functions.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | utils::command::{BotCommands, self}, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | InlineKeyboardButton, InlineKeyboardMarkup, InlineQueryResultArticle, InputMessageContent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | InputMessageContentText, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::*` [INFO] [stdout] --> src/bot_functions.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | / TermLogger::init( [INFO] [stdout] 10 | | LevelFilter::Info, [INFO] [stdout] 11 | | Config::default(), [INFO] [stdout] 12 | | TerminalMode::Mixed, [INFO] [stdout] 13 | | ColorChoice::Auto [INFO] [stdout] 14 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 9 | let _ = TermLogger::init( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bot_functions.rs:127:33 [INFO] [stdout] | [INFO] [stdout] 127 | ... let mut msg = format!("Тест закончился!\ [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/bot_functions.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | ... let mut msg = format!("{} из {}.\n Веротность угадать ответ: {}%\n Выбери перевод слова: {} \n... [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/user.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use teloxide::{prelude::*}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/word.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | for idx in 0..count { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/user.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | for i in 0..dur { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `answers` is never read [INFO] [stdout] --> src/bot_functions.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | let mut answers = vec![]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sigmoid` is never used [INFO] [stdout] --> src/word.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn sigmoid(val : f32) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bot_functions.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | Del(String), [INFO] [stdout] | --- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 264 | Del(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PlayerELO` should have an upper case name [INFO] [stdout] --> src/word.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const PlayerELO : f32 = 1000.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `PLAYER_ELO` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EloK` should have an upper case name [INFO] [stdout] --> src/word.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const EloK : f32 = 128.0; [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `ELO_K` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `P` should have a snake case name [INFO] [stdout] --> src/word.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn P(&self) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/userdb.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | std::fs::create_dir(self.dir_path.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = std::fs::create_dir(self.dir_path.as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | bot.send_message(message.chat.id, "Перевод слова:").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 29 | let _ = bot.send_message(message.chat.id, "Перевод слова:").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | bot.send_message(message.chat.id, "Отлично, слово добавлено в словарик").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = bot.send_message(message.chat.id, "Отлично, слово добавлено в словарик").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | / bot.send_message( [INFO] [stdout] 41 | | message.chat.id, [INFO] [stdout] 42 | | format!("Отлично, слово {}:{} заменено на {}:{}", [INFO] [stdout] 43 | | user.words[idx].ru_name, [INFO] [stdout] 44 | | user.words[idx].eng_name, [INFO] [stdout] 45 | | word.ru_name, [INFO] [stdout] 46 | | word.eng_name)).await; [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = bot.send_message( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | ... bot.send_message(q.message.clone().unwrap().chat.id, msg).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 133 | let _ = bot.send_message(q.message.clone().unwrap().chat.id, msg).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | / bot.send_message( [INFO] [stdout] 206 | | message.chat.id, [INFO] [stdout] 207 | | msg [INFO] [stdout] 208 | | ).reply_markup(keyboard) [INFO] [stdout] 209 | | .await; [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 205 | let _ = bot.send_message( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bot_functions.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 227 | bot.send_message(message.chat.id, "Русский перевод слова:").await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 227 | let _ = bot.send_message(message.chat.id, "Русский перевод слова:").await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.76s [INFO] running `Command { std: "docker" "inspect" "9a689011f4dc0c133519aceba5df8da7027bf21ff6780d2ac623b79b85eac357", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a689011f4dc0c133519aceba5df8da7027bf21ff6780d2ac623b79b85eac357", kill_on_drop: false }` [INFO] [stdout] 9a689011f4dc0c133519aceba5df8da7027bf21ff6780d2ac623b79b85eac357 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1d88e3b1a362497800448793644c1671407c182909f6d8b4e44606f3adb8da47 [INFO] running `Command { std: "docker" "start" "-a" "1d88e3b1a362497800448793644c1671407c182909f6d8b4e44606f3adb8da47", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `ron::ser` [INFO] [stderr] --> src/bot_functions.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use ron::ser; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `InlineQueryResultArticle`, `InputMessageContentText`, `InputMessageContent`, and `self` [INFO] [stderr] --> src/bot_functions.rs:9:35 [INFO] [stderr] | [INFO] [stderr] 9 | utils::command::{BotCommands, self}, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 12 | InlineKeyboardButton, InlineKeyboardMarkup, InlineQueryResultArticle, InputMessageContent, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 13 | InputMessageContentText, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::*` [INFO] [stderr] --> src/bot_functions.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use tokio::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bot_functions.rs:127:33 [INFO] [stderr] | [INFO] [stderr] 127 | ... let mut msg = format!("Тест закончился!\ [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bot_functions.rs:197:13 [INFO] [stderr] | [INFO] [stderr] 197 | ... let mut msg = format!("{} из {}.\n Веротность угадать ответ: {}%\n Выбери перевод слова: {} \n... [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused import: `prelude` [INFO] [stderr] --> src/user.rs:2:16 [INFO] [stderr] | [INFO] [stderr] 2 | use teloxide::{prelude::*}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `idx` [INFO] [stderr] --> src/word.rs:69:13 [INFO] [stderr] | [INFO] [stderr] 69 | for idx in 0..count { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/user.rs:80:13 [INFO] [stderr] | [INFO] [stderr] 80 | for i in 0..dur { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `answers` is never read [INFO] [stderr] --> src/bot_functions.rs:69:17 [INFO] [stderr] | [INFO] [stderr] 69 | let mut answers = vec![]; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `sigmoid` is never used [INFO] [stderr] --> src/word.rs:28:4 [INFO] [stderr] | [INFO] [stderr] 28 | fn sigmoid(val : f32) -> f32 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/bot_functions.rs:264:9 [INFO] [stderr] | [INFO] [stderr] 264 | Del(String), [INFO] [stderr] | --- ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Command` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 264 | Del(()), [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] warning: constant `PlayerELO` should have an upper case name [INFO] [stderr] --> src/word.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | const PlayerELO : f32 = 1000.0; [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper case: `PLAYER_ELO` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `EloK` should have an upper case name [INFO] [stderr] --> src/word.rs:7:7 [INFO] [stderr] | [INFO] [stderr] 7 | const EloK : f32 = 128.0; [INFO] [stderr] | ^^^^ help: convert the identifier to upper case: `ELO_K` [INFO] [stderr] [INFO] [stderr] warning: method `P` should have a snake case name [INFO] [stderr] --> src/word.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn P(&self) -> f32 { [INFO] [stderr] | ^ help: convert the identifier to snake case: `p` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/userdb.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | std::fs::create_dir(self.dir_path.as_str()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 22 | let _ = std::fs::create_dir(self.dir_path.as_str()); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bot_functions.rs:29:13 [INFO] [stderr] | [INFO] [stderr] 29 | bot.send_message(message.chat.id, "Перевод слова:").await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 29 | let _ = bot.send_message(message.chat.id, "Перевод слова:").await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bot_functions.rs:37:21 [INFO] [stderr] | [INFO] [stderr] 37 | bot.send_message(message.chat.id, "Отлично, слово добавлено в словарик").await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 37 | let _ = bot.send_message(message.chat.id, "Отлично, слово добавлено в словарик").await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bot_functions.rs:40:21 [INFO] [stderr] | [INFO] [stderr] 40 | / bot.send_message( [INFO] [stderr] 41 | | message.chat.id, [INFO] [stderr] 42 | | format!("Отлично, слово {}:{} заменено на {}:{}", [INFO] [stderr] 43 | | user.words[idx].ru_name, [INFO] [stderr] 44 | | user.words[idx].eng_name, [INFO] [stderr] 45 | | word.ru_name, [INFO] [stderr] 46 | | word.eng_name)).await; [INFO] [stderr] | |_________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 40 | let _ = bot.send_message( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bot_functions.rs:133:29 [INFO] [stderr] | [INFO] [stderr] 133 | ... bot.send_message(q.message.clone().unwrap().chat.id, msg).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 133 | let _ = bot.send_message(q.message.clone().unwrap().chat.id, msg).await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bot_functions.rs:205:9 [INFO] [stderr] | [INFO] [stderr] 205 | / bot.send_message( [INFO] [stderr] 206 | | message.chat.id, [INFO] [stderr] 207 | | msg [INFO] [stderr] 208 | | ).reply_markup(keyboard) [INFO] [stderr] 209 | | .await; [INFO] [stderr] | |__________________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 205 | let _ = bot.send_message( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bot_functions.rs:227:5 [INFO] [stderr] | [INFO] [stderr] 227 | bot.send_message(message.chat.id, "Русский перевод слова:").await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 227 | let _ = bot.send_message(message.chat.id, "Русский перевод слова:").await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `wordreminder` (lib) generated 21 warnings (run `cargo fix --lib -p wordreminder` to apply 5 suggestions) [INFO] [stderr] warning: `wordreminder` (lib test) generated 21 warnings (21 duplicates) [INFO] [stderr] warning: unused import: `teloxide::prelude::*` [INFO] [stderr] --> src/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use teloxide::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::*` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use tokio::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | / TermLogger::init( [INFO] [stderr] 10 | | LevelFilter::Info, [INFO] [stderr] 11 | | Config::default(), [INFO] [stderr] 12 | | TerminalMode::Mixed, [INFO] [stderr] 13 | | ColorChoice::Auto [INFO] [stderr] 14 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 9 | let _ = TermLogger::init( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `wordreminder` (bin "wordreminder" test) generated 3 warnings (run `cargo fix --bin "wordreminder" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wordreminder-05494157ade04c31) [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/wordreminder-38f6bf1e4ed3e372) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests wordreminder [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1d88e3b1a362497800448793644c1671407c182909f6d8b4e44606f3adb8da47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d88e3b1a362497800448793644c1671407c182909f6d8b4e44606f3adb8da47", kill_on_drop: false }` [INFO] [stdout] 1d88e3b1a362497800448793644c1671407c182909f6d8b4e44606f3adb8da47