[INFO] cloning repository https://github.com/raebaexxx/geektg_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/raebaexxx/geektg_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraebaexxx%2Fgeektg_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraebaexxx%2Fgeektg_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a9f6182b7f3c52a3fcd2459f07d498e2fdd68545 [INFO] checking raebaexxx/geektg_rust against master#9e293ae9f8abecb0be5105787d181518c9012a19 for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraebaexxx%2Fgeektg_rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/raebaexxx/geektg_rust [INFO] finished tweaking git repo https://github.com/raebaexxx/geektg_rust [INFO] tweaked toml for git repo https://github.com/raebaexxx/geektg_rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/raebaexxx/geektg_rust on toolchain 9e293ae9f8abecb0be5105787d181518c9012a19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/raebaexxx/geektg_rust 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" "+9e293ae9f8abecb0be5105787d181518c9012a19" "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 wasm-bindgen-macro-support v0.2.121 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.121 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.121 [INFO] [stderr] Downloaded wasm-bindgen v0.2.121 [INFO] [stderr] Downloaded rand_core v0.10.1 [INFO] [stderr] Downloaded uuid v1.23.1 [INFO] [stderr] Downloaded js-sys v0.3.98 [INFO] [stderr] Downloaded tower-http v0.6.10 [INFO] [stderr] Downloaded typenum v1.20.0 [INFO] [stderr] Downloaded grammers-session v0.9.0 [INFO] [stderr] Downloaded libsql v0.9.30 [INFO] [stderr] Downloaded utf8-width v0.1.8 [INFO] [stderr] Downloaded grammers-tl-types v0.9.0 [INFO] [stderr] Downloaded cc v1.2.62 [INFO] [stderr] Downloaded grammers-tl-parser v1.2.1 [INFO] [stderr] Downloaded grammers-tl-gen v0.9.0 [INFO] [stderr] Downloaded libsql-sys v0.9.30 [INFO] [stderr] Downloaded html-escape v0.2.13 [INFO] [stderr] Downloaded bindgen v0.66.1 [INFO] [stderr] Downloaded objc2-user-notifications v0.3.2 [INFO] [stderr] Downloaded grammers-mtsender v0.9.0 [INFO] [stderr] Downloaded block2 v0.6.2 [INFO] [stderr] Downloaded os_info v3.14.0 [INFO] [stderr] Downloaded objc2-quartz-core v0.3.2 [INFO] [stderr] Downloaded locate-locale v0.2.0 [INFO] [stderr] Downloaded grammers-crypto v0.9.0 [INFO] [stderr] Downloaded ctr v0.9.2 [INFO] [stderr] Downloaded dispatch2 v0.3.1 [INFO] [stderr] Downloaded objc2-core-location v0.3.2 [INFO] [stderr] Downloaded grammers-mtproto v0.9.0 [INFO] [stderr] Downloaded pbkdf2 v0.12.2 [INFO] [stderr] Downloaded md5 v0.8.0 [INFO] [stderr] Downloaded objc2-core-text v0.3.2 [INFO] [stderr] Downloaded objc2-core-data v0.3.2 [INFO] [stderr] Downloaded objc2-cloud-kit v0.3.2 [INFO] [stderr] Downloaded glass_pumpkin v1.10.0 [INFO] [stderr] Downloaded objc2-core-image v0.3.2 [INFO] [stderr] Downloaded grammers-client v0.9.0 [INFO] [stderr] Downloaded objc2 v0.6.4 [INFO] [stderr] Downloaded axum v0.8.9 [INFO] [stderr] Downloaded axum-macros v0.5.1 [INFO] [stderr] Downloaded objc2-ui-kit v0.3.2 [INFO] [stderr] Downloaded libsql-ffi v0.9.30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 062bef21376e922ea1318a9ef1d73bd29d45c531f5429a78dd2e9b7ba0573742 [INFO] running `Command { std: "docker" "start" "-a" "062bef21376e922ea1318a9ef1d73bd29d45c531f5429a78dd2e9b7ba0573742", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "062bef21376e922ea1318a9ef1d73bd29d45c531f5429a78dd2e9b7ba0573742", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "062bef21376e922ea1318a9ef1d73bd29d45c531f5429a78dd2e9b7ba0573742", kill_on_drop: false }` [INFO] [stdout] 062bef21376e922ea1318a9ef1d73bd29d45c531f5429a78dd2e9b7ba0573742 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a970392cfff551581822fd8e1f147f2555b0d06fa8fc847b464fe0d09912a0eb [INFO] running `Command { std: "docker" "start" "-a" "a970392cfff551581822fd8e1f147f2555b0d06fa8fc847b464fe0d09912a0eb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Compiling libc v0.2.186 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking pin-project-lite v0.2.17 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking futures-core v0.3.32 [INFO] [stderr] Checking once_cell v1.21.4 [INFO] [stderr] Checking typenum v1.20.0 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Checking futures-sink v0.3.32 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Compiling bitflags v2.11.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking itoa v1.0.18 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling libloading v0.8.9 [INFO] [stderr] Checking futures-io v0.3.32 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling bindgen v0.66.1 [INFO] [stderr] Checking futures-task v0.3.32 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling cc v1.2.62 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling grammers-tl-parser v1.2.1 [INFO] [stderr] Checking rand_core v0.10.1 [INFO] [stderr] Checking writeable v0.6.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking litemap v0.8.2 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling grammers-tl-gen v0.9.0 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling icu_normalizer_data v2.2.0 [INFO] [stderr] Compiling icu_properties_data v2.2.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking simd-adler32 v0.3.9 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Compiling grammers-tl-types v0.9.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Compiling cmake v0.1.58 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Checking mio v1.2.0 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle-parse v1.0.0 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking anstyle-query v1.1.5 [INFO] [stderr] Checking anstyle v1.0.14 [INFO] [stderr] Checking is_terminal_polyfill v1.70.2 [INFO] [stderr] Checking colorchoice v1.0.5 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking anstream v1.0.0 [INFO] [stderr] Checking os_info v3.14.0 [INFO] [stderr] Checking glass_pumpkin v1.10.0 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Checking ryu v1.0.23 [INFO] [stderr] Checking grammers-crypto v0.9.0 [INFO] [stderr] Checking iana-time-zone v0.1.65 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking locate-locale v0.2.0 [INFO] [stderr] Checking clap_lex v1.1.0 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Checking linux-raw-sys v0.12.1 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking clap_builder v4.6.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Checking http-range-header v0.4.2 [INFO] [stderr] Checking md5 v0.8.0 [INFO] [stderr] Checking fastrand v2.4.1 [INFO] [stderr] Checking utf8-width v0.1.8 [INFO] [stderr] Checking html-escape v0.2.13 [INFO] [stderr] Checking uuid v1.23.1 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Checking tempfile v3.27.0 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling clap_derive v4.6.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling axum-macros v0.5.1 [INFO] [stderr] Checking rand v0.9.4 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking zerofrom v0.1.8 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking yoke v0.8.2 [INFO] [stderr] Checking clap v4.6.1 [INFO] [stderr] Checking zerovec v0.11.6 [INFO] [stderr] Checking zerotrie v0.2.4 [INFO] [stderr] Checking tinystr v0.8.3 [INFO] [stderr] Checking potential_utf v0.1.5 [INFO] [stderr] Checking icu_locale_core v2.2.0 [INFO] [stderr] Checking icu_collections v2.2.0 [INFO] [stderr] Checking icu_provider v2.2.0 [INFO] [stderr] Checking icu_properties v2.2.0 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking idna_adapter v1.2.2 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking tokio v1.52.3 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Compiling libsql-ffi v0.9.30 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking hyper v1.9.0 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower-http v0.6.10 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking axum v0.8.9 [INFO] [stderr] Checking grammers-mtproto v0.9.0 [INFO] [stderr] Checking libsql-sys v0.9.30 [INFO] [stderr] Checking libsql v0.9.30 [INFO] [stderr] Checking grammers-session v0.9.0 [INFO] [stderr] Checking grammers-mtsender v0.9.0 [INFO] [stderr] Checking grammers-client v0.9.0 [INFO] [stderr] Checking geektg-userbot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/database.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [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: `HashSet` [INFO] [stdout] --> src/dispatcher.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WatcherContext` [INFO] [stdout] --> src/modules/core.rs:4:60 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dispatcher::{CommandContext, CommandDispatcher, WatcherContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WatcherBuilder` [INFO] [stdout] --> src/modules/core.rs:5:74 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::modules::{CommandBuilder, Module, ModuleInfo, ModuleRegistry, WatcherBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/modules/eval.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/eval.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/inline_bot.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::BoxFuture` [INFO] [stdout] --> src/modules/plugins.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::future::BoxFuture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/modules/terminal.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/terminal.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/database.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [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: `HashSet` [INFO] [stdout] --> src/dispatcher.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WatcherContext` [INFO] [stdout] --> src/modules/core.rs:4:60 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dispatcher::{CommandContext, CommandDispatcher, WatcherContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WatcherBuilder` [INFO] [stdout] --> src/modules/core.rs:5:74 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::modules::{CommandBuilder, Module, ModuleInfo, ModuleRegistry, WatcherBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/modules/eval.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/eval.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/inline_bot.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::BoxFuture` [INFO] [stdout] --> src/modules/plugins.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::future::BoxFuture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/modules/terminal.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/terminal.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `removed_watchers` is never read [INFO] [stdout] --> src/dispatcher.rs:211:36 [INFO] [stdout] | [INFO] [stdout] 211 | let mut removed_watchers = 0; [INFO] [stdout] | ^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 247 | removed_watchers = before - watchers.len(); [INFO] [stdout] | ------------------------------------------ `removed_watchers` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `removed_watchers` is never read [INFO] [stdout] --> src/dispatcher.rs:211:36 [INFO] [stdout] | [INFO] [stdout] 211 | let mut removed_watchers = 0; [INFO] [stdout] | ^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 247 | removed_watchers = before - watchers.len(); [INFO] [stdout] | ------------------------------------------ `removed_watchers` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `manager` [INFO] [stdout] --> src/modules/plugins.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | let manager = manager.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `manager` [INFO] [stdout] --> src/modules/plugins.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | let manager = manager.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PluginInfo` is more private than the item `PluginManager::execute_plugin` [INFO] [stdout] --> src/modules/plugins.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 273 | / pub fn execute_plugin( [INFO] [stdout] 274 | | plugin: &PluginInfo, [INFO] [stdout] 275 | | command: &str, [INFO] [stdout] 276 | | args: &[String], [INFO] [stdout] 277 | | ctx: &CommandContext, [INFO] [stdout] 278 | | ) -> Result { [INFO] [stdout] | |_______________________________^ associated function `PluginManager::execute_plugin` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `PluginInfo` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/modules/plugins.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | struct PluginInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAIN_NS` is never used [INFO] [stdout] --> src/security.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const MAIN_NS: &str = "userbot::main"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PluginInfo` is more private than the item `PluginManager::execute_plugin` [INFO] [stdout] --> src/modules/plugins.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 273 | / pub fn execute_plugin( [INFO] [stdout] 274 | | plugin: &PluginInfo, [INFO] [stdout] 275 | | command: &str, [INFO] [stdout] 276 | | args: &[String], [INFO] [stdout] 277 | | ctx: &CommandContext, [INFO] [stdout] 278 | | ) -> Result { [INFO] [stdout] | |_______________________________^ associated function `PluginManager::execute_plugin` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `PluginInfo` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/modules/plugins.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | struct PluginInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAIN_NS` is never used [INFO] [stdout] --> src/security.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const MAIN_NS: &str = "userbot::main"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/database.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [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: `HashSet` [INFO] [stdout] --> src/dispatcher.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WatcherContext` [INFO] [stdout] --> src/modules/core.rs:4:60 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dispatcher::{CommandContext, CommandDispatcher, WatcherContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WatcherBuilder` [INFO] [stdout] --> src/modules/core.rs:5:74 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::modules::{CommandBuilder, Module, ModuleInfo, ModuleRegistry, WatcherBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/modules/eval.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/eval.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/inline_bot.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::BoxFuture` [INFO] [stdout] --> src/modules/plugins.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::future::BoxFuture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/modules/terminal.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/terminal.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/database.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [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: `HashSet` [INFO] [stdout] --> src/dispatcher.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WatcherContext` [INFO] [stdout] --> src/modules/core.rs:4:60 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dispatcher::{CommandContext, CommandDispatcher, WatcherContext}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WatcherBuilder` [INFO] [stdout] --> src/modules/core.rs:5:74 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::modules::{CommandBuilder, Module, ModuleInfo, ModuleRegistry, WatcherBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/modules/eval.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/eval.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/inline_bot.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::BoxFuture` [INFO] [stdout] --> src/modules/plugins.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::future::BoxFuture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/modules/terminal.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandContext` [INFO] [stdout] --> src/modules/terminal.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::dispatcher::{CommandContext, CommandDispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `removed_watchers` is never read [INFO] [stdout] --> src/dispatcher.rs:211:36 [INFO] [stdout] | [INFO] [stdout] 211 | let mut removed_watchers = 0; [INFO] [stdout] | ^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 247 | removed_watchers = before - watchers.len(); [INFO] [stdout] | ------------------------------------------ `removed_watchers` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `removed_watchers` is never read [INFO] [stdout] --> src/dispatcher.rs:211:36 [INFO] [stdout] | [INFO] [stdout] 211 | let mut removed_watchers = 0; [INFO] [stdout] | ^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 247 | removed_watchers = before - watchers.len(); [INFO] [stdout] | ------------------------------------------ `removed_watchers` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `manager` [INFO] [stdout] --> src/modules/plugins.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | let manager = manager.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `manager` [INFO] [stdout] --> src/modules/plugins.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | let manager = manager.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/main.rs:487:63 [INFO] [stdout] | [INFO] [stdout] 487 | Ok(grammers_client::update::Update::CallbackQuery(query)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/main.rs:491:61 [INFO] [stdout] | [INFO] [stdout] 491 | Ok(grammers_client::update::Update::InlineQuery(query)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `send` [INFO] [stdout] --> src/main.rs:495:60 [INFO] [stdout] | [INFO] [stdout] 495 | Ok(grammers_client::update::Update::InlineSend(send)) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw` [INFO] [stdout] --> src/main.rs:499:53 [INFO] [stdout] | [INFO] [stdout] 499 | Ok(grammers_client::update::Update::Raw(raw)) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostname` [INFO] [stdout] --> src/main.rs:274:15 [INFO] [stdout] | [INFO] [stdout] 274 | if let Ok(hostname) = std::net::UdpSocket::bind("0.0.0.0:0") { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PluginInfo` is more private than the item `PluginManager::execute_plugin` [INFO] [stdout] --> src/modules/plugins.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 273 | / pub fn execute_plugin( [INFO] [stdout] 274 | | plugin: &PluginInfo, [INFO] [stdout] 275 | | command: &str, [INFO] [stdout] 276 | | args: &[String], [INFO] [stdout] 277 | | ctx: &CommandContext, [INFO] [stdout] 278 | | ) -> Result { [INFO] [stdout] | |_______________________________^ associated function `PluginManager::execute_plugin` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `PluginInfo` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/modules/plugins.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | struct PluginInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/config.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load`, `save`, `get`, and `set` are never used [INFO] [stdout] --> src/config.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Config { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 116 | pub fn load() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn save(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn get(&self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn set(&mut self, key: &str, value: serde_json::Value) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_phones` is never used [INFO] [stdout] --> src/config.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn get_phones( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_proxy` is never used [INFO] [stdout] --> src/config.rs:229:8 [INFO] [stdout] | [INFO] [stdout] 229 | pub fn get_proxy(args: &Args) -> (Option<(String, u16, String)>, bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `assets_dir`, `counter_path`, and `asset_lock` are never read [INFO] [stdout] --> src/database.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DatabaseBackend { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 14 | db_path: PathBuf, [INFO] [stdout] 15 | assets_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 16 | counter_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 17 | asset_lock: Mutex<()>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `store_asset`, `fetch_asset`, and `next_id` are never used [INFO] [stdout] --> src/database.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl DatabaseBackend { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn store_asset(&self, data: &[u8]) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub async fn fetch_asset(&self, id: i64) -> std::io::Result>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | async fn next_id(&self) -> std::io::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set`, `schedule_save`, `store_asset`, and `fetch_asset` are never used [INFO] [stdout] --> src/database.rs:119:18 [INFO] [stdout] | [INFO] [stdout] 82 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn set(&self, owner: &str, key: &str, value: impl Serialize) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | async fn schedule_save(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub async fn store_asset(&self, data: &[u8]) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub async fn fetch_asset(&self, id: i64) -> std::io::Result>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_reply` is never read [INFO] [stdout] --> src/dispatcher.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct CommandContext { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub is_reply: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommandContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/dispatcher.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WatcherContext { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 32 | pub sender_id: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | pub chat_id: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | pub is_private: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub is_group: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 36 | pub is_channel: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 37 | pub is_out: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 38 | pub message_text: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WatcherContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `doc` are never read [INFO] [stdout] --> src/dispatcher.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct CommandHandler { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 48 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | doc: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `doc` are never used [INFO] [stdout] --> src/dispatcher.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl CommandHandler { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn doc(&self) -> &str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handler` is never read [INFO] [stdout] --> src/dispatcher.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct WatcherHandler { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 91 | handler: WatcherHandlerFn, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `handle` are never used [INFO] [stdout] --> src/dispatcher.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl WatcherHandler { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 96 | pub fn new(module_name: String, handler: WatcherHandlerFn) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn handle(&self, ctx: WatcherContext) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/dispatcher.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 134 | impl CommandDispatcher { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn unregister_command(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn register_alias(&self, module_name: String, alias: String, command: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn register_watcher(&self, module_name: String, handler: WatcherHandlerRef) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn get_module_commands(&self, module_name: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub async fn handle_watcher(&self, ctx: &WatcherContext) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | pub fn get_command_names(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 419 | pub fn get_command_doc(&self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `description` and `version` are never read [INFO] [stdout] --> src/modules/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ModuleInfo { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 18 | pub name: String, [INFO] [stdout] 19 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_modules` and `get_module` are never used [INFO] [stdout] --> src/modules/mod.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 39 | impl ModuleRegistry { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub async fn get_modules(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub async fn get_module(&self, name: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WatcherBuilder` is never constructed [INFO] [stdout] --> src/modules/mod.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct WatcherBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WatcherHandlerFn` is never used [INFO] [stdout] --> src/modules/mod.rs:171:6 [INFO] [stdout] | [INFO] [stdout] 171 | type WatcherHandlerFn = Arc BoxFuture<'static, ()> + Send + Sync>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `handler`, and `build` are never used [INFO] [stdout] --> src/modules/mod.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 173 | impl WatcherBuilder { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 174 | pub fn new(module_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn handler(mut self, f: F) -> Self [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn build(self) -> (String, WatcherHandlerRef) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PUBLIC_PERMISSIONS` is never used [INFO] [stdout] --> src/security.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | pub const PUBLIC_PERMISSIONS: u32 = GROUP_OWNER | GROUP_ADMIN_ANY | GROUP_MEMBER | PM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAIN_NS` is never used [INFO] [stdout] --> src/security.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const MAIN_NS: &str = "userbot::main"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chat_id`, `is_out`, and `message_text` are never read [INFO] [stdout] --> src/security.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct MessageContext { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 149 | pub sender_id: i64, [INFO] [stdout] 150 | pub chat_id: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub is_out: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 157 | pub message_text: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sudo` is never used [INFO] [stdout] --> src/security.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn sudo(func: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `support` is never used [INFO] [stdout] --> src/security.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn support(func: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_owner` is never used [INFO] [stdout] --> src/security.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn group_owner(func: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_admin` is never used [INFO] [stdout] --> src/security.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn group_admin(func: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_member` is never used [INFO] [stdout] --> src/security.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn group_member(func: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pm` is never used [INFO] [stdout] --> src/security.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn pm(func: u32) -> u32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_args_raw` is never used [INFO] [stdout] --> src/utils.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn get_args_raw(message: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand_string` is never used [INFO] [stdout] --> src/utils.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn rand_string(length: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mask_phone` is never used [INFO] [stdout] --> src/utils.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn mask_phone(phone: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `config_path` is never used [INFO] [stdout] --> src/utils.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn config_path() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `api_token_path` is never used [INFO] [stdout] --> src/utils.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn api_token_path() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loaded_modules_dir` is never used [INFO] [stdout] --> src/utils.rs:188:8 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn loaded_modules_dir() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `session_path` is never used [INFO] [stdout] --> src/utils.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn session_path(phone: &str) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_for_code` is never used [INFO] [stdout] --> src/web.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | pub async fn wait_for_code(state: &Arc) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/main.rs:487:63 [INFO] [stdout] | [INFO] [stdout] 487 | Ok(grammers_client::update::Update::CallbackQuery(query)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/main.rs:491:61 [INFO] [stdout] | [INFO] [stdout] 491 | Ok(grammers_client::update::Update::InlineQuery(query)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `send` [INFO] [stdout] --> src/main.rs:495:60 [INFO] [stdout] | [INFO] [stdout] 495 | Ok(grammers_client::update::Update::InlineSend(send)) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw` [INFO] [stdout] --> src/main.rs:499:53 [INFO] [stdout] | [INFO] [stdout] 499 | Ok(grammers_client::update::Update::Raw(raw)) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hostname` [INFO] [stdout] --> src/main.rs:274:15 [INFO] [stdout] | [INFO] [stdout] 274 | if let Ok(hostname) = std::net::UdpSocket::bind("0.0.0.0:0") { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hostname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PluginInfo` is more private than the item `PluginManager::execute_plugin` [INFO] [stdout] --> src/modules/plugins.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 273 | / pub fn execute_plugin( [INFO] [stdout] 274 | | plugin: &PluginInfo, [INFO] [stdout] 275 | | command: &str, [INFO] [stdout] 276 | | args: &[String], [INFO] [stdout] 277 | | ctx: &CommandContext, [INFO] [stdout] 278 | | ) -> Result { [INFO] [stdout] | |_______________________________^ associated function `PluginManager::execute_plugin` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `PluginInfo` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/modules/plugins.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | struct PluginInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/config.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load`, `save`, `get`, and `set` are never used [INFO] [stdout] --> src/config.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Config { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 116 | pub fn load() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn save(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn get(&self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn set(&mut self, key: &str, value: serde_json::Value) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_phones` is never used [INFO] [stdout] --> src/config.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn get_phones( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_proxy` is never used [INFO] [stdout] --> src/config.rs:229:8 [INFO] [stdout] | [INFO] [stdout] 229 | pub fn get_proxy(args: &Args) -> (Option<(String, u16, String)>, bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `assets_dir`, `counter_path`, and `asset_lock` are never read [INFO] [stdout] --> src/database.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DatabaseBackend { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 14 | db_path: PathBuf, [INFO] [stdout] 15 | assets_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 16 | counter_path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 17 | asset_lock: Mutex<()>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `store_asset`, `fetch_asset`, and `next_id` are never used [INFO] [stdout] --> src/database.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl DatabaseBackend { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn store_asset(&self, data: &[u8]) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub async fn fetch_asset(&self, id: i64) -> std::io::Result>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | async fn next_id(&self) -> std::io::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set`, `schedule_save`, `store_asset`, and `fetch_asset` are never used [INFO] [stdout] --> src/database.rs:119:18 [INFO] [stdout] | [INFO] [stdout] 82 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn set(&self, owner: &str, key: &str, value: impl Serialize) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | async fn schedule_save(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub async fn store_asset(&self, data: &[u8]) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub async fn fetch_asset(&self, id: i64) -> std::io::Result>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_reply` is never read [INFO] [stdout] --> src/dispatcher.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct CommandContext { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub is_reply: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommandContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/dispatcher.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WatcherContext { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 32 | pub sender_id: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | pub chat_id: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | pub is_private: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub is_group: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 36 | pub is_channel: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 37 | pub is_out: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 38 | pub message_text: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WatcherContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `doc` are never read [INFO] [stdout] --> src/dispatcher.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct CommandHandler { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 48 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | doc: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `doc` are never used [INFO] [stdout] --> src/dispatcher.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl CommandHandler { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn doc(&self) -> &str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `handler` is never read [INFO] [stdout] --> src/dispatcher.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct WatcherHandler { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 91 | handler: WatcherHandlerFn, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `handle` are never used [INFO] [stdout] --> src/dispatcher.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl WatcherHandler { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 96 | pub fn new(module_name: String, handler: WatcherHandlerFn) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn handle(&self, ctx: WatcherContext) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/dispatcher.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 134 | impl CommandDispatcher { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn unregister_command(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn register_alias(&self, module_name: String, alias: String, command: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn register_watcher(&self, module_name: String, handler: WatcherHandlerRef) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn get_module_commands(&self, module_name: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub async fn handle_watcher(&self, ctx: &WatcherContext) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | pub fn get_command_names(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 419 | pub fn get_command_doc(&self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `description` and `version` are never read [INFO] [stdout] --> src/modules/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ModuleInfo { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 18 | pub name: String, [INFO] [stdout] 19 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_modules` and `get_module` are never used [INFO] [stdout] --> src/modules/mod.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 39 | impl ModuleRegistry { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub async fn get_modules(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub async fn get_module(&self, name: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WatcherBuilder` is never constructed [INFO] [stdout] --> src/modules/mod.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct WatcherBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WatcherHandlerFn` is never used [INFO] [stdout] --> src/modules/mod.rs:171:6 [INFO] [stdout] | [INFO] [stdout] 171 | type WatcherHandlerFn = Arc BoxFuture<'static, ()> + Send + Sync>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `handler`, and `build` are never used [INFO] [stdout] --> src/modules/mod.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 173 | impl WatcherBuilder { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 174 | pub fn new(module_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn handler(mut self, f: F) -> Self [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn build(self) -> (String, WatcherHandlerRef) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PUBLIC_PERMISSIONS` is never used [INFO] [stdout] --> src/security.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | pub const PUBLIC_PERMISSIONS: u32 = GROUP_OWNER | GROUP_ADMIN_ANY | GROUP_MEMBER | PM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAIN_NS` is never used [INFO] [stdout] --> src/security.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const MAIN_NS: &str = "userbot::main"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chat_id`, `is_out`, and `message_text` are never read [INFO] [stdout] --> src/security.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct MessageContext { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 149 | pub sender_id: i64, [INFO] [stdout] 150 | pub chat_id: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub is_out: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 157 | pub message_text: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sudo` is never used [INFO] [stdout] --> src/security.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn sudo(func: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `support` is never used [INFO] [stdout] --> src/security.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn support(func: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_owner` is never used [INFO] [stdout] --> src/security.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn group_owner(func: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_admin` is never used [INFO] [stdout] --> src/security.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn group_admin(func: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_member` is never used [INFO] [stdout] --> src/security.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn group_member(func: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pm` is never used [INFO] [stdout] --> src/security.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn pm(func: u32) -> u32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_args_raw` is never used [INFO] [stdout] --> src/utils.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn get_args_raw(message: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand_string` is never used [INFO] [stdout] --> src/utils.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn rand_string(length: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mask_phone` is never used [INFO] [stdout] --> src/utils.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn mask_phone(phone: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `config_path` is never used [INFO] [stdout] --> src/utils.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn config_path() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `api_token_path` is never used [INFO] [stdout] --> src/utils.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn api_token_path() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loaded_modules_dir` is never used [INFO] [stdout] --> src/utils.rs:188:8 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn loaded_modules_dir() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `session_path` is never used [INFO] [stdout] --> src/utils.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn session_path(phone: &str) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_for_code` is never used [INFO] [stdout] --> src/web.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | pub async fn wait_for_code(state: &Arc) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s [INFO] running `Command { std: "docker" "inspect" "a970392cfff551581822fd8e1f147f2555b0d06fa8fc847b464fe0d09912a0eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a970392cfff551581822fd8e1f147f2555b0d06fa8fc847b464fe0d09912a0eb", kill_on_drop: false }` [INFO] [stdout] a970392cfff551581822fd8e1f147f2555b0d06fa8fc847b464fe0d09912a0eb