[INFO] cloning repository https://github.com/SrJohnathan/chat-bor-bkp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SrJohnathan/chat-bor-bkp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSrJohnathan%2Fchat-bor-bkp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSrJohnathan%2Fchat-bor-bkp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08ab52958d1f2080e885139e71e27928ef09c4a8 [INFO] testing SrJohnathan/chat-bor-bkp against 1.79.0 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSrJohnathan%2Fchat-bor-bkp" "/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/SrJohnathan/chat-bor-bkp on toolchain 1.79.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.79.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SrJohnathan/chat-bor-bkp [INFO] finished tweaking git repo https://github.com/SrJohnathan/chat-bor-bkp [INFO] tweaked toml for git repo https://github.com/SrJohnathan/chat-bor-bkp written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/SrJohnathan/chat-bor-bkp 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.79.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/lawliet89/rocket_cors` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rocket_okapi_codegen v0.8.0-rc.2 [INFO] [stderr] Downloaded dyn-clone v1.0.10 [INFO] [stderr] Downloaded schemars_derive v0.8.11 [INFO] [stderr] Downloaded generator v0.7.2 [INFO] [stderr] Downloaded serde_derive_internals v0.26.0 [INFO] [stderr] Downloaded plugin v0.2.6 [INFO] [stderr] Downloaded mime v0.2.6 [INFO] [stderr] Downloaded groupable v0.2.0 [INFO] [stderr] Downloaded schemars v0.8.11 [INFO] [stderr] Downloaded modifier v0.1.0 [INFO] [stderr] Downloaded buf_redux v0.8.4 [INFO] [stderr] Downloaded nickel v0.11.0 [INFO] [stderr] Downloaded rocket_codegen v0.5.0-rc.2 [INFO] [stderr] Downloaded zerocopy v0.7.31 [INFO] [stderr] Downloaded chrono-tz v0.8.5 [INFO] [stderr] Downloaded zerocopy-derive v0.7.31 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.39.0 [INFO] [stderr] Downloaded windows_i686_gnu v0.39.0 [INFO] [stderr] Downloaded windows_i686_msvc v0.39.0 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.39.0 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.39.0 [INFO] [stderr] Downloaded rocket_okapi v0.8.0-rc.2 [INFO] [stderr] Downloaded hyper v0.10.16 [INFO] [stderr] Downloaded rocket v0.5.0-rc.2 [INFO] [stderr] Downloaded aes v0.8.2 [INFO] [stderr] Downloaded aes-gcm v0.10.1 [INFO] [stderr] Downloaded multipart v0.18.0 [INFO] [stderr] Downloaded base64 v0.20.0 [INFO] [stderr] Downloaded rocket_http v0.5.0-rc.2 [INFO] [stderr] Downloaded phf_generator v0.7.24 [INFO] [stderr] Downloaded phf_codegen v0.7.24 [INFO] [stderr] Downloaded mime_guess v1.8.8 [INFO] [stderr] Downloaded iron v0.6.1 [INFO] [stderr] Downloaded base64 v0.9.3 [INFO] [stderr] Downloaded ring v0.17.3 [INFO] [stderr] Downloaded unicase v1.4.2 [INFO] [stderr] Downloaded mustache v0.9.0 [INFO] [stderr] Downloaded traitobject v0.1.0 [INFO] [stderr] Downloaded typemap v0.3.3 [INFO] [stderr] Downloaded ascii v0.8.7 [INFO] [stderr] Downloaded tiny_http v0.6.4 [INFO] [stderr] Downloaded twoway v0.1.8 [INFO] [stderr] Downloaded unicase_serde v0.1.0 [INFO] [stderr] Downloaded okapi v0.7.0-rc.1 [INFO] [stderr] Downloaded async-stream v0.3.4 [INFO] [stderr] Downloaded multer v2.0.4 [INFO] [stderr] Downloaded devise_codegen v0.3.1 [INFO] [stderr] Downloaded devise_core v0.3.1 [INFO] [stderr] Downloaded devise v0.3.1 [INFO] [stderr] Downloaded tokio-stream v0.1.12 [INFO] [stderr] Downloaded aead v0.5.1 [INFO] [stderr] Downloaded cipher v0.4.3 [INFO] [stderr] Downloaded ctr v0.9.2 [INFO] [stderr] Downloaded universal-hash v0.5.0 [INFO] [stderr] Downloaded polyval v0.6.0 [INFO] [stderr] Downloaded ghash v0.5.0 [INFO] [stderr] Downloaded pear_codegen v0.2.3 [INFO] [stderr] Downloaded pear v0.2.3 [INFO] [stderr] Downloaded ref-cast-impl v1.0.14 [INFO] [stderr] Downloaded ref-cast v1.0.14 [INFO] [stderr] Downloaded chunked_transfer v0.3.1 [INFO] [stderr] Downloaded unsafe-any v0.4.2 [INFO] [stderr] Downloaded async-stream-impl v0.3.4 [INFO] [stderr] Downloaded windows v0.39.0 [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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 05c9f5126097c9ecf7ba9a0841186ed59fa1a68a5dccf51504c2cfb33c27f694 [INFO] running `Command { std: "docker" "start" "-a" "05c9f5126097c9ecf7ba9a0841186ed59fa1a68a5dccf51504c2cfb33c27f694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "05c9f5126097c9ecf7ba9a0841186ed59fa1a68a5dccf51504c2cfb33c27f694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05c9f5126097c9ecf7ba9a0841186ed59fa1a68a5dccf51504c2cfb33c27f694", kill_on_drop: false }` [INFO] [stdout] 05c9f5126097c9ecf7ba9a0841186ed59fa1a68a5dccf51504c2cfb33c27f694 [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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad06e30280955653962740b5c069e14c4504d195b53c5da34d0c0b6c228a955c [INFO] running `Command { std: "docker" "start" "-a" "ad06e30280955653962740b5c069e14c4504d195b53c5da34d0c0b6c228a955c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling futures-channel v0.3.26 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling futures-core v0.3.26 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling tokio v1.25.0 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling futures-sink v0.3.26 [INFO] [stderr] Compiling futures-task v0.3.26 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling unicode-bidi v0.3.10 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling futures-io v0.3.26 [INFO] [stderr] Compiling futures-util v0.3.26 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling time-macros v0.2.7 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling serde_json v1.0.93 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling mio v0.8.6 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling ref-cast v1.0.14 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling spin v0.9.5 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling cipher v0.4.3 [INFO] [stderr] Compiling universal-hash v0.5.0 [INFO] [stderr] Compiling aead v0.5.1 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling polyval v0.6.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ghash v0.5.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling aes v0.8.2 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling hkdf v0.12.3 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling uncased v0.9.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling async-trait v0.1.64 [INFO] [stderr] Compiling time v0.3.19 [INFO] [stderr] Compiling aes-gcm v0.10.1 [INFO] [stderr] Compiling ring v0.17.3 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling state v0.5.3 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling futures v0.3.26 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling openssl v0.10.45 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling figment v0.10.8 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling multer v2.0.4 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling hyper v0.14.24 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Compiling rocket v0.5.0-rc.2 [INFO] [stderr] Compiling ahash v0.8.6 [INFO] [stderr] Compiling schemars v0.8.11 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling chrono-tz-build v0.2.1 [INFO] [stderr] Compiling rustc_version_runtime v0.2.1 [INFO] [stderr] Compiling plugin v0.2.6 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling modifier v0.1.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling dyn-clone v1.0.10 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling zerocopy v0.7.31 [INFO] [stderr] Compiling data-encoding v2.3.3 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling chrono-tz v0.8.5 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling chunked_transfer v0.3.1 [INFO] [stderr] Compiling groupable v0.2.0 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling ascii v0.8.7 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling tiny_http v0.6.4 [INFO] [stderr] Compiling md-5 v0.10.5 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling iron v0.6.1 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling dotenvy v0.15.6 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling futures-macro v0.3.26 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.14 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling async-stream-impl v0.3.4 [INFO] [stderr] Compiling schemars_derive v0.8.11 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling async-stream v0.3.4 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.2 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.2 [INFO] [stderr] Compiling rocket_okapi_codegen v0.8.0-rc.2 [INFO] [stderr] Compiling futures-executor v0.3.26 [INFO] [stderr] Compiling tokio-util v0.7.7 [INFO] [stderr] Compiling tokio-stream v0.1.12 [INFO] [stderr] Compiling trust-dns-proto v0.21.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling ubyte v0.10.3 [INFO] [stderr] Compiling mustache v0.9.0 [INFO] [stderr] Compiling serde_bytes v0.11.9 [INFO] [stderr] Compiling uuid v1.3.0 [INFO] [stderr] Compiling unicase_serde v0.1.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_with v1.14.0 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling trust-dns-resolver v0.21.2 [INFO] [stderr] Compiling nickel v0.11.0 [INFO] [stderr] Compiling bson v2.8.1 [INFO] [stderr] Compiling multipart v0.18.0 [INFO] [stderr] Compiling okapi v0.7.0-rc.1 [INFO] [stderr] Compiling mongodb v2.8.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.14 [INFO] [stderr] Compiling rocket_cors v0.6.0-alpha1 (https://github.com/lawliet89/rocket_cors?branch=master#c17e8145) [INFO] [stderr] Compiling rocket_okapi v0.8.0-rc.2 [INFO] [stderr] Compiling crm-back v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rocket::fs::FileServer` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::fs::FileServer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `State` [INFO] [stdout] --> src/model/mongo.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::{Request, State}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `Outcome` [INFO] [stdout] --> src/model/mongo.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::request::{FromRequest, Outcome}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> src/http/gupshup_controller.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Response` [INFO] [stdout] --> src/http/gupshup_controller.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use reqwest::{Client, Error, Response}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BadRequest`, `Created` [INFO] [stdout] --> src/http/gupshup_controller.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use rocket::response::status::{BadRequest, Created}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/http/gupshup_controller.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageText`, `SendWP` [INFO] [stdout] --> src/http/gupshup_controller.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::chat::send_list_wp::{MessageText, SendWP}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_number_app` [INFO] [stdout] --> src/http/gupshup_controller.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::cofg::{get_number_app, NewJob}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `select_status` [INFO] [stdout] --> src/http/gupshup_controller.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::model::mongo::{select_status}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_hook` [INFO] [stdout] --> src/http/gupshup_controller.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn web_hook(db: MongoDb<'_>, job: &State>, task: Json) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/http/http_controller.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Response` [INFO] [stdout] --> src/http/http_controller.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use reqwest::{Client, Error, Response}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc::error::SendError` [INFO] [stdout] --> src/http/http_controller.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::mpsc::error::SendError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc::Sender` [INFO] [stdout] --> src/http/http_controller.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cofg::JobWP` [INFO] [stdout] --> src/http/http_controller.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::cofg::JobWP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `insert` [INFO] [stdout] --> src/http/http_controller.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn insert(db: MongoDb<'_>, task: Json) -> Result, status::BadRequest> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `facebook_token` [INFO] [stdout] --> src/http/http_controller.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn facebook_token(db: MongoDb<'_>, task: Json) -> Result, status::BadRequest> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/http/http_controller.rs:87:14 [INFO] [stdout] | [INFO] [stdout] 87 | pub async fn get(db: MongoDb<'_>) -> Result>>, status::BadRequest> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/http/insta_controller.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Message` [INFO] [stdout] --> src/http/insta_controller.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::chat::models_instagram::{Message, ReceiverInstagram}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `webhook` [INFO] [stdout] --> src/http/insta_controller.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn webhook(db: MongoDb<'_>, config: &State, task: Json) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `messaging_webhook` [INFO] [stdout] --> src/http/insta_controller.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | pub async fn messaging_webhook(config: &State, param: QueryParams) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/http/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDateTime`, `Utc` [INFO] [stdout] --> src/http/models.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::Europe::Lisbon` [INFO] [stdout] --> src/http/models.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono_tz::Europe::Lisbon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Response`, `StatusCode` [INFO] [stdout] --> src/http/models.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use reqwest::{Client, Response, Error, StatusCode}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `whatsapp` should have an upper camel case name [INFO] [stdout] --> src/http/models.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | whatsapp, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Whatsapp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `sms` should have an upper camel case name [INFO] [stdout] --> src/http/models.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | sms, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Sms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChatDataType`, `Chat`, `ClientKeyBot` [INFO] [stdout] --> src/http/siga_controller.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::chat::structs::{Chat, ChatDataType, ClientKeyBot}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Leads` [INFO] [stdout] --> src/http/siga_controller.rs:20:73 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::cofg::{api_leads, get_app_app, get_app_id, HOST_API_GUPSHUP, Leads, NewJob}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `send` [INFO] [stdout] --> src/http/siga_controller.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn send(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_system` [INFO] [stdout] --> src/http/siga_controller.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | pub async fn read_system(task: Json) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_template` [INFO] [stdout] --> src/http/siga_controller.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn read_template(appName: String) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_clients_bots` [INFO] [stdout] --> src/http/siga_controller.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | pub async fn get_clients_bots(db: MongoDb<'_>, appName: String) -> Result>>, rocket::response::status::BadRe... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_clients_chat` [INFO] [stdout] --> src/http/siga_controller.rs:140:14 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn get_clients_chat(db: MongoDb<'_>, appName: String, state:String) -> Result>>>, BadRequest<... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `updateBots` [INFO] [stdout] --> src/http/siga_controller.rs:152:14 [INFO] [stdout] | [INFO] [stdout] 152 | pub async fn updateBots(db: MongoDb<'_>, number: String,boolean:bool) -> Result, std::string::Str... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `money` [INFO] [stdout] --> src/http/siga_controller.rs:164:14 [INFO] [stdout] | [INFO] [stdout] 164 | pub async fn money() -> Result, String> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `template` [INFO] [stdout] --> src/http/siga_controller.rs:181:14 [INFO] [stdout] | [INFO] [stdout] 181 | pub async fn template(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `send_archive` [INFO] [stdout] --> src/http/siga_controller.rs:209:14 [INFO] [stdout] | [INFO] [stdout] 209 | pub async fn send_archive(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agente` [INFO] [stdout] --> src/http/siga_controller.rs:270:14 [INFO] [stdout] | [INFO] [stdout] 270 | pub async fn agente(db: MongoDb<'_>, job: &State>, task: Json) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/cofg.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SendError`, `channel` [INFO] [stdout] --> src/cofg.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::mpsc::{channel, SendError}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/cofg.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/cofg.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{ NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Response` [INFO] [stdout] --> src/cofg.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use reqwest::{Error, Response}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/cofg.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `mpsc`, `oneshot` [INFO] [stdout] --> src/cofg.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::sync::{mpsc, oneshot::{Receiver, Sender}, oneshot}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/chat/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> src/chat/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Utc` [INFO] [stdout] --> src/chat/mod.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::Europe::Lisbon` [INFO] [stdout] --> src/chat/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono_tz::Europe::Lisbon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongodb::error::Error` [INFO] [stdout] --> src/chat/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mongodb::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::response::status` [INFO] [stdout] --> src/chat/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::response::status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::chat::structs::ClientKeyBot` [INFO] [stdout] --> src/chat/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::chat::structs::ClientKeyBot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_status` [INFO] [stdout] --> src/chat/mod.rs:15:57 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::model::mongo::{insert_status, select_status, update_status}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Message` [INFO] [stdout] --> src/chat/bot.rs:10:97 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::chat::send_list_wp::{ButtonWP, ContentBT, ContentMD, GlobalButton, ImageMidia, Item, Message, MessageText, MidiaType, OptionBT... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientKeyBot` [INFO] [stdout] --> src/chat/bot.rs:11:48 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::chat::structs::{Chat, ChatDataType, ClientKeyBot}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `API_DEV`, `API_PRODU` [INFO] [stdout] --> src/chat/bot.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::cofg::{API_DEV, API_PRODU, get_number_app}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/chat/send_list_wp.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Error` [INFO] [stdout] --> src/chat/send_list_wp.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/chat/structs/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/chat/db_mongo.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use mongodb::{bson, Client, Database}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bson` [INFO] [stdout] --> src/chat/db_mongo.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | use mongodb::bson::{Bson, doc,bson}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientOptions` [INFO] [stdout] --> src/chat/db_mongo.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use mongodb::options::{ClientOptions, FindOptions, UpdateOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/chat/db_mongo.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientKeyBot` [INFO] [stdout] --> src/chat/db_mongo.rs:15:48 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::chat::structs::{Chat, ChatDataType, ClientKeyBot}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/model/mongo.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | Err(err) => Err(String::from("error em atualizar o status")) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/model/mongo.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(v) => Ok(true), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/model/mongo.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | Err(err) => Err(String::from("error em atualizar o status")) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/gupshup_controller.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/gupshup_controller.rs:100:40 [INFO] [stdout] | [INFO] [stdout] 100 | ... Ok(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:110:25 [INFO] [stdout] | [INFO] [stdout] 110 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 114 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/gupshup_controller.rs:146:36 [INFO] [stdout] | [INFO] [stdout] 146 | ... Ok(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/http/gupshup_controller.rs:172:36 [INFO] [stdout] | [INFO] [stdout] 172 | ... Ok(c) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/gupshup_controller.rs:173:37 [INFO] [stdout] | [INFO] [stdout] 173 | ... Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/gupshup_controller.rs:188:44 [INFO] [stdout] | [INFO] [stdout] 188 | ... Ok(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/mod.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:81:36 [INFO] [stdout] | [INFO] [stdout] 81 | ... Ok(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/chat/mod.rs:82:37 [INFO] [stdout] | [INFO] [stdout] 82 | ... Err(s) => { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/chat/mod.rs:90:36 [INFO] [stdout] | [INFO] [stdout] 90 | ... Ok(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ar` [INFO] [stdout] --> src/chat/bot.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let ar: Vec = tmp.iter().map(|c| c.replace("-", "")).filter(|c| c.as_str() != "").collect(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `midia` [INFO] [stdout] --> src/chat/bot.rs:250:51 [INFO] [stdout] | [INFO] [stdout] 250 | ChatDataType::ButtonMidia(midia) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_midia` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `butto` [INFO] [stdout] --> src/chat/bot.rs:253:50 [INFO] [stdout] | [INFO] [stdout] 253 | ChatDataType::ButtonText(butto) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_butto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `midia` [INFO] [stdout] --> src/chat/bot.rs:459:51 [INFO] [stdout] | [INFO] [stdout] 459 | ChatDataType::ButtonMidia(midia) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_midia` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chat/bot.rs:141:104 [INFO] [stdout] | [INFO] [stdout] 141 | ... let mut it:Vec> = bot.payload.iter().enumerate().map(|(i, v)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chat/bot.rs:364:94 [INFO] [stdout] | [INFO] [stdout] 364 | ... let mut it: Vec = bot.payload.iter().enumerate().map(|(i, v)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | ... let mut it:Vec> = bot.payload.iter().enumerate().map(|(i, v)| { [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/chat/bot.rs:167:37 [INFO] [stdout] | [INFO] [stdout] 167 | ... let mut text_final = if map.contains_key("voltar") { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:357:37 [INFO] [stdout] | [INFO] [stdout] 357 | ... let mut gb: Vec = bot.button_menu.iter().map(|c| { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:364:37 [INFO] [stdout] | [INFO] [stdout] 364 | ... let mut it: Vec = bot.payload.iter().enumerate().map(|(i, v)| { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:382:37 [INFO] [stdout] | [INFO] [stdout] 382 | ... let mut text_final = if map.contains_key("voltar") { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lisbon_time` [INFO] [stdout] --> src/chat/db_mongo.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | let lisbon_time = utc.with_timezone(&Lisbon); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lisbon_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/db_mongo.rs:397:16 [INFO] [stdout] | [INFO] [stdout] 397 | Ok(x) => { Ok(true) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/chat/db_mongo.rs:398:17 [INFO] [stdout] | [INFO] [stdout] 398 | Err(w) => Err("Failed to insert the document".to_string()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/chat/mod.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let key = std::env::var("KEY_API").unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_len` [INFO] [stdout] --> src/chat/mod.rs:222:45 [INFO] [stdout] | [INFO] [stdout] 222 | ... let (e, new_len) = s.split_at(len - 2); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/mod.rs:258:36 [INFO] [stdout] | [INFO] [stdout] 258 | ... Ok(x) => { println!("atualizou o status") } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/chat/mod.rs:263:36 [INFO] [stdout] | [INFO] [stdout] 263 | ... Ok(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/mod.rs:220:41 [INFO] [stdout] | [INFO] [stdout] 220 | ... let mut s = String::from(st.st.clone()); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/chat/db_mongo.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let b = bso.as_document().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_len` [INFO] [stdout] --> src/chat/mod.rs:321:29 [INFO] [stdout] | [INFO] [stdout] 321 | let (e, new_len) = s.split_at(len - 2); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/mod.rs:335:28 [INFO] [stdout] | [INFO] [stdout] 335 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/chat/mod.rs:337:36 [INFO] [stdout] | [INFO] [stdout] 337 | ... Ok(c) => { Ok(true) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:338:37 [INFO] [stdout] | [INFO] [stdout] 338 | ... Err(e) => { Err(1) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:341:29 [INFO] [stdout] | [INFO] [stdout] 341 | Err(e) => { Err(0) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:347:17 [INFO] [stdout] | [INFO] [stdout] 347 | Err(e) => { Err(2) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/mod.rs:319:25 [INFO] [stdout] | [INFO] [stdout] 319 | let mut s = String::from(st.st.clone()); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/chat/mod.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let key = std::env::var("KEY_API").unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/mod.rs:154:36 [INFO] [stdout] | [INFO] [stdout] 154 | ... Ok(x) => { println!("atualizou o status") } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/chat/mod.rs:159:36 [INFO] [stdout] | [INFO] [stdout] 159 | ... Ok(c) => { Ok(new_status) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/chat/db_mongo.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | let b = bso.as_document().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter` [INFO] [stdout] --> src/chat/db_mongo.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let filter = doc! { "app": st.get("app").unwrap().as_str().unwrap() }; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/db_mongo.rs:338:16 [INFO] [stdout] | [INFO] [stdout] 338 | Ok(x) => { Ok(true) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/db_mongo.rs:339:17 [INFO] [stdout] | [INFO] [stdout] 339 | Err(e) => { Err("error ao inserir".to_string()) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chat/bot.rs:769:17 [INFO] [stdout] | [INFO] [stdout] 769 | for i in 0..it.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:673:13 [INFO] [stdout] | [INFO] [stdout] 673 | let mut datas = v.get("data").unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:747:21 [INFO] [stdout] | [INFO] [stdout] 747 | let mut c = ii * 10; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/db_mongo.rs:315:16 [INFO] [stdout] | [INFO] [stdout] 315 | Ok(x) => { Ok(true) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/db_mongo.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | Err(e) => { Err("error ao inserir".to_string()) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/chat/db_mongo.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let b = bso.as_document().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter` [INFO] [stdout] --> src/chat/db_mongo.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | let filter = doc! { "app": st.get("app").unwrap().as_str().unwrap() }; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/db_mongo.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | Ok(x) => { Ok(true) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/db_mongo.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | Err(e) => { Err("error ao inserir".to_string()) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http/http_controller.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut value : serde_json::Value = x.json().await.unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/http/insta_controller.rs:64:39 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn webhook(db: MongoDb<'_>, config: &State, task: Json) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/insta_controller.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 75 | Some(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/http/insta_controller.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | Ok(c) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/http/models.rs:186:77 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn send_facebook(&self, vec: Vec>) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/http/siga_controller.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn send(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/http/siga_controller.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let req: Client = Client::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_value` [INFO] [stdout] --> src/chat/db_mongo.rs:522:56 [INFO] [stdout] | [INFO] [stdout] 522 | pub async fn get_all_client_key_bots_by_app(&self, app_value: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `appName` [INFO] [stdout] --> src/http/siga_controller.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn get_clients_chat(db: MongoDb<'_>, appName: String, state:String) -> Result>>>, BadRequest<... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_appName` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | Ok(x) => Ok(status::Accepted::<()>(None)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/http/siga_controller.rs:181:23 [INFO] [stdout] | [INFO] [stdout] 181 | pub async fn template(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/http/siga_controller.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | let req: Client = Client::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/http/siga_controller.rs:209:27 [INFO] [stdout] | [INFO] [stdout] 209 | pub async fn send_archive(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/http/siga_controller.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | let req: Client = Client::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:290:25 [INFO] [stdout] | [INFO] [stdout] 290 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:293:25 [INFO] [stdout] | [INFO] [stdout] 293 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:298:25 [INFO] [stdout] | [INFO] [stdout] 298 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:348:28 [INFO] [stdout] | [INFO] [stdout] 348 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:361:29 [INFO] [stdout] | [INFO] [stdout] 361 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:378:45 [INFO] [stdout] | [INFO] [stdout] 378 | ... Err(e) => { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:386:33 [INFO] [stdout] | [INFO] [stdout] 386 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:396:41 [INFO] [stdout] | [INFO] [stdout] 396 | ... Err(e) => { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:432:44 [INFO] [stdout] | [INFO] [stdout] 432 | ... Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:454:28 [INFO] [stdout] | [INFO] [stdout] 454 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:466:29 [INFO] [stdout] | [INFO] [stdout] 466 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:476:28 [INFO] [stdout] | [INFO] [stdout] 476 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:488:29 [INFO] [stdout] | [INFO] [stdout] 488 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:498:28 [INFO] [stdout] | [INFO] [stdout] 498 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:510:29 [INFO] [stdout] | [INFO] [stdout] 510 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:517:25 [INFO] [stdout] | [INFO] [stdout] 517 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:520:25 [INFO] [stdout] | [INFO] [stdout] 520 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:528:28 [INFO] [stdout] | [INFO] [stdout] 528 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:540:29 [INFO] [stdout] | [INFO] [stdout] 540 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:584:44 [INFO] [stdout] | [INFO] [stdout] 584 | ... Ok(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:602:28 [INFO] [stdout] | [INFO] [stdout] 602 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:614:29 [INFO] [stdout] | [INFO] [stdout] 614 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:630:28 [INFO] [stdout] | [INFO] [stdout] 630 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:642:29 [INFO] [stdout] | [INFO] [stdout] 642 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/http/siga_controller.rs:658:44 [INFO] [stdout] | [INFO] [stdout] 658 | ... Ok(c) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:659:45 [INFO] [stdout] | [INFO] [stdout] 659 | ... Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:694:52 [INFO] [stdout] | [INFO] [stdout] 694 | ... Ok(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:326:32 [INFO] [stdout] | [INFO] [stdout] 326 | ... Ok(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:355:40 [INFO] [stdout] | [INFO] [stdout] 355 | ... Ok(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:461:40 [INFO] [stdout] | [INFO] [stdout] 461 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:483:40 [INFO] [stdout] | [INFO] [stdout] 483 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:505:40 [INFO] [stdout] | [INFO] [stdout] 505 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:535:40 [INFO] [stdout] | [INFO] [stdout] 535 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:609:40 [INFO] [stdout] | [INFO] [stdout] 609 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:637:40 [INFO] [stdout] | [INFO] [stdout] 637 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/db_mongo.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | if let Some(mut bot) = existing_bot { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter` [INFO] [stdout] --> src/chat/db_mongo.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let filter = doc! { "app": app.as_str() }; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http/insta_controller.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut params = s.split('&').map(|kv| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/factory_msg_send_text.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | let mut g: Vec<&str> = name.split("::").collect(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/factory_msg_send_text.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn factory_text(mut v1:String) -> (String, bool, String, TypeMidia, bool) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:362:15 [INFO] [stdout] | [INFO] [stdout] 362 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_status` is never used [INFO] [stdout] --> src/model/mongo.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | pub async fn update_status(st: &Status, db: &Database) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Channels` is never used [INFO] [stdout] --> src/http/models.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Channels { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_facebook` is never used [INFO] [stdout] --> src/http/models.rs:186:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl SendMessage { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 186 | pub async fn send_facebook(&self, vec: Vec>) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_bot` is never used [INFO] [stdout] --> src/http/models.rs:190:10 [INFO] [stdout] | [INFO] [stdout] 190 | async fn is_bot(req: &reqwest::Client, app: String, number: String) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_template` is never used [INFO] [stdout] --> src/http/siga_controller.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn read_template(appName: String) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cofg.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct JobWP<'r>(pub(crate) & 'r Sender); [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [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] 61 | pub struct JobWP<'r>(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/gupshup_controller.rs:121:21 [INFO] [stdout] | [INFO] [stdout] 121 | / req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stdout] 122 | | // .header("Content-Type", "application/json") [INFO] [stdout] 123 | | .json(&msg) [INFO] [stdout] 124 | | .send().await; [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] 121 | let _ = req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/gupshup_controller.rs:158:21 [INFO] [stdout] | [INFO] [stdout] 158 | / req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stdout] 159 | | // .header("Content-Type", "application/json") [INFO] [stdout] 160 | | .json(&msg) [INFO] [stdout] 161 | | .send().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] 158 | let _ = req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sendTemplate` should have a snake case name [INFO] [stdout] --> src/http/models.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn sendTemplate(&self, vec: &SendWP) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `send_template` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sendNoTime` should have a snake case name [INFO] [stdout] --> src/http/models.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn sendNoTime(&self, vec: &SendWP) -> Result { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `send_no_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `appName` should have a snake case name [INFO] [stdout] --> src/http/siga_controller.rs:115:28 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn read_template(appName: String) -> Result, String> { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `app_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `appName` should have a snake case name [INFO] [stdout] --> src/http/siga_controller.rs:131:48 [INFO] [stdout] | [INFO] [stdout] 131 | pub async fn get_clients_bots(db: MongoDb<'_>, appName: String) -> Result>>, rocket::response::status::BadRe... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `app_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `appName` should have a snake case name [INFO] [stdout] --> src/http/siga_controller.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn get_clients_chat(db: MongoDb<'_>, appName: String, state:String) -> Result>>>, BadRequest<... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `app_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `updateBots` should have a snake case name [INFO] [stdout] --> src/http/siga_controller.rs:152:14 [INFO] [stdout] | [INFO] [stdout] 152 | pub async fn updateBots(db: MongoDb<'_>, number: String,boolean:bool) -> Result, std::string::Str... [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `update_bots` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 203 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 23s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0, traitobject v0.1.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ad06e30280955653962740b5c069e14c4504d195b53c5da34d0c0b6c228a955c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad06e30280955653962740b5c069e14c4504d195b53c5da34d0c0b6c228a955c", kill_on_drop: false }` [INFO] [stdout] ad06e30280955653962740b5c069e14c4504d195b53c5da34d0c0b6c228a955c [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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 397852c8e9593611881d0802f1d9b20f8aa48477565b79d52bfa59170d78486b [INFO] running `Command { std: "docker" "start" "-a" "397852c8e9593611881d0802f1d9b20f8aa48477565b79d52bfa59170d78486b", kill_on_drop: false }` [INFO] [stderr] Compiling crm-back v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rocket::fs::FileServer` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::fs::FileServer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `State` [INFO] [stdout] --> src/model/mongo.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::{Request, State}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `Outcome` [INFO] [stdout] --> src/model/mongo.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::request::{FromRequest, Outcome}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> src/http/gupshup_controller.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Response` [INFO] [stdout] --> src/http/gupshup_controller.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use reqwest::{Client, Error, Response}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BadRequest`, `Created` [INFO] [stdout] --> src/http/gupshup_controller.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use rocket::response::status::{BadRequest, Created}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/http/gupshup_controller.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageText`, `SendWP` [INFO] [stdout] --> src/http/gupshup_controller.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::chat::send_list_wp::{MessageText, SendWP}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_number_app` [INFO] [stdout] --> src/http/gupshup_controller.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::cofg::{get_number_app, NewJob}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `select_status` [INFO] [stdout] --> src/http/gupshup_controller.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::model::mongo::{select_status}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_hook` [INFO] [stdout] --> src/http/gupshup_controller.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn web_hook(db: MongoDb<'_>, job: &State>, task: Json) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/http/http_controller.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Response` [INFO] [stdout] --> src/http/http_controller.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use reqwest::{Client, Error, Response}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc::error::SendError` [INFO] [stdout] --> src/http/http_controller.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::mpsc::error::SendError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc::Sender` [INFO] [stdout] --> src/http/http_controller.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cofg::JobWP` [INFO] [stdout] --> src/http/http_controller.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::cofg::JobWP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `insert` [INFO] [stdout] --> src/http/http_controller.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn insert(db: MongoDb<'_>, task: Json) -> Result, status::BadRequest> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `facebook_token` [INFO] [stdout] --> src/http/http_controller.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn facebook_token(db: MongoDb<'_>, task: Json) -> Result, status::BadRequest> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/http/http_controller.rs:87:14 [INFO] [stdout] | [INFO] [stdout] 87 | pub async fn get(db: MongoDb<'_>) -> Result>>, status::BadRequest> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/http/insta_controller.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Message` [INFO] [stdout] --> src/http/insta_controller.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::chat::models_instagram::{Message, ReceiverInstagram}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `webhook` [INFO] [stdout] --> src/http/insta_controller.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn webhook(db: MongoDb<'_>, config: &State, task: Json) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `messaging_webhook` [INFO] [stdout] --> src/http/insta_controller.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | pub async fn messaging_webhook(config: &State, param: QueryParams) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/http/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDateTime`, `Utc` [INFO] [stdout] --> src/http/models.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::Europe::Lisbon` [INFO] [stdout] --> src/http/models.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono_tz::Europe::Lisbon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Response`, `StatusCode` [INFO] [stdout] --> src/http/models.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use reqwest::{Client, Response, Error, StatusCode}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `whatsapp` should have an upper camel case name [INFO] [stdout] --> src/http/models.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | whatsapp, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Whatsapp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `sms` should have an upper camel case name [INFO] [stdout] --> src/http/models.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | sms, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Sms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChatDataType`, `Chat`, `ClientKeyBot` [INFO] [stdout] --> src/http/siga_controller.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::chat::structs::{Chat, ChatDataType, ClientKeyBot}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Leads` [INFO] [stdout] --> src/http/siga_controller.rs:20:73 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::cofg::{api_leads, get_app_app, get_app_id, HOST_API_GUPSHUP, Leads, NewJob}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `send` [INFO] [stdout] --> src/http/siga_controller.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn send(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_system` [INFO] [stdout] --> src/http/siga_controller.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | pub async fn read_system(task: Json) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_template` [INFO] [stdout] --> src/http/siga_controller.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn read_template(appName: String) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_clients_bots` [INFO] [stdout] --> src/http/siga_controller.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | pub async fn get_clients_bots(db: MongoDb<'_>, appName: String) -> Result>>, rocket::response::status::BadRe... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_clients_chat` [INFO] [stdout] --> src/http/siga_controller.rs:140:14 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn get_clients_chat(db: MongoDb<'_>, appName: String, state:String) -> Result>>>, BadRequest<... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `updateBots` [INFO] [stdout] --> src/http/siga_controller.rs:152:14 [INFO] [stdout] | [INFO] [stdout] 152 | pub async fn updateBots(db: MongoDb<'_>, number: String,boolean:bool) -> Result, std::string::Str... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `money` [INFO] [stdout] --> src/http/siga_controller.rs:164:14 [INFO] [stdout] | [INFO] [stdout] 164 | pub async fn money() -> Result, String> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `template` [INFO] [stdout] --> src/http/siga_controller.rs:181:14 [INFO] [stdout] | [INFO] [stdout] 181 | pub async fn template(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `send_archive` [INFO] [stdout] --> src/http/siga_controller.rs:209:14 [INFO] [stdout] | [INFO] [stdout] 209 | pub async fn send_archive(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agente` [INFO] [stdout] --> src/http/siga_controller.rs:270:14 [INFO] [stdout] | [INFO] [stdout] 270 | pub async fn agente(db: MongoDb<'_>, job: &State>, task: Json) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/cofg.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SendError`, `channel` [INFO] [stdout] --> src/cofg.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::mpsc::{channel, SendError}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/cofg.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/cofg.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{ NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Response` [INFO] [stdout] --> src/cofg.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use reqwest::{Error, Response}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/cofg.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `mpsc`, `oneshot` [INFO] [stdout] --> src/cofg.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::sync::{mpsc, oneshot::{Receiver, Sender}, oneshot}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/chat/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> src/chat/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Utc` [INFO] [stdout] --> src/chat/mod.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::Europe::Lisbon` [INFO] [stdout] --> src/chat/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono_tz::Europe::Lisbon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mongodb::error::Error` [INFO] [stdout] --> src/chat/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mongodb::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::response::status` [INFO] [stdout] --> src/chat/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::response::status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::chat::structs::ClientKeyBot` [INFO] [stdout] --> src/chat/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::chat::structs::ClientKeyBot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_status` [INFO] [stdout] --> src/chat/mod.rs:15:57 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::model::mongo::{insert_status, select_status, update_status}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Message` [INFO] [stdout] --> src/chat/bot.rs:10:97 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::chat::send_list_wp::{ButtonWP, ContentBT, ContentMD, GlobalButton, ImageMidia, Item, Message, MessageText, MidiaType, OptionBT... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientKeyBot` [INFO] [stdout] --> src/chat/bot.rs:11:48 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::chat::structs::{Chat, ChatDataType, ClientKeyBot}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `API_DEV`, `API_PRODU` [INFO] [stdout] --> src/chat/bot.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::cofg::{API_DEV, API_PRODU, get_number_app}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/chat/send_list_wp.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Error` [INFO] [stdout] --> src/chat/send_list_wp.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/chat/structs/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/chat/db_mongo.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use mongodb::{bson, Client, Database}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bson` [INFO] [stdout] --> src/chat/db_mongo.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | use mongodb::bson::{Bson, doc,bson}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientOptions` [INFO] [stdout] --> src/chat/db_mongo.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use mongodb::options::{ClientOptions, FindOptions, UpdateOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/chat/db_mongo.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientKeyBot` [INFO] [stdout] --> src/chat/db_mongo.rs:15:48 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::chat::structs::{Chat, ChatDataType, ClientKeyBot}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/model/mongo.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | Err(err) => Err(String::from("error em atualizar o status")) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/model/mongo.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(v) => Ok(true), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/model/mongo.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | Err(err) => Err(String::from("error em atualizar o status")) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/gupshup_controller.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/gupshup_controller.rs:100:40 [INFO] [stdout] | [INFO] [stdout] 100 | ... Ok(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:110:25 [INFO] [stdout] | [INFO] [stdout] 110 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 114 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/gupshup_controller.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/gupshup_controller.rs:146:36 [INFO] [stdout] | [INFO] [stdout] 146 | ... Ok(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/http/gupshup_controller.rs:172:36 [INFO] [stdout] | [INFO] [stdout] 172 | ... Ok(c) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/gupshup_controller.rs:173:37 [INFO] [stdout] | [INFO] [stdout] 173 | ... Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/gupshup_controller.rs:188:44 [INFO] [stdout] | [INFO] [stdout] 188 | ... Ok(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/mod.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:81:36 [INFO] [stdout] | [INFO] [stdout] 81 | ... Ok(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/chat/mod.rs:82:37 [INFO] [stdout] | [INFO] [stdout] 82 | ... Err(s) => { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/chat/mod.rs:90:36 [INFO] [stdout] | [INFO] [stdout] 90 | ... Ok(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ar` [INFO] [stdout] --> src/chat/bot.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let ar: Vec = tmp.iter().map(|c| c.replace("-", "")).filter(|c| c.as_str() != "").collect(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `midia` [INFO] [stdout] --> src/chat/bot.rs:250:51 [INFO] [stdout] | [INFO] [stdout] 250 | ChatDataType::ButtonMidia(midia) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_midia` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `butto` [INFO] [stdout] --> src/chat/bot.rs:253:50 [INFO] [stdout] | [INFO] [stdout] 253 | ChatDataType::ButtonText(butto) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_butto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `midia` [INFO] [stdout] --> src/chat/bot.rs:459:51 [INFO] [stdout] | [INFO] [stdout] 459 | ChatDataType::ButtonMidia(midia) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_midia` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chat/bot.rs:141:104 [INFO] [stdout] | [INFO] [stdout] 141 | ... let mut it:Vec> = bot.payload.iter().enumerate().map(|(i, v)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chat/bot.rs:364:94 [INFO] [stdout] | [INFO] [stdout] 364 | ... let mut it: Vec = bot.payload.iter().enumerate().map(|(i, v)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | ... let mut it:Vec> = bot.payload.iter().enumerate().map(|(i, v)| { [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/chat/bot.rs:167:37 [INFO] [stdout] | [INFO] [stdout] 167 | ... let mut text_final = if map.contains_key("voltar") { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:357:37 [INFO] [stdout] | [INFO] [stdout] 357 | ... let mut gb: Vec = bot.button_menu.iter().map(|c| { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:364:37 [INFO] [stdout] | [INFO] [stdout] 364 | ... let mut it: Vec = bot.payload.iter().enumerate().map(|(i, v)| { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:382:37 [INFO] [stdout] | [INFO] [stdout] 382 | ... let mut text_final = if map.contains_key("voltar") { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lisbon_time` [INFO] [stdout] --> src/chat/db_mongo.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | let lisbon_time = utc.with_timezone(&Lisbon); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lisbon_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/db_mongo.rs:397:16 [INFO] [stdout] | [INFO] [stdout] 397 | Ok(x) => { Ok(true) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/chat/db_mongo.rs:398:17 [INFO] [stdout] | [INFO] [stdout] 398 | Err(w) => Err("Failed to insert the document".to_string()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/chat/mod.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let key = std::env::var("KEY_API").unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_len` [INFO] [stdout] --> src/chat/mod.rs:222:45 [INFO] [stdout] | [INFO] [stdout] 222 | ... let (e, new_len) = s.split_at(len - 2); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/mod.rs:258:36 [INFO] [stdout] | [INFO] [stdout] 258 | ... Ok(x) => { println!("atualizou o status") } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/chat/mod.rs:263:36 [INFO] [stdout] | [INFO] [stdout] 263 | ... Ok(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/mod.rs:220:41 [INFO] [stdout] | [INFO] [stdout] 220 | ... let mut s = String::from(st.st.clone()); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/chat/db_mongo.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let b = bso.as_document().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_len` [INFO] [stdout] --> src/chat/mod.rs:321:29 [INFO] [stdout] | [INFO] [stdout] 321 | let (e, new_len) = s.split_at(len - 2); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/mod.rs:335:28 [INFO] [stdout] | [INFO] [stdout] 335 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/chat/mod.rs:337:36 [INFO] [stdout] | [INFO] [stdout] 337 | ... Ok(c) => { Ok(true) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:338:37 [INFO] [stdout] | [INFO] [stdout] 338 | ... Err(e) => { Err(1) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:341:29 [INFO] [stdout] | [INFO] [stdout] 341 | Err(e) => { Err(0) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:347:17 [INFO] [stdout] | [INFO] [stdout] 347 | Err(e) => { Err(2) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/mod.rs:319:25 [INFO] [stdout] | [INFO] [stdout] 319 | let mut s = String::from(st.st.clone()); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/chat/mod.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let key = std::env::var("KEY_API").unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/mod.rs:154:36 [INFO] [stdout] | [INFO] [stdout] 154 | ... Ok(x) => { println!("atualizou o status") } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/chat/mod.rs:159:36 [INFO] [stdout] | [INFO] [stdout] 159 | ... Ok(c) => { Ok(new_status) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/chat/db_mongo.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | let b = bso.as_document().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter` [INFO] [stdout] --> src/chat/db_mongo.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let filter = doc! { "app": st.get("app").unwrap().as_str().unwrap() }; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/db_mongo.rs:338:16 [INFO] [stdout] | [INFO] [stdout] 338 | Ok(x) => { Ok(true) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/db_mongo.rs:339:17 [INFO] [stdout] | [INFO] [stdout] 339 | Err(e) => { Err("error ao inserir".to_string()) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chat/bot.rs:769:17 [INFO] [stdout] | [INFO] [stdout] 769 | for i in 0..it.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:673:13 [INFO] [stdout] | [INFO] [stdout] 673 | let mut datas = v.get("data").unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/bot.rs:747:21 [INFO] [stdout] | [INFO] [stdout] 747 | let mut c = ii * 10; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/db_mongo.rs:315:16 [INFO] [stdout] | [INFO] [stdout] 315 | Ok(x) => { Ok(true) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/db_mongo.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | Err(e) => { Err("error ao inserir".to_string()) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/chat/db_mongo.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let b = bso.as_document().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter` [INFO] [stdout] --> src/chat/db_mongo.rs:288:13 [INFO] [stdout] | [INFO] [stdout] 288 | let filter = doc! { "app": st.get("app").unwrap().as_str().unwrap() }; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/chat/db_mongo.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | Ok(x) => { Ok(true) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/db_mongo.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | Err(e) => { Err("error ao inserir".to_string()) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http/http_controller.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut value : serde_json::Value = x.json().await.unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/http/insta_controller.rs:64:39 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn webhook(db: MongoDb<'_>, config: &State, task: Json) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/insta_controller.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 75 | Some(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/http/insta_controller.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | Ok(c) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/http/models.rs:186:77 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn send_facebook(&self, vec: Vec>) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/http/siga_controller.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn send(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/http/siga_controller.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let req: Client = Client::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_value` [INFO] [stdout] --> src/chat/db_mongo.rs:522:56 [INFO] [stdout] | [INFO] [stdout] 522 | pub async fn get_all_client_key_bots_by_app(&self, app_value: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `appName` [INFO] [stdout] --> src/http/siga_controller.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn get_clients_chat(db: MongoDb<'_>, appName: String, state:String) -> Result>>>, BadRequest<... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_appName` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | Ok(x) => Ok(status::Accepted::<()>(None)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/http/siga_controller.rs:181:23 [INFO] [stdout] | [INFO] [stdout] 181 | pub async fn template(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/http/siga_controller.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | let req: Client = Client::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/http/siga_controller.rs:209:27 [INFO] [stdout] | [INFO] [stdout] 209 | pub async fn send_archive(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/http/siga_controller.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | let req: Client = Client::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:290:25 [INFO] [stdout] | [INFO] [stdout] 290 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:293:25 [INFO] [stdout] | [INFO] [stdout] 293 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:298:25 [INFO] [stdout] | [INFO] [stdout] 298 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:348:28 [INFO] [stdout] | [INFO] [stdout] 348 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:361:29 [INFO] [stdout] | [INFO] [stdout] 361 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:378:45 [INFO] [stdout] | [INFO] [stdout] 378 | ... Err(e) => { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:386:33 [INFO] [stdout] | [INFO] [stdout] 386 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:396:41 [INFO] [stdout] | [INFO] [stdout] 396 | ... Err(e) => { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:432:44 [INFO] [stdout] | [INFO] [stdout] 432 | ... Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:454:28 [INFO] [stdout] | [INFO] [stdout] 454 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:466:29 [INFO] [stdout] | [INFO] [stdout] 466 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:476:28 [INFO] [stdout] | [INFO] [stdout] 476 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:488:29 [INFO] [stdout] | [INFO] [stdout] 488 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:498:28 [INFO] [stdout] | [INFO] [stdout] 498 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:510:29 [INFO] [stdout] | [INFO] [stdout] 510 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:517:25 [INFO] [stdout] | [INFO] [stdout] 517 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/http/siga_controller.rs:520:25 [INFO] [stdout] | [INFO] [stdout] 520 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:528:28 [INFO] [stdout] | [INFO] [stdout] 528 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:540:29 [INFO] [stdout] | [INFO] [stdout] 540 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:584:44 [INFO] [stdout] | [INFO] [stdout] 584 | ... Ok(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:602:28 [INFO] [stdout] | [INFO] [stdout] 602 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:614:29 [INFO] [stdout] | [INFO] [stdout] 614 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:630:28 [INFO] [stdout] | [INFO] [stdout] 630 | Ok(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:642:29 [INFO] [stdout] | [INFO] [stdout] 642 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/http/siga_controller.rs:658:44 [INFO] [stdout] | [INFO] [stdout] 658 | ... Ok(c) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:659:45 [INFO] [stdout] | [INFO] [stdout] 659 | ... Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/http/siga_controller.rs:694:52 [INFO] [stdout] | [INFO] [stdout] 694 | ... Ok(x) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:326:32 [INFO] [stdout] | [INFO] [stdout] 326 | ... Ok(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:355:40 [INFO] [stdout] | [INFO] [stdout] 355 | ... Ok(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:461:40 [INFO] [stdout] | [INFO] [stdout] 461 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:483:40 [INFO] [stdout] | [INFO] [stdout] 483 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:505:40 [INFO] [stdout] | [INFO] [stdout] 505 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:535:40 [INFO] [stdout] | [INFO] [stdout] 535 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:609:40 [INFO] [stdout] | [INFO] [stdout] 609 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/siga_controller.rs:637:40 [INFO] [stdout] | [INFO] [stdout] 637 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/db_mongo.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | if let Some(mut bot) = existing_bot { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter` [INFO] [stdout] --> src/chat/db_mongo.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let filter = doc! { "app": app.as_str() }; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http/insta_controller.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut params = s.split('&').map(|kv| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/factory_msg_send_text.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | let mut g: Vec<&str> = name.split("::").collect(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chat/factory_msg_send_text.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn factory_text(mut v1:String) -> (String, bool, String, TypeMidia, bool) { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/chat/mod.rs:362:15 [INFO] [stdout] | [INFO] [stdout] 362 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_status` is never used [INFO] [stdout] --> src/model/mongo.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | pub async fn update_status(st: &Status, db: &Database) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Channels` is never used [INFO] [stdout] --> src/http/models.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Channels { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_facebook` is never used [INFO] [stdout] --> src/http/models.rs:186:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl SendMessage { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 186 | pub async fn send_facebook(&self, vec: Vec>) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_bot` is never used [INFO] [stdout] --> src/http/models.rs:190:10 [INFO] [stdout] | [INFO] [stdout] 190 | async fn is_bot(req: &reqwest::Client, app: String, number: String) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_template` is never used [INFO] [stdout] --> src/http/siga_controller.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn read_template(appName: String) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cofg.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct JobWP<'r>(pub(crate) & 'r Sender); [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [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] 61 | pub struct JobWP<'r>(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/gupshup_controller.rs:121:21 [INFO] [stdout] | [INFO] [stdout] 121 | / req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stdout] 122 | | // .header("Content-Type", "application/json") [INFO] [stdout] 123 | | .json(&msg) [INFO] [stdout] 124 | | .send().await; [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] 121 | let _ = req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/gupshup_controller.rs:158:21 [INFO] [stdout] | [INFO] [stdout] 158 | / req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stdout] 159 | | // .header("Content-Type", "application/json") [INFO] [stdout] 160 | | .json(&msg) [INFO] [stdout] 161 | | .send().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] 158 | let _ = req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sendTemplate` should have a snake case name [INFO] [stdout] --> src/http/models.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn sendTemplate(&self, vec: &SendWP) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `send_template` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sendNoTime` should have a snake case name [INFO] [stdout] --> src/http/models.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn sendNoTime(&self, vec: &SendWP) -> Result { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `send_no_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `appName` should have a snake case name [INFO] [stdout] --> src/http/siga_controller.rs:115:28 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn read_template(appName: String) -> Result, String> { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `app_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `appName` should have a snake case name [INFO] [stdout] --> src/http/siga_controller.rs:131:48 [INFO] [stdout] | [INFO] [stdout] 131 | pub async fn get_clients_bots(db: MongoDb<'_>, appName: String) -> Result>>, rocket::response::status::BadRe... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `app_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `appName` should have a snake case name [INFO] [stdout] --> src/http/siga_controller.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn get_clients_chat(db: MongoDb<'_>, appName: String, state:String) -> Result>>>, BadRequest<... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `app_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `updateBots` should have a snake case name [INFO] [stdout] --> src/http/siga_controller.rs:152:14 [INFO] [stdout] | [INFO] [stdout] 152 | pub async fn updateBots(db: MongoDb<'_>, number: String,boolean:bool) -> Result, std::string::Str... [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `update_bots` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 203 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.94s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0, traitobject v0.1.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "397852c8e9593611881d0802f1d9b20f8aa48477565b79d52bfa59170d78486b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "397852c8e9593611881d0802f1d9b20f8aa48477565b79d52bfa59170d78486b", kill_on_drop: false }` [INFO] [stdout] 397852c8e9593611881d0802f1d9b20f8aa48477565b79d52bfa59170d78486b [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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 99db19ec57e6560ee00af0e00af8640cedcda64ec999d83ca461a3a7de48ad2e [INFO] running `Command { std: "docker" "start" "-a" "99db19ec57e6560ee00af0e00af8640cedcda64ec999d83ca461a3a7de48ad2e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `rocket::fs::FileServer` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use rocket::fs::FileServer; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Request`, `State` [INFO] [stderr] --> src/model/mongo.rs:5:14 [INFO] [stderr] | [INFO] [stderr] 5 | use rocket::{Request, State}; [INFO] [stderr] | ^^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FromRequest`, `Outcome` [INFO] [stderr] --> src/model/mongo.rs:6:23 [INFO] [stderr] | [INFO] [stderr] 6 | use rocket::request::{FromRequest, Outcome}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::future::Future` [INFO] [stderr] --> src/http/gupshup_controller.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::future::Future; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Error`, `Response` [INFO] [stderr] --> src/http/gupshup_controller.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use reqwest::{Client, Error, Response}; [INFO] [stderr] | ^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BadRequest`, `Created` [INFO] [stderr] --> src/http/gupshup_controller.rs:4:32 [INFO] [stderr] | [INFO] [stderr] 4 | use rocket::response::status::{BadRequest, Created}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::to_string` [INFO] [stderr] --> src/http/gupshup_controller.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use serde_json::to_string; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `MessageText`, `SendWP` [INFO] [stderr] --> src/http/gupshup_controller.rs:11:33 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::chat::send_list_wp::{MessageText, SendWP}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get_number_app` [INFO] [stderr] --> src/http/gupshup_controller.rs:12:19 [INFO] [stderr] | [INFO] [stderr] 12 | use crate::cofg::{get_number_app, NewJob}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `select_status` [INFO] [stderr] --> src/http/gupshup_controller.rs:14:27 [INFO] [stderr] | [INFO] [stderr] 14 | use crate::model::mongo::{select_status}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `web_hook` [INFO] [stderr] --> src/http/gupshup_controller.rs:17:14 [INFO] [stderr] | [INFO] [stderr] 17 | pub async fn web_hook(db: MongoDb<'_>, job: &State>, task: Json) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::BufRead` [INFO] [stderr] --> src/http/http_controller.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::BufRead; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Error`, `Response` [INFO] [stderr] --> src/http/http_controller.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use reqwest::{Client, Error, Response}; [INFO] [stderr] | ^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::sync::mpsc::error::SendError` [INFO] [stderr] --> src/http/http_controller.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use tokio::sync::mpsc::error::SendError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::sync::mpsc::Sender` [INFO] [stderr] --> src/http/http_controller.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use tokio::sync::mpsc::Sender; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::cofg::JobWP` [INFO] [stderr] --> src/http/http_controller.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use crate::cofg::JobWP; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `insert` [INFO] [stderr] --> src/http/http_controller.rs:17:14 [INFO] [stderr] | [INFO] [stderr] 17 | pub async fn insert(db: MongoDb<'_>, task: Json) -> Result, status::BadRequest> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `facebook_token` [INFO] [stderr] --> src/http/http_controller.rs:29:14 [INFO] [stderr] | [INFO] [stderr] 29 | pub async fn facebook_token(db: MongoDb<'_>, task: Json) -> Result, status::BadRequest> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get` [INFO] [stderr] --> src/http/http_controller.rs:87:14 [INFO] [stderr] | [INFO] [stderr] 87 | pub async fn get(db: MongoDb<'_>) -> Result>>, status::BadRequest> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/http/insta_controller.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Message` [INFO] [stderr] --> src/http/insta_controller.rs:13:37 [INFO] [stderr] | [INFO] [stderr] 13 | use crate::chat::models_instagram::{Message, ReceiverInstagram}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `webhook` [INFO] [stderr] --> src/http/insta_controller.rs:64:14 [INFO] [stderr] | [INFO] [stderr] 64 | pub async fn webhook(db: MongoDb<'_>, config: &State, task: Json) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `messaging_webhook` [INFO] [stderr] --> src/http/insta_controller.rs:101:14 [INFO] [stderr] | [INFO] [stderr] 101 | pub async fn messaging_webhook(config: &State, param: QueryParams) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/http/models.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DateTime`, `NaiveDateTime`, `Utc` [INFO] [stderr] --> src/http/models.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono_tz::Europe::Lisbon` [INFO] [stderr] --> src/http/models.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use chrono_tz::Europe::Lisbon; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Error`, `Response`, `StatusCode` [INFO] [stderr] --> src/http/models.rs:6:23 [INFO] [stderr] | [INFO] [stderr] 6 | use reqwest::{Client, Response, Error, StatusCode}; [INFO] [stderr] | ^^^^^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `whatsapp` should have an upper camel case name [INFO] [stderr] --> src/http/models.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | whatsapp, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Whatsapp` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `sms` should have an upper camel case name [INFO] [stderr] --> src/http/models.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | sms, [INFO] [stderr] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Sms` [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ChatDataType`, `Chat`, `ClientKeyBot` [INFO] [stderr] --> src/http/siga_controller.rs:19:28 [INFO] [stderr] | [INFO] [stderr] 19 | use crate::chat::structs::{Chat, ChatDataType, ClientKeyBot}; [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Leads` [INFO] [stderr] --> src/http/siga_controller.rs:20:73 [INFO] [stderr] | [INFO] [stderr] 20 | use crate::cofg::{api_leads, get_app_app, get_app_id, HOST_API_GUPSHUP, Leads, NewJob}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `send` [INFO] [stderr] --> src/http/siga_controller.rs:69:14 [INFO] [stderr] | [INFO] [stderr] 69 | pub async fn send(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `read_system` [INFO] [stderr] --> src/http/siga_controller.rs:97:14 [INFO] [stderr] | [INFO] [stderr] 97 | pub async fn read_system(task: Json) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `read_template` [INFO] [stderr] --> src/http/siga_controller.rs:115:14 [INFO] [stderr] | [INFO] [stderr] 115 | pub async fn read_template(appName: String) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get_clients_bots` [INFO] [stderr] --> src/http/siga_controller.rs:131:14 [INFO] [stderr] | [INFO] [stderr] 131 | pub async fn get_clients_bots(db: MongoDb<'_>, appName: String) -> Result>>, rocket::response::status::BadRe... [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get_clients_chat` [INFO] [stderr] --> src/http/siga_controller.rs:140:14 [INFO] [stderr] | [INFO] [stderr] 140 | pub async fn get_clients_chat(db: MongoDb<'_>, appName: String, state:String) -> Result>>>, BadRequest<... [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `updateBots` [INFO] [stderr] --> src/http/siga_controller.rs:152:14 [INFO] [stderr] | [INFO] [stderr] 152 | pub async fn updateBots(db: MongoDb<'_>, number: String,boolean:bool) -> Result, std::string::Str... [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `money` [INFO] [stderr] --> src/http/siga_controller.rs:164:14 [INFO] [stderr] | [INFO] [stderr] 164 | pub async fn money() -> Result, String> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `template` [INFO] [stderr] --> src/http/siga_controller.rs:181:14 [INFO] [stderr] | [INFO] [stderr] 181 | pub async fn template(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `send_archive` [INFO] [stderr] --> src/http/siga_controller.rs:209:14 [INFO] [stderr] | [INFO] [stderr] 209 | pub async fn send_archive(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `agente` [INFO] [stderr] --> src/http/siga_controller.rs:270:14 [INFO] [stderr] | [INFO] [stderr] 270 | pub async fn agente(db: MongoDb<'_>, job: &State>, task: Json) -> Result, String> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ops::Deref` [INFO] [stderr] --> src/cofg.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::ops::Deref; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `SendError`, `channel` [INFO] [stderr] --> src/cofg.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use std::sync::mpsc::{channel, SendError}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/cofg.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NaiveDateTime` [INFO] [stderr] --> src/cofg.rs:5:15 [INFO] [stderr] | [INFO] [stderr] 5 | use chrono::{ NaiveDateTime}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Error`, `Response` [INFO] [stderr] --> src/cofg.rs:6:15 [INFO] [stderr] | [INFO] [stderr] 6 | use reqwest::{Error, Response}; [INFO] [stderr] | ^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/cofg.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Receiver`, `mpsc`, `oneshot` [INFO] [stderr] --> src/cofg.rs:11:19 [INFO] [stderr] | [INFO] [stderr] 11 | use tokio::sync::{mpsc, oneshot::{Receiver, Sender}, oneshot}; [INFO] [stderr] | ^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fmt::format` [INFO] [stderr] --> src/chat/mod.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::fmt::format; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::num::ParseIntError` [INFO] [stderr] --> src/chat/mod.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::num::ParseIntError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DateTime`, `Utc` [INFO] [stderr] --> src/chat/mod.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | use chrono::{DateTime, Utc}; [INFO] [stderr] | ^^^^^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono_tz::Europe::Lisbon` [INFO] [stderr] --> src/chat/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use chrono_tz::Europe::Lisbon; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `mongodb::error::Error` [INFO] [stderr] --> src/chat/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use mongodb::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::response::status` [INFO] [stderr] --> src/chat/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use rocket::response::status; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::chat::structs::ClientKeyBot` [INFO] [stderr] --> src/chat/mod.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::chat::structs::ClientKeyBot; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `update_status` [INFO] [stderr] --> src/chat/mod.rs:15:57 [INFO] [stderr] | [INFO] [stderr] 15 | use crate::model::mongo::{insert_status, select_status, update_status}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Message` [INFO] [stderr] --> src/chat/bot.rs:10:97 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::chat::send_list_wp::{ButtonWP, ContentBT, ContentMD, GlobalButton, ImageMidia, Item, Message, MessageText, MidiaType, OptionBT... [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ClientKeyBot` [INFO] [stderr] --> src/chat/bot.rs:11:48 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::chat::structs::{Chat, ChatDataType, ClientKeyBot}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `API_DEV`, `API_PRODU` [INFO] [stderr] --> src/chat/bot.rs:16:19 [INFO] [stderr] | [INFO] [stderr] 16 | use crate::cofg::{API_DEV, API_PRODU, get_number_app}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/chat/send_list_wp.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Error` [INFO] [stderr] --> src/chat/send_list_wp.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use serde_json::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/chat/structs/mod.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Client` [INFO] [stderr] --> src/chat/db_mongo.rs:5:21 [INFO] [stderr] | [INFO] [stderr] 5 | use mongodb::{bson, Client, Database}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `bson` [INFO] [stderr] --> src/chat/db_mongo.rs:6:31 [INFO] [stderr] | [INFO] [stderr] 6 | use mongodb::bson::{Bson, doc,bson}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ClientOptions` [INFO] [stderr] --> src/chat/db_mongo.rs:8:24 [INFO] [stderr] | [INFO] [stderr] 8 | use mongodb::options::{ClientOptions, FindOptions, UpdateOptions}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `regex::Regex` [INFO] [stderr] --> src/chat/db_mongo.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use regex::Regex; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ClientKeyBot` [INFO] [stderr] --> src/chat/db_mongo.rs:15:48 [INFO] [stderr] | [INFO] [stderr] 15 | use crate::chat::structs::{Chat, ChatDataType, ClientKeyBot}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/model/mongo.rs:49:13 [INFO] [stderr] | [INFO] [stderr] 49 | Err(err) => Err(String::from("error em atualizar o status")) [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/model/mongo.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 57 | Ok(v) => Ok(true), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/model/mongo.rs:58:13 [INFO] [stderr] | [INFO] [stderr] 58 | Err(err) => Err(String::from("error em atualizar o status")) [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/gupshup_controller.rs:41:25 [INFO] [stderr] | [INFO] [stderr] 41 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/gupshup_controller.rs:47:25 [INFO] [stderr] | [INFO] [stderr] 47 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/gupshup_controller.rs:49:25 [INFO] [stderr] | [INFO] [stderr] 49 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/gupshup_controller.rs:51:25 [INFO] [stderr] | [INFO] [stderr] 51 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/gupshup_controller.rs:83:29 [INFO] [stderr] | [INFO] [stderr] 83 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/gupshup_controller.rs:100:40 [INFO] [stderr] | [INFO] [stderr] 100 | ... Ok(x) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/gupshup_controller.rs:108:25 [INFO] [stderr] | [INFO] [stderr] 108 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/gupshup_controller.rs:110:25 [INFO] [stderr] | [INFO] [stderr] 110 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/gupshup_controller.rs:112:25 [INFO] [stderr] | [INFO] [stderr] 112 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/gupshup_controller.rs:114:25 [INFO] [stderr] | [INFO] [stderr] 114 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/gupshup_controller.rs:116:25 [INFO] [stderr] | [INFO] [stderr] 116 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/gupshup_controller.rs:146:36 [INFO] [stderr] | [INFO] [stderr] 146 | ... Ok(x) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/http/gupshup_controller.rs:172:36 [INFO] [stderr] | [INFO] [stderr] 172 | ... Ok(c) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/gupshup_controller.rs:173:37 [INFO] [stderr] | [INFO] [stderr] 173 | ... Err(e) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/gupshup_controller.rs:188:44 [INFO] [stderr] | [INFO] [stderr] 188 | ... Ok(x) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/chat/mod.rs:65:28 [INFO] [stderr] | [INFO] [stderr] 65 | Ok(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/chat/mod.rs:81:36 [INFO] [stderr] | [INFO] [stderr] 81 | ... Ok(e) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/chat/mod.rs:82:37 [INFO] [stderr] | [INFO] [stderr] 82 | ... Err(s) => { } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/chat/mod.rs:86:29 [INFO] [stderr] | [INFO] [stderr] 86 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/chat/mod.rs:90:36 [INFO] [stderr] | [INFO] [stderr] 90 | ... Ok(c) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ar` [INFO] [stderr] --> src/chat/bot.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | let ar: Vec = tmp.iter().map(|c| c.replace("-", "")).filter(|c| c.as_str() != "").collect(); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_ar` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `midia` [INFO] [stderr] --> src/chat/bot.rs:250:51 [INFO] [stderr] | [INFO] [stderr] 250 | ChatDataType::ButtonMidia(midia) => { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_midia` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `butto` [INFO] [stderr] --> src/chat/bot.rs:253:50 [INFO] [stderr] | [INFO] [stderr] 253 | ChatDataType::ButtonText(butto) => { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_butto` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `midia` [INFO] [stderr] --> src/chat/bot.rs:459:51 [INFO] [stderr] | [INFO] [stderr] 459 | ChatDataType::ButtonMidia(midia) => { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_midia` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/chat/bot.rs:141:104 [INFO] [stderr] | [INFO] [stderr] 141 | ... let mut it:Vec> = bot.payload.iter().enumerate().map(|(i, v)| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/chat/bot.rs:364:94 [INFO] [stderr] | [INFO] [stderr] 364 | ... let mut it: Vec = bot.payload.iter().enumerate().map(|(i, v)| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/bot.rs:141:37 [INFO] [stderr] | [INFO] [stderr] 141 | ... let mut it:Vec> = bot.payload.iter().enumerate().map(|(i, v)| { [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/chat/bot.rs:167:37 [INFO] [stderr] | [INFO] [stderr] 167 | ... let mut text_final = if map.contains_key("voltar") { [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/bot.rs:357:37 [INFO] [stderr] | [INFO] [stderr] 357 | ... let mut gb: Vec = bot.button_menu.iter().map(|c| { [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/bot.rs:364:37 [INFO] [stderr] | [INFO] [stderr] 364 | ... let mut it: Vec = bot.payload.iter().enumerate().map(|(i, v)| { [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/bot.rs:382:37 [INFO] [stderr] | [INFO] [stderr] 382 | ... let mut text_final = if map.contains_key("voltar") { [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lisbon_time` [INFO] [stderr] --> src/chat/db_mongo.rs:359:13 [INFO] [stderr] | [INFO] [stderr] 359 | let lisbon_time = utc.with_timezone(&Lisbon); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lisbon_time` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/chat/db_mongo.rs:397:16 [INFO] [stderr] | [INFO] [stderr] 397 | Ok(x) => { Ok(true) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `w` [INFO] [stderr] --> src/chat/db_mongo.rs:398:17 [INFO] [stderr] | [INFO] [stderr] 398 | Err(w) => Err("Failed to insert the document".to_string()) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key` [INFO] [stderr] --> src/chat/mod.rs:202:13 [INFO] [stderr] | [INFO] [stderr] 202 | let key = std::env::var("KEY_API").unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `new_len` [INFO] [stderr] --> src/chat/mod.rs:222:45 [INFO] [stderr] | [INFO] [stderr] 222 | ... let (e, new_len) = s.split_at(len - 2); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_len` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/chat/mod.rs:258:36 [INFO] [stderr] | [INFO] [stderr] 258 | ... Ok(x) => { println!("atualizou o status") } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/chat/mod.rs:263:36 [INFO] [stderr] | [INFO] [stderr] 263 | ... Ok(c) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/mod.rs:220:41 [INFO] [stderr] | [INFO] [stderr] 220 | ... let mut s = String::from(st.st.clone()); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/chat/db_mongo.rs:106:13 [INFO] [stderr] | [INFO] [stderr] 106 | let b = bso.as_document().unwrap(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `new_len` [INFO] [stderr] --> src/chat/mod.rs:321:29 [INFO] [stderr] | [INFO] [stderr] 321 | let (e, new_len) = s.split_at(len - 2); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_len` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/chat/mod.rs:335:28 [INFO] [stderr] | [INFO] [stderr] 335 | Ok(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/chat/mod.rs:337:36 [INFO] [stderr] | [INFO] [stderr] 337 | ... Ok(c) => { Ok(true) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/chat/mod.rs:338:37 [INFO] [stderr] | [INFO] [stderr] 338 | ... Err(e) => { Err(1) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/chat/mod.rs:341:29 [INFO] [stderr] | [INFO] [stderr] 341 | Err(e) => { Err(0) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/chat/mod.rs:347:17 [INFO] [stderr] | [INFO] [stderr] 347 | Err(e) => { Err(2) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/mod.rs:319:25 [INFO] [stderr] | [INFO] [stderr] 319 | let mut s = String::from(st.st.clone()); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key` [INFO] [stderr] --> src/chat/mod.rs:137:13 [INFO] [stderr] | [INFO] [stderr] 137 | let key = std::env::var("KEY_API").unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/chat/mod.rs:154:36 [INFO] [stderr] | [INFO] [stderr] 154 | ... Ok(x) => { println!("atualizou o status") } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/chat/mod.rs:159:36 [INFO] [stderr] | [INFO] [stderr] 159 | ... Ok(c) => { Ok(new_status) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/chat/db_mongo.rs:273:13 [INFO] [stderr] | [INFO] [stderr] 273 | let b = bso.as_document().unwrap(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `filter` [INFO] [stderr] --> src/chat/db_mongo.rs:275:13 [INFO] [stderr] | [INFO] [stderr] 275 | let filter = doc! { "app": st.get("app").unwrap().as_str().unwrap() }; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/chat/db_mongo.rs:338:16 [INFO] [stderr] | [INFO] [stderr] 338 | Ok(x) => { Ok(true) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/chat/db_mongo.rs:339:17 [INFO] [stderr] | [INFO] [stderr] 339 | Err(e) => { Err("error ao inserir".to_string()) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/chat/bot.rs:769:17 [INFO] [stderr] | [INFO] [stderr] 769 | for i in 0..it.len() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/bot.rs:673:13 [INFO] [stderr] | [INFO] [stderr] 673 | let mut datas = v.get("data").unwrap(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/bot.rs:747:21 [INFO] [stderr] | [INFO] [stderr] 747 | let mut c = ii * 10; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/chat/db_mongo.rs:315:16 [INFO] [stderr] | [INFO] [stderr] 315 | Ok(x) => { Ok(true) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/chat/db_mongo.rs:316:17 [INFO] [stderr] | [INFO] [stderr] 316 | Err(e) => { Err("error ao inserir".to_string()) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/chat/db_mongo.rs:286:13 [INFO] [stderr] | [INFO] [stderr] 286 | let b = bso.as_document().unwrap(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `filter` [INFO] [stderr] --> src/chat/db_mongo.rs:288:13 [INFO] [stderr] | [INFO] [stderr] 288 | let filter = doc! { "app": st.get("app").unwrap().as_str().unwrap() }; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/chat/db_mongo.rs:292:16 [INFO] [stderr] | [INFO] [stderr] 292 | Ok(x) => { Ok(true) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/chat/db_mongo.rs:293:17 [INFO] [stderr] | [INFO] [stderr] 293 | Err(e) => { Err("error ao inserir".to_string()) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/http/http_controller.rs:96:17 [INFO] [stderr] | [INFO] [stderr] 96 | let mut value : serde_json::Value = x.json().await.unwrap(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/http/insta_controller.rs:64:39 [INFO] [stderr] | [INFO] [stderr] 64 | pub async fn webhook(db: MongoDb<'_>, config: &State, task: Json) -> Result { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/insta_controller.rs:75:14 [INFO] [stderr] | [INFO] [stderr] 75 | Some(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/http/insta_controller.rs:85:28 [INFO] [stderr] | [INFO] [stderr] 85 | Ok(c) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vec` [INFO] [stderr] --> src/http/models.rs:186:77 [INFO] [stderr] | [INFO] [stderr] 186 | pub async fn send_facebook(&self, vec: Vec>) {} [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db` [INFO] [stderr] --> src/http/siga_controller.rs:69:19 [INFO] [stderr] | [INFO] [stderr] 69 | pub async fn send(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/http/siga_controller.rs:71:9 [INFO] [stderr] | [INFO] [stderr] 71 | let req: Client = Client::new(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `app_value` [INFO] [stderr] --> src/chat/db_mongo.rs:522:56 [INFO] [stderr] | [INFO] [stderr] 522 | pub async fn get_all_client_key_bots_by_app(&self, app_value: &str) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_value` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `appName` [INFO] [stderr] --> src/http/siga_controller.rs:140:48 [INFO] [stderr] | [INFO] [stderr] 140 | pub async fn get_clients_chat(db: MongoDb<'_>, appName: String, state:String) -> Result>>>, BadRequest<... [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_appName` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:157:12 [INFO] [stderr] | [INFO] [stderr] 157 | Ok(x) => Ok(status::Accepted::<()>(None)), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db` [INFO] [stderr] --> src/http/siga_controller.rs:181:23 [INFO] [stderr] | [INFO] [stderr] 181 | pub async fn template(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/http/siga_controller.rs:183:9 [INFO] [stderr] | [INFO] [stderr] 183 | let req: Client = Client::new(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db` [INFO] [stderr] --> src/http/siga_controller.rs:209:27 [INFO] [stderr] | [INFO] [stderr] 209 | pub async fn send_archive(db: MongoDb<'_>, task: Json) -> Result, String> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/http/siga_controller.rs:211:9 [INFO] [stderr] | [INFO] [stderr] 211 | let req: Client = Client::new(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/siga_controller.rs:290:25 [INFO] [stderr] | [INFO] [stderr] 290 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/siga_controller.rs:293:25 [INFO] [stderr] | [INFO] [stderr] 293 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/siga_controller.rs:298:25 [INFO] [stderr] | [INFO] [stderr] 298 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/siga_controller.rs:301:25 [INFO] [stderr] | [INFO] [stderr] 301 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:348:28 [INFO] [stderr] | [INFO] [stderr] 348 | Ok(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:361:29 [INFO] [stderr] | [INFO] [stderr] 361 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:378:45 [INFO] [stderr] | [INFO] [stderr] 378 | ... Err(e) => { } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:386:33 [INFO] [stderr] | [INFO] [stderr] 386 | ... Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:396:41 [INFO] [stderr] | [INFO] [stderr] 396 | ... Err(e) => { } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:432:44 [INFO] [stderr] | [INFO] [stderr] 432 | ... Ok(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:454:28 [INFO] [stderr] | [INFO] [stderr] 454 | Ok(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:466:29 [INFO] [stderr] | [INFO] [stderr] 466 | Err(e) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:476:28 [INFO] [stderr] | [INFO] [stderr] 476 | Ok(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:488:29 [INFO] [stderr] | [INFO] [stderr] 488 | Err(e) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:498:28 [INFO] [stderr] | [INFO] [stderr] 498 | Ok(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:510:29 [INFO] [stderr] | [INFO] [stderr] 510 | Err(e) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/siga_controller.rs:517:25 [INFO] [stderr] | [INFO] [stderr] 517 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/http/siga_controller.rs:520:25 [INFO] [stderr] | [INFO] [stderr] 520 | let msg: ParentMessage> = serde_json::from_str(&message.to_string()).unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:528:28 [INFO] [stderr] | [INFO] [stderr] 528 | Ok(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:540:29 [INFO] [stderr] | [INFO] [stderr] 540 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:584:44 [INFO] [stderr] | [INFO] [stderr] 584 | ... Ok(x) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:602:28 [INFO] [stderr] | [INFO] [stderr] 602 | Ok(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:614:29 [INFO] [stderr] | [INFO] [stderr] 614 | Err(e) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:630:28 [INFO] [stderr] | [INFO] [stderr] 630 | Ok(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:642:29 [INFO] [stderr] | [INFO] [stderr] 642 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/http/siga_controller.rs:658:44 [INFO] [stderr] | [INFO] [stderr] 658 | ... Ok(c) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:659:45 [INFO] [stderr] | [INFO] [stderr] 659 | ... Err(e) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/http/siga_controller.rs:694:52 [INFO] [stderr] | [INFO] [stderr] 694 | ... Ok(x) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:326:32 [INFO] [stderr] | [INFO] [stderr] 326 | ... Ok(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:355:40 [INFO] [stderr] | [INFO] [stderr] 355 | ... Ok(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:461:40 [INFO] [stderr] | [INFO] [stderr] 461 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:483:40 [INFO] [stderr] | [INFO] [stderr] 483 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:505:40 [INFO] [stderr] | [INFO] [stderr] 505 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:535:40 [INFO] [stderr] | [INFO] [stderr] 535 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:609:40 [INFO] [stderr] | [INFO] [stderr] 609 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/siga_controller.rs:637:40 [INFO] [stderr] | [INFO] [stderr] 637 | ... Ok(e) => { Ok(status::Created::new("".to_string()).body("".to_string())) } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/db_mongo.rs:437:21 [INFO] [stderr] | [INFO] [stderr] 437 | if let Some(mut bot) = existing_bot { [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `filter` [INFO] [stderr] --> src/chat/db_mongo.rs:48:13 [INFO] [stderr] | [INFO] [stderr] 48 | let filter = doc! { "app": app.as_str() }; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/http/insta_controller.rs:29:13 [INFO] [stderr] | [INFO] [stderr] 29 | let mut params = s.split('&').map(|kv| { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/factory_msg_send_text.rs:38:25 [INFO] [stderr] | [INFO] [stderr] 38 | let mut g: Vec<&str> = name.split("::").collect(); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/chat/factory_msg_send_text.rs:16:21 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn factory_text(mut v1:String) -> (String, bool, String, TypeMidia, bool) { [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/chat/mod.rs:362:15 [INFO] [stderr] | [INFO] [stderr] 362 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: function `update_status` is never used [INFO] [stderr] --> src/model/mongo.rs:39:14 [INFO] [stderr] | [INFO] [stderr] 39 | pub async fn update_status(st: &Status, db: &Database) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: enum `Channels` is never used [INFO] [stderr] --> src/http/models.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | pub enum Channels { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `send_facebook` is never used [INFO] [stderr] --> src/http/models.rs:186:18 [INFO] [stderr] | [INFO] [stderr] 35 | impl SendMessage { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 186 | pub async fn send_facebook(&self, vec: Vec>) {} [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_bot` is never used [INFO] [stderr] --> src/http/models.rs:190:10 [INFO] [stderr] | [INFO] [stderr] 190 | async fn is_bot(req: &reqwest::Client, app: String, number: String) -> bool { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_template` is never used [INFO] [stderr] --> src/http/siga_controller.rs:115:14 [INFO] [stderr] | [INFO] [stderr] 115 | pub async fn read_template(appName: String) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/cofg.rs:61:22 [INFO] [stderr] | [INFO] [stderr] 61 | pub struct JobWP<'r>(pub(crate) & 'r Sender); [INFO] [stderr] | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this struct [INFO] [stderr] | [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] 61 | pub struct JobWP<'r>(()); [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/http/gupshup_controller.rs:121:21 [INFO] [stderr] | [INFO] [stderr] 121 | / req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stderr] 122 | | // .header("Content-Type", "application/json") [INFO] [stderr] 123 | | .json(&msg) [INFO] [stderr] 124 | | .send().await; [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] 121 | let _ = req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/http/gupshup_controller.rs:158:21 [INFO] [stderr] | [INFO] [stderr] 158 | / req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stderr] 159 | | // .header("Content-Type", "application/json") [INFO] [stderr] 160 | | .json(&msg) [INFO] [stderr] 161 | | .send().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] 158 | let _ = req.post("https://siga-telecom.herokuapp.com/api/v1/whatsapp/webHookSocket") [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: method `sendTemplate` should have a snake case name [INFO] [stderr] --> src/http/models.rs:41:18 [INFO] [stderr] | [INFO] [stderr] 41 | pub async fn sendTemplate(&self, vec: &SendWP) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `send_template` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `sendNoTime` should have a snake case name [INFO] [stderr] --> src/http/models.rs:77:18 [INFO] [stderr] | [INFO] [stderr] 77 | pub async fn sendNoTime(&self, vec: &SendWP) -> Result { [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `send_no_time` [INFO] [stderr] [INFO] [stderr] warning: variable `appName` should have a snake case name [INFO] [stderr] --> src/http/siga_controller.rs:115:28 [INFO] [stderr] | [INFO] [stderr] 115 | pub async fn read_template(appName: String) -> Result, String> { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `app_name` [INFO] [stderr] [INFO] [stderr] warning: variable `appName` should have a snake case name [INFO] [stderr] --> src/http/siga_controller.rs:131:48 [INFO] [stderr] | [INFO] [stderr] 131 | pub async fn get_clients_bots(db: MongoDb<'_>, appName: String) -> Result>>, rocket::response::status::BadRe... [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `app_name` [INFO] [stderr] [INFO] [stderr] warning: variable `appName` should have a snake case name [INFO] [stderr] --> src/http/siga_controller.rs:140:48 [INFO] [stderr] | [INFO] [stderr] 140 | pub async fn get_clients_chat(db: MongoDb<'_>, appName: String, state:String) -> Result>>>, BadRequest<... [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `app_name` [INFO] [stderr] [INFO] [stderr] warning: function `updateBots` should have a snake case name [INFO] [stderr] --> src/http/siga_controller.rs:152:14 [INFO] [stderr] | [INFO] [stderr] 152 | pub async fn updateBots(db: MongoDb<'_>, number: String,boolean:bool) -> Result, std::string::Str... [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `update_bots` [INFO] [stderr] [INFO] [stderr] warning: `crm-back` (bin "crm-back" test) generated 203 warnings (run `cargo fix --bin "crm-back" --tests` to apply 79 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0, traitobject v0.1.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/crm_back-976788424d9e0215) [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" "99db19ec57e6560ee00af0e00af8640cedcda64ec999d83ca461a3a7de48ad2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99db19ec57e6560ee00af0e00af8640cedcda64ec999d83ca461a3a7de48ad2e", kill_on_drop: false }` [INFO] [stdout] 99db19ec57e6560ee00af0e00af8640cedcda64ec999d83ca461a3a7de48ad2e