[INFO] cloning repository https://github.com/aymanmh/rustbot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aymanmh/rustbot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faymanmh%2Frustbot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faymanmh%2Frustbot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 73f94363bdd6de3353bb449dbd36b35a9e2a4d7b [INFO] linting aymanmh/rustbot against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faymanmh%2Frustbot" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/aymanmh/rustbot [INFO] finished tweaking git repo https://github.com/aymanmh/rustbot [INFO] tweaked toml for git repo https://github.com/aymanmh/rustbot written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/aymanmh/rustbot on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/aymanmh/rustbot 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded darling_macro v0.13.0 [INFO] [stderr] Downloaded darling v0.13.0 [INFO] [stderr] Downloaded teloxide v0.4.0 [INFO] [stderr] Downloaded exitfailure v0.5.1 [INFO] [stderr] Downloaded tokio-macros v1.2.0 [INFO] [stderr] Downloaded configparser v2.1.0 [INFO] [stderr] Downloaded serde_with_macros v1.4.2 [INFO] [stderr] Downloaded tokio-stream v0.1.6 [INFO] [stderr] Downloaded pretty_env_logger v0.4.0 [INFO] [stderr] Downloaded openssl-sys v0.9.64 [INFO] [stderr] Downloaded darling_core v0.13.0 [INFO] [stderr] Downloaded teloxide-macros v0.4.0 [INFO] [stderr] Downloaded teloxide-core v0.2.2 [INFO] [stderr] Downloaded reqwest v0.11.3 [INFO] [stderr] Downloaded vcpkg v0.2.14 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74fbc1d25bf5dfca3eec99906de640e22acd5d9f31c798c4061af299adeb37ae [INFO] running `Command { std: "docker" "start" "-a" "74fbc1d25bf5dfca3eec99906de640e22acd5d9f31c798c4061af299adeb37ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74fbc1d25bf5dfca3eec99906de640e22acd5d9f31c798c4061af299adeb37ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74fbc1d25bf5dfca3eec99906de640e22acd5d9f31c798c4061af299adeb37ae", kill_on_drop: false }` [INFO] [stdout] 74fbc1d25bf5dfca3eec99906de640e22acd5d9f31c798c4061af299adeb37ae [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d14aaefe82ce8cc4e586d706b1821fbd7b8fce160dbaf4a35127ab241cac42c [INFO] running `Command { std: "docker" "start" "-a" "5d14aaefe82ce8cc4e586d706b1821fbd7b8fce160dbaf4a35127ab241cac42c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling openssl-sys v0.9.64 [INFO] [stderr] Compiling tokio v1.7.1 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling openssl v0.10.35 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking openssl-probe v0.1.4 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking http-body v0.4.2 [INFO] [stderr] Checking httpdate v1.0.1 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking object v0.25.3 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking ipnet v2.3.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking never v0.1.0 [INFO] [stderr] Checking owned-alloc v0.2.0 [INFO] [stderr] Checking configparser v2.1.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking lockfree v0.5.1 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking backtrace v0.3.60 [INFO] [stderr] Compiling darling_core v0.13.0 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling derive_more v0.99.14 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling teloxide-macros v0.4.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking thiserror v1.0.25 [INFO] [stderr] Checking exitfailure v0.5.1 [INFO] [stderr] Checking structopt v0.3.21 [INFO] [stderr] Checking pin-project v1.0.7 [INFO] [stderr] Compiling darling_macro v0.13.0 [INFO] [stderr] Compiling darling v0.13.0 [INFO] [stderr] Compiling serde_with_macros v1.4.2 [INFO] [stderr] Checking futures-executor v0.3.15 [INFO] [stderr] Checking futures v0.3.15 [INFO] [stderr] Checking serde v1.0.126 [INFO] [stderr] Checking tokio-util v0.6.7 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-stream v0.1.6 [INFO] [stderr] Checking h2 v0.3.3 [INFO] [stderr] Checking hyper v0.14.9 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking serde_json v1.0.64 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.3 [INFO] [stderr] Checking teloxide-core v0.2.2 [INFO] [stderr] Checking teloxide v0.4.0 [INFO] [stderr] Checking language v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `exitfailure::ExitFailure` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use exitfailure::ExitFailure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/word_result.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Number` [INFO] [stdout] --> src/word_result.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::Number; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exitfailure::ExitFailure` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use exitfailure::ExitFailure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/word_result.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Number` [INFO] [stdout] --> src/word_result.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::Number; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unwrapped_res` [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let unwrapped_res:word_result::WORDRESULT; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unwrapped_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pronunciation` is never read [INFO] [stdout] --> src/main.rs:40:33 [INFO] [stdout] | [INFO] [stdout] 40 | let mut pronunciation = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unwrapped_res` [INFO] [stdout] --> src/main.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let unwrapped_res:pressmon_result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unwrapped_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/main.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | async fn test() [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `syllables` is never read [INFO] [stdout] --> src/word_result.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct WORDRESULT { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub syllables: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WORDRESULT` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/word_result.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Result { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub derivation: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub examples: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub similar_to: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub synonyms: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub cause: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub antonyms: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub types_of: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub has_types: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Result` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `count` and `list` are never read [INFO] [stdout] --> src/word_result.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Syllables { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 65 | #[serde(rename = "count")] [INFO] [stdout] 66 | pub count: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub list: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Syllables` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/word_api.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn get(word: &String) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 7 - pub async fn get(word: &String) -> Result { [INFO] [stdout] 7 + pub async fn get(word: &str) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `WORDRESULT` contains a capitalized acronym [INFO] [stdout] --> src/word_result.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct WORDRESULT { [INFO] [stdout] | ^^^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Wordresult` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/pressmon_api.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn get(word: &String) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 7 - pub async fn get(word: &String) -> Result { [INFO] [stdout] 7 + pub async fn get(word: &str) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unwrapped_res` [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let unwrapped_res:word_result::WORDRESULT; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unwrapped_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pronunciation` is never read [INFO] [stdout] --> src/main.rs:40:33 [INFO] [stdout] | [INFO] [stdout] 40 | let mut pronunciation = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unwrapped_res` [INFO] [stdout] --> src/main.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let unwrapped_res:pressmon_result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unwrapped_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/main.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | async fn test() [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `syllables` is never read [INFO] [stdout] --> src/word_result.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct WORDRESULT { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub syllables: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WORDRESULT` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/word_result.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Result { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub derivation: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub examples: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub similar_to: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub synonyms: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub cause: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub antonyms: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub types_of: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub has_types: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Result` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `count` and `list` are never read [INFO] [stdout] --> src/word_result.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Syllables { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 65 | #[serde(rename = "count")] [INFO] [stdout] 66 | pub count: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub list: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Syllables` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | if !res.is_err() [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `res.is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `res` after checking its variant with `is_err` [INFO] [stdout] --> src/main.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 37 | if !res.is_err() [INFO] [stdout] | ------------ the check is happening here [INFO] [stdout] 38 | { [INFO] [stdout] 39 | let unwrapped_res = res.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/main.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | return response; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 78 - return response; [INFO] [stdout] 78 + response [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | let res = word_api::get(&word).await; [INFO] [stdout] | ^^^^^ help: change this to: `word` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/main.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | Some(value) => pronunciation = String::from(format!("Pronunciation: {}\n", value.all)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `format!("Pronunciation: {}\n", value.all)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | response.push_str("\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `response.push('\n')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] = note: `#[warn(clippy::single_char_add_str)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | freq.push_str("\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `freq.push('\n')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/main.rs:64:35 [INFO] [stdout] | [INFO] [stdout] 64 | ... = String::from(format!("{} : {}\n", entry.part_of_speech.get_or_insert(String::from("N/A\n")),entry.definition.get_or_insert(String::from("N/A\n")))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `format!("{} : {}\n", entry.part_of_speech.get_or_insert(String::from("N/A\n")),entry.definition.get_or_insert(String::from("N/A\n")))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | if !res.is_err() [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `res.is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | if !res.is_err() [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `res.is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `res` after checking its variant with `is_err` [INFO] [stdout] --> src/main.rs:94:37 [INFO] [stdout] | [INFO] [stdout] 92 | if !res.is_err() [INFO] [stdout] | ------------ the check is happening here [INFO] [stdout] 93 | { [INFO] [stdout] 94 | let unwrapped_res = res.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `res` after checking its variant with `is_err` [INFO] [stdout] --> src/main.rs:115:33 [INFO] [stdout] | [INFO] [stdout] 113 | if !res.is_err() [INFO] [stdout] | ------------ the check is happening here [INFO] [stdout] 114 | { [INFO] [stdout] 115 | unwrapped_res = res.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/main.rs:97:35 [INFO] [stdout] | [INFO] [stdout] 97 | let tempstr = String::from(format!("Source: {} - {}\n", hit.source,hit.body)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `format!("Source: {} - {}\n", hit.source,hit.body)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getWord` should have a snake case name [INFO] [stdout] --> src/main.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | async fn getWord(word: &String) -> String [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_word` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/word_api.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn get(word: &String) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 7 - pub async fn get(word: &String) -> Result { [INFO] [stdout] 7 + pub async fn get(word: &str) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `WORDRESULT` contains a capitalized acronym [INFO] [stdout] --> src/word_result.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct WORDRESULT { [INFO] [stdout] | ^^^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Wordresult` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/google_translate.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | .post(api_url.clone()) [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/pressmon_api.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn get(word: &String) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 7 - pub async fn get(word: &String) -> Result { [INFO] [stdout] 7 + pub async fn get(word: &str) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | if !res.is_err() [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `res.is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `res` after checking its variant with `is_err` [INFO] [stdout] --> src/main.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 37 | if !res.is_err() [INFO] [stdout] | ------------ the check is happening here [INFO] [stdout] 38 | { [INFO] [stdout] 39 | let unwrapped_res = res.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/main.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | return response; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 78 - return response; [INFO] [stdout] 78 + response [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | let res = word_api::get(&word).await; [INFO] [stdout] | ^^^^^ help: change this to: `word` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/main.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | Some(value) => pronunciation = String::from(format!("Pronunciation: {}\n", value.all)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `format!("Pronunciation: {}\n", value.all)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | response.push_str("\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `response.push('\n')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] = note: `#[warn(clippy::single_char_add_str)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | freq.push_str("\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `freq.push('\n')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/main.rs:64:35 [INFO] [stdout] | [INFO] [stdout] 64 | ... = String::from(format!("{} : {}\n", entry.part_of_speech.get_or_insert(String::from("N/A\n")),entry.definition.get_or_insert(String::from("N/A\n")))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `format!("{} : {}\n", entry.part_of_speech.get_or_insert(String::from("N/A\n")),entry.definition.get_or_insert(String::from("N/A\n")))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | if !res.is_err() [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `res.is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | if !res.is_err() [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `res.is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `res` after checking its variant with `is_err` [INFO] [stdout] --> src/main.rs:94:37 [INFO] [stdout] | [INFO] [stdout] 92 | if !res.is_err() [INFO] [stdout] | ------------ the check is happening here [INFO] [stdout] 93 | { [INFO] [stdout] 94 | let unwrapped_res = res.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `res` after checking its variant with `is_err` [INFO] [stdout] --> src/main.rs:115:33 [INFO] [stdout] | [INFO] [stdout] 113 | if !res.is_err() [INFO] [stdout] | ------------ the check is happening here [INFO] [stdout] 114 | { [INFO] [stdout] 115 | unwrapped_res = res.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/main.rs:97:35 [INFO] [stdout] | [INFO] [stdout] 97 | let tempstr = String::from(format!("Source: {} - {}\n", hit.source,hit.body)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `format!("Source: {} - {}\n", hit.source,hit.body)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getWord` should have a snake case name [INFO] [stdout] --> src/main.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | async fn getWord(word: &String) -> String [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_word` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/google_translate.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | .post(api_url.clone()) [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.67s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: teloxide-macros v0.4.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" "5d14aaefe82ce8cc4e586d706b1821fbd7b8fce160dbaf4a35127ab241cac42c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d14aaefe82ce8cc4e586d706b1821fbd7b8fce160dbaf4a35127ab241cac42c", kill_on_drop: false }` [INFO] [stdout] 5d14aaefe82ce8cc4e586d706b1821fbd7b8fce160dbaf4a35127ab241cac42c