[INFO] cloning repository https://github.com/jnylen/enju [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jnylen/enju" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjnylen%2Fenju", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjnylen%2Fenju'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f14fa77296e8ce27121ab172d1cc2d654caf2871 [INFO] linting jnylen/enju against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjnylen%2Fenju" "/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/jnylen/enju [INFO] finished tweaking git repo https://github.com/jnylen/enju [INFO] tweaked toml for git repo https://github.com/jnylen/enju written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jnylen/enju 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/jnylen/enju 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] Updating git repository `https://github.com/ParadoxSpiral/urlshortener-rs` [INFO] [stderr] Updating git repository `https://github.com/ParadoxSpiral/wolfram-alpha-rs` [INFO] [stderr] Updating git repository `https://github.com/RReverser/serde-xml-rs.git` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-sync v0.1.6 [INFO] [stderr] Downloaded rustc-demangle v0.1.15 [INFO] [stderr] Downloaded tokio-executor v0.1.8 [INFO] [stderr] Downloaded migrations_internals v2.3.0 [INFO] [stderr] Downloaded diesel_table_macro_syntax v0.3.0 [INFO] [stderr] Downloaded dsl_auto_type v0.2.0 [INFO] [stderr] Downloaded slog-async v2.3.0 [INFO] [stderr] Downloaded migrations_macros v2.3.0 [INFO] [stderr] Downloaded diesel_migrations v2.3.1 [INFO] [stderr] Downloaded getrandom v0.1.6 [INFO] [stderr] Downloaded serpapi v1.1.0 [INFO] [stderr] Downloaded slog v2.4.1 [INFO] [stderr] Downloaded scraper v0.18.1 [INFO] [stderr] Downloaded irc v1.1.0 [INFO] [stderr] Downloaded flate2 v1.0.9 [INFO] [stderr] Downloaded rayon-core v1.5.0 [INFO] [stderr] Downloaded diesel_derives v2.3.6 [INFO] [stderr] Downloaded reqwest v0.10.10 [INFO] [stderr] Downloaded rayon v1.1.0 [INFO] [stderr] Downloaded syn v0.15.39 [INFO] [stderr] Downloaded miniz_oxide_c_api v0.2.2 [INFO] [stderr] Downloaded hyper v0.13.10 [INFO] [stderr] Downloaded hyper v0.12.31 [INFO] [stderr] Downloaded h2 v0.1.25 [INFO] [stderr] Downloaded futures v0.1.28 [INFO] [stderr] Downloaded term v0.5.2 [INFO] [stderr] Downloaded aho-corasick v0.7.4 [INFO] [stderr] Downloaded miniz_oxide v0.2.2 [INFO] [stderr] Downloaded irc-proto v1.1.0 [INFO] [stderr] Downloaded publicsuffix v1.5.2 [INFO] [stderr] Downloaded slog-term v2.4.0 [INFO] [stderr] Downloaded serde_json v1.0.40 [INFO] [stderr] Downloaded tokio-threadpool v0.1.15 [INFO] [stderr] Downloaded reqwest v0.9.18 [INFO] [stderr] Downloaded diesel v2.3.5 [INFO] [stderr] Downloaded backtrace v0.3.32 [INFO] [stderr] Downloaded backtrace-sys v0.1.30 [INFO] [stderr] Downloaded dotenv v0.14.1 [INFO] [stderr] Downloaded ego-tree v0.6.3 [INFO] [stderr] Downloaded duckduckgo_rs v0.0.1 [INFO] [stderr] Downloaded ipnetwork v0.20.0 [INFO] [stderr] Downloaded rand_chacha v0.2.0 [INFO] [stderr] Downloaded isatty v0.1.9 [INFO] [stderr] Downloaded threadpool v1.7.1 [INFO] [stderr] Downloaded idna_adapter v1.0.0 [INFO] [stderr] Downloaded downcast-rs v2.0.2 [INFO] [stderr] Downloaded libsqlite3-sys v0.31.0 [INFO] [stderr] Downloaded sqlite-wasm-rs v0.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29f7c5a5db60952a42a0c1cdbc4c30d929134b444909faf3781ee558f79e9e6c [INFO] running `Command { std: "docker" "start" "-a" "29f7c5a5db60952a42a0c1cdbc4c30d929134b444909faf3781ee558f79e9e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29f7c5a5db60952a42a0c1cdbc4c30d929134b444909faf3781ee558f79e9e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29f7c5a5db60952a42a0c1cdbc4c30d929134b444909faf3781ee558f79e9e6c", kill_on_drop: false }` [INFO] [stdout] 29f7c5a5db60952a42a0c1cdbc4c30d929134b444909faf3781ee558f79e9e6c [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] 75bf173de124e5dad411c4bbe045d35740fce076559d3a68f8a19c2f2bce35ae [INFO] running `Command { std: "docker" "start" "-a" "75bf173de124e5dad411c4bbe045d35740fce076559d3a68f8a19c2f2bce35ae", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling cc v1.2.50 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Checking futures v0.1.28 [INFO] [stderr] Checking crossbeam-utils v0.6.5 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling openssl-src v300.5.4+3.5.4 [INFO] [stderr] Checking indexmap v2.12.1 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking signal-hook-registry v1.4.7 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking either v1.5.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking num_cpus v1.10.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Compiling backtrace-sys v0.1.30 [INFO] [stderr] Checking phf_shared v0.11.3 [INFO] [stderr] Checking new_debug_unreachable v1.0.3 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Checking utf-8 v0.7.5 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling encoding_rs v0.8.17 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking crossbeam-epoch v0.7.1 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Checking tokio-executor v0.1.8 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Checking serde_json v1.0.40 [INFO] [stderr] Checking owning_ref v0.4.0 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Checking idna_adapter v1.0.0 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking indexmap v1.0.2 [INFO] [stderr] Checking rustc-demangle v0.1.15 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking backtrace v0.3.32 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Checking lock_api v0.1.5 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Checking tokio-io v0.1.12 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking string_cache v0.8.9 [INFO] [stderr] Checking tokio-sync v0.1.6 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Compiling regex v1.1.7 [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Checking tokio-reactor v0.1.9 [INFO] [stderr] Checking regex-syntax v0.6.7 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking http v0.1.17 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking aho-corasick v0.7.4 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking utf8-ranges v1.0.3 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking tokio-threadpool v0.1.15 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tokio-current-thread v0.1.6 [INFO] [stderr] Checking tokio-timer v0.2.11 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Checking string v0.2.1 [INFO] [stderr] Checking tokio-buf v0.1.1 [INFO] [stderr] Compiling hyper v0.12.31 [INFO] [stderr] Compiling miniz_oxide_c_api v0.2.2 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Checking miniz_oxide v0.2.2 [INFO] [stderr] Checking http-body v0.1.0 [INFO] [stderr] Compiling markup5ever v0.12.1 [INFO] [stderr] Checking h2 v0.1.25 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking want v0.2.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking dtoa v1.0.10 [INFO] [stderr] Compiling toml_parser v1.0.6+spec-1.1.0 [INFO] [stderr] Checking dtoa-short v0.3.5 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Compiling serde_spanned v1.0.4 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Compiling toml_datetime v0.7.5+spec-1.1.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking publicsuffix v1.5.2 [INFO] [stderr] Checking cookie v0.12.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Compiling selectors v0.25.0 [INFO] [stderr] Compiling libsqlite3-sys v0.31.0 [INFO] [stderr] Checking try_from v0.3.2 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Checking dtoa v0.4.4 [INFO] [stderr] Compiling slog v2.4.1 [INFO] [stderr] Compiling diesel_derives v2.3.6 [INFO] [stderr] Compiling dsl_auto_type v0.2.0 [INFO] [stderr] Checking serde_urlencoded v0.5.5 [INFO] [stderr] Checking cookie_store v0.7.0 [INFO] [stderr] Checking cssparser v0.31.2 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Compiling toml v0.9.10+spec-1.1.0 [INFO] [stderr] Checking flate2 v1.0.9 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking servo_arc v0.3.0 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.3.0 [INFO] [stderr] Compiling html5ever v0.27.0 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Compiling rayon-core v1.5.0 [INFO] [stderr] Checking hyper v0.13.10 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking getopts v0.2.24 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Compiling migrations_internals v2.3.0 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.6.3 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Checking phf_shared v0.12.1 [INFO] [stderr] Checking ego-tree v0.6.3 [INFO] [stderr] Compiling chrono-tz v0.10.4 [INFO] [stderr] Checking xml-rs v0.8.0 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking downcast-rs v2.0.2 [INFO] [stderr] Checking scraper v0.18.1 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking clap_builder v4.5.54 [INFO] [stderr] Checking serde-xml-rs v0.3.0 (https://github.com/RReverser/serde-xml-rs.git#3c5949b7) [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking phf v0.12.1 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking term v0.5.2 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Compiling migrations_macros v2.3.0 [INFO] [stderr] Checking irc-proto v1.1.0 [INFO] [stderr] Checking multer v2.1.0 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking xml5ever v0.18.1 [INFO] [stderr] Checking crossbeam-queue v0.3.12 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking url_serde v0.2.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking isatty v0.1.9 [INFO] [stderr] Checking slog-async v2.3.0 [INFO] [stderr] Checking slog-term v2.4.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking markup5ever_rcdom v0.3.0 [INFO] [stderr] Checking clap v4.5.54 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking rayon v1.1.0 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking chrono-humanize v0.2.3 [INFO] [stderr] Checking dotenv v0.14.1 [INFO] [stderr] Checking threadpool v1.7.1 [INFO] [stderr] Checking ipnetwork v0.20.0 [INFO] [stderr] Checking unicode-segmentation v1.3.0 [INFO] [stderr] Checking shlex v1.3.0 [INFO] [stderr] Checking diesel v2.3.5 [INFO] [stderr] Checking diesel_migrations v2.3.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.3.2 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking irc v1.1.0 [INFO] [stderr] Checking reqwest v0.9.18 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking reqwest v0.10.10 [INFO] [stderr] Checking reqwest v0.12.26 [INFO] [stderr] Checking wolfram_alpha v0.4.0 (https://github.com/ParadoxSpiral/wolfram-alpha-rs?rev=198387b#198387b1) [INFO] [stderr] Checking urlshortener v0.9.0 (https://github.com/ParadoxSpiral/urlshortener-rs?rev=5fb6e62#5fb6e623) [INFO] [stderr] Checking duckduckgo_rs v0.0.1 [INFO] [stderr] Checking serpapi v1.1.0 [INFO] [stderr] Checking enju v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of `filter_map` with an identity function [INFO] [stdout] --> src/bin/migrate_bans/main.rs:187:14 [INFO] [stdout] | [INFO] [stdout] 187 | .filter_map(|b| b) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `flatten()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_identity [INFO] [stdout] = note: `#[warn(clippy::filter_map_identity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:221:26 [INFO] [stdout] | [INFO] [stdout] 221 | .arg(&format!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 222 | | "SELECT COUNT(*) FROM comments WHERE ban_id = {}", [INFO] [stdout] 223 | | ban.id [INFO] [stdout] 224 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 221 ~ .arg(format!( [INFO] [stdout] 222 + "SELECT COUNT(*) FROM comments WHERE ban_id = {}", [INFO] [stdout] 223 + ban.id [INFO] [stdout] 224 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | .arg(&format!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 234 | | "SELECT COUNT(*) FROM nicks WHERE ban_id = {}", [INFO] [stdout] 235 | | ban.id [INFO] [stdout] 236 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 233 ~ .arg(format!( [INFO] [stdout] 234 + "SELECT COUNT(*) FROM nicks WHERE ban_id = {}", [INFO] [stdout] 235 + ban.id [INFO] [stdout] 236 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:245:26 [INFO] [stdout] | [INFO] [stdout] 245 | ... .arg(&format!( [INFO] [stdout] | ____________^ [INFO] [stdout] 246 | | ... "INSERT INTO ban_entries (id, server_addr, channel, kind, mask, oper, begin_at, end_at, removed_at, removed_by) [INFO] [stdout] 247 | | ... VALUES ({}, '{}', '{}', '{}', '{}', '{}', '{}', {}, {}, {})", [INFO] [stdout] 248 | | ... ban.id, [INFO] [stdout] ... | [INFO] [stdout] 257 | | ... removed_by_str [INFO] [stdout] 258 | | ... )) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 245 ~ .arg(format!( [INFO] [stdout] 246 + "INSERT INTO ban_entries (id, server_addr, channel, kind, mask, oper, begin_at, end_at, removed_at, removed_by) [INFO] [stdout] 247 + VALUES ({}, '{}', '{}', '{}', '{}', '{}', '{}', {}, {}, {})", [INFO] [stdout] 248 + ban.id, [INFO] [stdout] 249 + args.server_addr.replace("'", "''"), [INFO] [stdout] 250 + ban.channel.replace("'", "''"), [INFO] [stdout] 251 + ban.kind.replace("'", "''"), [INFO] [stdout] 252 + ban.mask.replace("'", "''"), [INFO] [stdout] 253 + ban.oper.replace("'", "''"), [INFO] [stdout] 254 + begin_at_str, [INFO] [stdout] 255 + end_at_str, [INFO] [stdout] 256 + removed_at_str, [INFO] [stdout] 257 + removed_by_str [INFO] [stdout] 258 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:268:34 [INFO] [stdout] | [INFO] [stdout] 268 | ... .arg(&format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 269 | | ... "SELECT ban_id, oper, at, comment FROM comments WHERE ban_id = {}", [INFO] [stdout] 270 | | ... ban.id [INFO] [stdout] 271 | | ... )) [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 268 ~ .arg(format!( [INFO] [stdout] 269 + "SELECT ban_id, oper, at, comment FROM comments WHERE ban_id = {}", [INFO] [stdout] 270 + ban.id [INFO] [stdout] 271 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:285:46 [INFO] [stdout] | [INFO] [stdout] 285 | ... .arg(&format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 286 | | ... "INSERT INTO ban_comments (ban_id, oper, comment, at) VALUES ({}, '{}', '{}', '{}')", [INFO] [stdout] 287 | | ... parts[0], [INFO] [stdout] 288 | | ... parts[1].replace("'", "''"), [INFO] [stdout] 289 | | ... parts[3].replace("'", "''"), [INFO] [stdout] 290 | | ... at_str [INFO] [stdout] 291 | | ... )) [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 285 ~ .arg(format!( [INFO] [stdout] 286 + "INSERT INTO ban_comments (ban_id, oper, comment, at) VALUES ({}, '{}', '{}', '{}')", [INFO] [stdout] 287 + parts[0], [INFO] [stdout] 288 + parts[1].replace("'", "''"), [INFO] [stdout] 289 + parts[3].replace("'", "''"), [INFO] [stdout] 290 + at_str [INFO] [stdout] 291 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:303:34 [INFO] [stdout] | [INFO] [stdout] 303 | ... .arg(&format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 304 | | ... "SELECT ban_id, full, log FROM nicks WHERE ban_id = {}", [INFO] [stdout] 305 | | ... ban.id [INFO] [stdout] 306 | | ... )) [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 303 ~ .arg(format!( [INFO] [stdout] 304 + "SELECT ban_id, full, log FROM nicks WHERE ban_id = {}", [INFO] [stdout] 305 + ban.id [INFO] [stdout] 306 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:324:46 [INFO] [stdout] | [INFO] [stdout] 324 | ... .arg(&format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 325 | | ... "INSERT INTO ban_nicks (ban_id, full_mask, log) VALUES ({}, '{}', {})", [INFO] [stdout] 326 | | ... parts[0], [INFO] [stdout] 327 | | ... parts[1].replace("'", "''"), [INFO] [stdout] 328 | | ... log_str [INFO] [stdout] 329 | | ... )) [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 324 ~ .arg(format!( [INFO] [stdout] 325 + "INSERT INTO ban_nicks (ban_id, full_mask, log) VALUES ({}, '{}', {})", [INFO] [stdout] 326 + parts[0], [INFO] [stdout] 327 + parts[1].replace("'", "''"), [INFO] [stdout] 328 + log_str [INFO] [stdout] 329 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/bin/migrate_seen_channels/main.rs:65:40 [INFO] [stdout] | [INFO] [stdout] 65 | fn establish_connection(database_path: &PathBuf) -> 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] 65 - fn establish_connection(database_path: &PathBuf) -> Result { [INFO] [stdout] 65 + fn establish_connection(database_path: &Path) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/bin/migrate_seen_channels/main.rs:65:40 [INFO] [stdout] | [INFO] [stdout] 65 | fn establish_connection(database_path: &PathBuf) -> 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] 65 - fn establish_connection(database_path: &PathBuf) -> Result { [INFO] [stdout] 65 + fn establish_connection(database_path: &Path) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/bin/migrate_pg_quotes/main.rs:73:40 [INFO] [stdout] | [INFO] [stdout] 73 | fn establish_connection(database_path: &PathBuf) -> 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] 73 - fn establish_connection(database_path: &PathBuf) -> Result { [INFO] [stdout] 73 + fn establish_connection(database_path: &Path) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/bin/migrate_pg_users/main.rs:52:40 [INFO] [stdout] | [INFO] [stdout] 52 | fn establish_connection(database_path: &PathBuf) -> 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] 52 - fn establish_connection(database_path: &PathBuf) -> Result { [INFO] [stdout] 52 + fn establish_connection(database_path: &Path) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `format!` in `format!` args [INFO] [stdout] --> src/bin/migrate_pg_users/main.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | format!("{}{}", &ts[..ts.len() - 3], format!("{}00", tz_part)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: combine the `format!(..)` arguments with the outer `format!(..)` call [INFO] [stdout] = help: or consider changing `format!` to `format_args!` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#format_in_format_args [INFO] [stdout] = note: `#[warn(clippy::format_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/bin/migrate_pg_users/main.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | if stats.processed % 1000 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `stats.processed.is_multiple_of(1000)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/bin/migrate_pg_quotes/main.rs:73:40 [INFO] [stdout] | [INFO] [stdout] 73 | fn establish_connection(database_path: &PathBuf) -> 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] 73 - fn establish_connection(database_path: &PathBuf) -> Result { [INFO] [stdout] 73 + fn establish_connection(database_path: &Path) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/bin/migrate_pg_quotes/main.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 208 | if stats.processed % 1000 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `stats.processed.is_multiple_of(1000)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/bin/migrate_pg_quotes/main.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 208 | if stats.processed % 1000 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `stats.processed.is_multiple_of(1000)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `filter_map` with an identity function [INFO] [stdout] --> src/bin/migrate_bans/main.rs:187:14 [INFO] [stdout] | [INFO] [stdout] 187 | .filter_map(|b| b) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `flatten()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_identity [INFO] [stdout] = note: `#[warn(clippy::filter_map_identity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:221:26 [INFO] [stdout] | [INFO] [stdout] 221 | .arg(&format!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 222 | | "SELECT COUNT(*) FROM comments WHERE ban_id = {}", [INFO] [stdout] 223 | | ban.id [INFO] [stdout] 224 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 221 ~ .arg(format!( [INFO] [stdout] 222 + "SELECT COUNT(*) FROM comments WHERE ban_id = {}", [INFO] [stdout] 223 + ban.id [INFO] [stdout] 224 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | .arg(&format!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 234 | | "SELECT COUNT(*) FROM nicks WHERE ban_id = {}", [INFO] [stdout] 235 | | ban.id [INFO] [stdout] 236 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 233 ~ .arg(format!( [INFO] [stdout] 234 + "SELECT COUNT(*) FROM nicks WHERE ban_id = {}", [INFO] [stdout] 235 + ban.id [INFO] [stdout] 236 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:245:26 [INFO] [stdout] | [INFO] [stdout] 245 | ... .arg(&format!( [INFO] [stdout] | ____________^ [INFO] [stdout] 246 | | ... "INSERT INTO ban_entries (id, server_addr, channel, kind, mask, oper, begin_at, end_at, removed_at, removed_by) [INFO] [stdout] 247 | | ... VALUES ({}, '{}', '{}', '{}', '{}', '{}', '{}', {}, {}, {})", [INFO] [stdout] 248 | | ... ban.id, [INFO] [stdout] ... | [INFO] [stdout] 257 | | ... removed_by_str [INFO] [stdout] 258 | | ... )) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 245 ~ .arg(format!( [INFO] [stdout] 246 + "INSERT INTO ban_entries (id, server_addr, channel, kind, mask, oper, begin_at, end_at, removed_at, removed_by) [INFO] [stdout] 247 + VALUES ({}, '{}', '{}', '{}', '{}', '{}', '{}', {}, {}, {})", [INFO] [stdout] 248 + ban.id, [INFO] [stdout] 249 + args.server_addr.replace("'", "''"), [INFO] [stdout] 250 + ban.channel.replace("'", "''"), [INFO] [stdout] 251 + ban.kind.replace("'", "''"), [INFO] [stdout] 252 + ban.mask.replace("'", "''"), [INFO] [stdout] 253 + ban.oper.replace("'", "''"), [INFO] [stdout] 254 + begin_at_str, [INFO] [stdout] 255 + end_at_str, [INFO] [stdout] 256 + removed_at_str, [INFO] [stdout] 257 + removed_by_str [INFO] [stdout] 258 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:268:34 [INFO] [stdout] | [INFO] [stdout] 268 | ... .arg(&format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 269 | | ... "SELECT ban_id, oper, at, comment FROM comments WHERE ban_id = {}", [INFO] [stdout] 270 | | ... ban.id [INFO] [stdout] 271 | | ... )) [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 268 ~ .arg(format!( [INFO] [stdout] 269 + "SELECT ban_id, oper, at, comment FROM comments WHERE ban_id = {}", [INFO] [stdout] 270 + ban.id [INFO] [stdout] 271 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:285:46 [INFO] [stdout] | [INFO] [stdout] 285 | ... .arg(&format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 286 | | ... "INSERT INTO ban_comments (ban_id, oper, comment, at) VALUES ({}, '{}', '{}', '{}')", [INFO] [stdout] 287 | | ... parts[0], [INFO] [stdout] 288 | | ... parts[1].replace("'", "''"), [INFO] [stdout] 289 | | ... parts[3].replace("'", "''"), [INFO] [stdout] 290 | | ... at_str [INFO] [stdout] 291 | | ... )) [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 285 ~ .arg(format!( [INFO] [stdout] 286 + "INSERT INTO ban_comments (ban_id, oper, comment, at) VALUES ({}, '{}', '{}', '{}')", [INFO] [stdout] 287 + parts[0], [INFO] [stdout] 288 + parts[1].replace("'", "''"), [INFO] [stdout] 289 + parts[3].replace("'", "''"), [INFO] [stdout] 290 + at_str [INFO] [stdout] 291 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:303:34 [INFO] [stdout] | [INFO] [stdout] 303 | ... .arg(&format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 304 | | ... "SELECT ban_id, full, log FROM nicks WHERE ban_id = {}", [INFO] [stdout] 305 | | ... ban.id [INFO] [stdout] 306 | | ... )) [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 303 ~ .arg(format!( [INFO] [stdout] 304 + "SELECT ban_id, full, log FROM nicks WHERE ban_id = {}", [INFO] [stdout] 305 + ban.id [INFO] [stdout] 306 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bin/migrate_bans/main.rs:324:46 [INFO] [stdout] | [INFO] [stdout] 324 | ... .arg(&format!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 325 | | ... "INSERT INTO ban_nicks (ban_id, full_mask, log) VALUES ({}, '{}', {})", [INFO] [stdout] 326 | | ... parts[0], [INFO] [stdout] 327 | | ... parts[1].replace("'", "''"), [INFO] [stdout] 328 | | ... log_str [INFO] [stdout] 329 | | ... )) [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 324 ~ .arg(format!( [INFO] [stdout] 325 + "INSERT INTO ban_nicks (ban_id, full_mask, log) VALUES ({}, '{}', {})", [INFO] [stdout] 326 + parts[0], [INFO] [stdout] 327 + parts[1].replace("'", "''"), [INFO] [stdout] 328 + log_str [INFO] [stdout] 329 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/bin/migrate_pg_users/main.rs:52:40 [INFO] [stdout] | [INFO] [stdout] 52 | fn establish_connection(database_path: &PathBuf) -> 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] 52 - fn establish_connection(database_path: &PathBuf) -> Result { [INFO] [stdout] 52 + fn establish_connection(database_path: &Path) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `format!` in `format!` args [INFO] [stdout] --> src/bin/migrate_pg_users/main.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | format!("{}{}", &ts[..ts.len() - 3], format!("{}00", tz_part)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: combine the `format!(..)` arguments with the outer `format!(..)` call [INFO] [stdout] = help: or consider changing `format!` to `format_args!` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#format_in_format_args [INFO] [stdout] = note: `#[warn(clippy::format_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/bin/migrate_pg_users/main.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | if stats.processed % 1000 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `stats.processed.is_multiple_of(1000)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/mod.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | use shlex; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/aotw.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/chantracker.rs:365:1 [INFO] [stdout] | [INFO] [stdout] 365 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/currency.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | use meval; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/hotw.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/mod.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | use shlex; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/aotw.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/chantracker.rs:365:1 [INFO] [stdout] | [INFO] [stdout] 365 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/motw.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/np.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/np.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | nick: nick, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `nick` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/currency.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | use meval; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/quote.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/hotw.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/seen.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/tell.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/tell.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | date: date, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `date` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/tell.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | source_nick: source_nick, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `source_nick` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/tell.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | target_nick: target_nick, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `target_nick` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/time.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | nick: nick, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `nick` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/motw.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/weather.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/np.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/np.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | nick: nick, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `nick` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/quote.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/weather.rs:236:33 [INFO] [stdout] | [INFO] [stdout] 236 | ... nick: nick, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `nick` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/seen.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/tell.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/tell.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | date: date, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `date` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/tell.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | source_nick: source_nick, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `source_nick` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/tell.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | target_nick: target_nick, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `target_nick` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/time.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | nick: nick, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `nick` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/modules/weather.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use diesel; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/modules/weather.rs:236:33 [INFO] [stdout] | [INFO] [stdout] 236 | ... nick: nick, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `nick` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/aotw.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | ...l, &format!("{}: You've set your pick to {}. It will be automatically selected for Anime of the Week when your next turn comes.", nick, text))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}: You've set your pick to {}. It will be automatically selected for Anime of the Week when your next turn comes.", nick, text)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/aotw.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | / &format!( [INFO] [stdout] 114 | | "Current Anime of the Week (by {}): {}", [INFO] [stdout] 115 | | current_nick, current_text [INFO] [stdout] 116 | | ), [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 113 ~ format!( [INFO] [stdout] 114 + "Current Anime of the Week (by {}): {}", [INFO] [stdout] 115 + current_nick, current_text [INFO] [stdout] 116 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/aotw.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | / &format!( [INFO] [stdout] 258 | | "New Anime of the Week (by {}): {}", [INFO] [stdout] 259 | | next_entry.nick, next_entry.text [INFO] [stdout] 260 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 257 ~ format!( [INFO] [stdout] 258 + "New Anime of the Week (by {}): {}", [INFO] [stdout] 259 + next_entry.nick, next_entry.text [INFO] [stdout] 260 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/aotw.rs:281:42 [INFO] [stdout] | [INFO] [stdout] 281 | srv.send_privmsg("ChanServ", &format!("TOPIC {} {}", channel, new_topic))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("TOPIC {} {}", channel, new_topic)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/modules/chantracker.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | format!("*!*@*") [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"*!*@*".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/modules/chantracker.rs:502:35 [INFO] [stdout] | [INFO] [stdout] 502 | let account_pattern = &owner[3..]; // Strip "$a:" prefix [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/modules/chantracker.rs:500:9 [INFO] [stdout] | [INFO] [stdout] 500 | if owner.starts_with("$a:") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 500 ~ if let Some(account_pattern) = owner.strip_prefix("$a:") { [INFO] [stdout] 501 | // Account-based owner [INFO] [stdout] 502 ~ // Strip "$a:" prefix [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/modules/chantracker.rs:1292:1 [INFO] [stdout] | [INFO] [stdout] 1292 | / fn add_ban( [INFO] [stdout] 1293 | | cfg: &ServerCfg, [INFO] [stdout] 1294 | | srv: &Sender, [INFO] [stdout] 1295 | | channel: &str, [INFO] [stdout] ... | [INFO] [stdout] 1300 | | reason: Option<&str>, [INFO] [stdout] 1301 | | ) -> Result { [INFO] [stdout] | |________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/aotw.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | ...l, &format!("{}: You've set your pick to {}. It will be automatically selected for Anime of the Week when your next turn comes.", nick, text))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}: You've set your pick to {}. It will be automatically selected for Anime of the Week when your next turn comes.", nick, text)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/aotw.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | / &format!( [INFO] [stdout] 114 | | "Current Anime of the Week (by {}): {}", [INFO] [stdout] 115 | | current_nick, current_text [INFO] [stdout] 116 | | ), [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 113 ~ format!( [INFO] [stdout] 114 + "Current Anime of the Week (by {}): {}", [INFO] [stdout] 115 + current_nick, current_text [INFO] [stdout] 116 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/aotw.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | / &format!( [INFO] [stdout] 258 | | "New Anime of the Week (by {}): {}", [INFO] [stdout] 259 | | next_entry.nick, next_entry.text [INFO] [stdout] 260 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 257 ~ format!( [INFO] [stdout] 258 + "New Anime of the Week (by {}): {}", [INFO] [stdout] 259 + next_entry.nick, next_entry.text [INFO] [stdout] 260 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/aotw.rs:281:42 [INFO] [stdout] | [INFO] [stdout] 281 | srv.send_privmsg("ChanServ", &format!("TOPIC {} {}", channel, new_topic))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("TOPIC {} {}", channel, new_topic)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/modules/chantracker.rs:2711:37 [INFO] [stdout] | [INFO] [stdout] 2711 | static ref MASS_REPEAT_TRACKER: RwLock>> = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/modules/chantracker.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | format!("*!*@*") [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"*!*@*".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:2743:10 [INFO] [stdout] | [INFO] [stdout] 2743 | .or_insert_with(HashMap::new); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:2756:10 [INFO] [stdout] | [INFO] [stdout] 2756 | .or_insert_with(HashMap::new); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:2915:10 [INFO] [stdout] | [INFO] [stdout] 2915 | .or_insert_with(VecDeque::new); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:2929:18 [INFO] [stdout] | [INFO] [stdout] 2929 | .or_insert_with(Vec::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/modules/chantracker.rs:502:35 [INFO] [stdout] | [INFO] [stdout] 502 | let account_pattern = &owner[3..]; // Strip "$a:" prefix [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/modules/chantracker.rs:500:9 [INFO] [stdout] | [INFO] [stdout] 500 | if owner.starts_with("$a:") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 500 ~ if let Some(account_pattern) = owner.strip_prefix("$a:") { [INFO] [stdout] 501 | // Account-based owner [INFO] [stdout] 502 ~ // Strip "$a:" prefix [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:3147:45 [INFO] [stdout] | [INFO] [stdout] 3147 | let events = tracker.entry(channel_key).or_insert_with(VecDeque::new); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:3162:45 [INFO] [stdout] | [INFO] [stdout] 3162 | let events = tracker.entry(channel_key).or_insert_with(VecDeque::new); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/help.rs:164:56 [INFO] [stdout] | [INFO] [stdout] 164 | _ => if super::module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `target` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] = note: `#[warn(clippy::borrow_deref_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/hotw.rs:95:31 [INFO] [stdout] | [INFO] [stdout] 95 | ...l, &format!("{}: You've set your pick to {}. It will be automatically selected for Hentai of the Week when your next turn comes.", nick, text))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}: You've set your pick to {}. It will be automatically selected for Hentai of the Week when your next turn comes.", nick, text)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/hotw.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | / &format!( [INFO] [stdout] 113 | | "Current Hentai of the Week (by {}): {}", [INFO] [stdout] 114 | | current_nick, current_text [INFO] [stdout] 115 | | ), [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 112 ~ format!( [INFO] [stdout] 113 + "Current Hentai of the Week (by {}): {}", [INFO] [stdout] 114 + current_nick, current_text [INFO] [stdout] 115 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/hotw.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | / &format!( [INFO] [stdout] 257 | | "New Hentai of the Week (by {}): {}", [INFO] [stdout] 258 | | next_entry.nick, next_entry.text [INFO] [stdout] 259 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 256 ~ format!( [INFO] [stdout] 257 + "New Hentai of the Week (by {}): {}", [INFO] [stdout] 258 + next_entry.nick, next_entry.text [INFO] [stdout] 259 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/modules/chantracker.rs:1292:1 [INFO] [stdout] | [INFO] [stdout] 1292 | / fn add_ban( [INFO] [stdout] 1293 | | cfg: &ServerCfg, [INFO] [stdout] 1294 | | srv: &Sender, [INFO] [stdout] 1295 | | channel: &str, [INFO] [stdout] ... | [INFO] [stdout] 1300 | | reason: Option<&str>, [INFO] [stdout] 1301 | | ) -> Result { [INFO] [stdout] | |________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `resp.data.get(0)` [INFO] [stdout] --> src/modules/mal.rs:258:29 [INFO] [stdout] | [INFO] [stdout] 258 | if let Some(data) = resp.data.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `resp.data.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `r.results.bindings.get(0)` [INFO] [stdout] --> src/modules/mal.rs:412:36 [INFO] [stdout] | [INFO] [stdout] 412 | if let Some(binding) = r.results.bindings.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `r.results.bindings.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/motw.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | ...l, &format!("{}: You've set your pick to {}. It will be automatically selected for Manga of the Week when your next turn comes.", nick, text))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}: You've set your pick to {}. It will be automatically selected for Manga of the Week when your next turn comes.", nick, text)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/motw.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | / &format!( [INFO] [stdout] 114 | | "Current Manga of the Week (by {}): {}", [INFO] [stdout] 115 | | current_nick, current_text [INFO] [stdout] 116 | | ), [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 113 ~ format!( [INFO] [stdout] 114 + "Current Manga of the Week (by {}): {}", [INFO] [stdout] 115 + current_nick, current_text [INFO] [stdout] 116 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/motw.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | / &format!( [INFO] [stdout] 258 | | "New Manga of the Week (by {}): {}", [INFO] [stdout] 259 | | next_entry.nick, next_entry.text [INFO] [stdout] 260 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 257 ~ format!( [INFO] [stdout] 258 + "New Manga of the Week (by {}): {}", [INFO] [stdout] 259 + next_entry.nick, next_entry.text [INFO] [stdout] 260 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/motw.rs:281:42 [INFO] [stdout] | [INFO] [stdout] 281 | srv.send_privmsg("ChanServ", &format!("TOPIC {} {}", channel, new_topic))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("TOPIC {} {}", channel, new_topic)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/modules/chantracker.rs:2711:37 [INFO] [stdout] | [INFO] [stdout] 2711 | static ref MASS_REPEAT_TRACKER: RwLock>> = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:2743:10 [INFO] [stdout] | [INFO] [stdout] 2743 | .or_insert_with(HashMap::new); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:2756:10 [INFO] [stdout] | [INFO] [stdout] 2756 | .or_insert_with(HashMap::new); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:2915:10 [INFO] [stdout] | [INFO] [stdout] 2915 | .or_insert_with(VecDeque::new); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:2929:18 [INFO] [stdout] | [INFO] [stdout] 2929 | .or_insert_with(Vec::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:3147:45 [INFO] [stdout] | [INFO] [stdout] 3147 | let events = tracker.entry(channel_key).or_insert_with(VecDeque::new); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/chantracker.rs:3162:45 [INFO] [stdout] | [INFO] [stdout] 3162 | let events = tracker.entry(channel_key).or_insert_with(VecDeque::new); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/modules/np.rs:137:40 [INFO] [stdout] | [INFO] [stdout] 137 | listenbrainz_user: &*new_user, [INFO] [stdout] | ^^^^^^^^^^ help: try: `&new_user` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/help.rs:164:56 [INFO] [stdout] | [INFO] [stdout] 164 | _ => if super::module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `target` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] = note: `#[warn(clippy::borrow_deref_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/hotw.rs:95:31 [INFO] [stdout] | [INFO] [stdout] 95 | ...l, &format!("{}: You've set your pick to {}. It will be automatically selected for Hentai of the Week when your next turn comes.", nick, text))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}: You've set your pick to {}. It will be automatically selected for Hentai of the Week when your next turn comes.", nick, text)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/hotw.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | / &format!( [INFO] [stdout] 113 | | "Current Hentai of the Week (by {}): {}", [INFO] [stdout] 114 | | current_nick, current_text [INFO] [stdout] 115 | | ), [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 112 ~ format!( [INFO] [stdout] 113 + "Current Hentai of the Week (by {}): {}", [INFO] [stdout] 114 + current_nick, current_text [INFO] [stdout] 115 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/modules/openrouter.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | let content = openrouter_response [INFO] [stdout] | ___________________^ [INFO] [stdout] 97 | | .choices [INFO] [stdout] 98 | | .first() [INFO] [stdout] 99 | | .and_then(|choice| Some(choice.message.content.clone())) [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] = note: `#[warn(clippy::bind_instead_of_map)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 96 ~ let content = openrouter_response [INFO] [stdout] 97 + .choices [INFO] [stdout] 98 + .first().map(|choice| choice.message.content.clone()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/hotw.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | / &format!( [INFO] [stdout] 257 | | "New Hentai of the Week (by {}): {}", [INFO] [stdout] 258 | | next_entry.nick, next_entry.text [INFO] [stdout] 259 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 256 ~ format!( [INFO] [stdout] 257 + "New Hentai of the Week (by {}): {}", [INFO] [stdout] 258 + next_entry.nick, next_entry.text [INFO] [stdout] 259 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/seen.rs:85:42 [INFO] [stdout] | [INFO] [stdout] 85 | srv.send_privmsg(target, &format!("{}: that is you, you fucker", source_nick))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}: that is you, you fucker", source_nick)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/seen.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | / &format!( [INFO] [stdout] 120 | | "{}: I haven't seen {} in this channel yet.", [INFO] [stdout] 121 | | source_nick, query_nick [INFO] [stdout] 122 | | ), [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 119 ~ format!( [INFO] [stdout] 120 + "{}: I haven't seen {} in this channel yet.", [INFO] [stdout] 121 + source_nick, query_nick [INFO] [stdout] 122 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Result.and_then(|x| Ok(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/modules/tell.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | / super::with_database(cfg, |db| { [INFO] [stdout] 157 | | diesel::insert_into(schema::pending_tells::table) [INFO] [stdout] 158 | | .values(&pending_tell) [INFO] [stdout] 159 | | .execute(db)?; [INFO] [stdout] ... | [INFO] [stdout] 171 | | )) [INFO] [stdout] 172 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] help: use `map` instead [INFO] [stdout] | [INFO] [stdout] 162 ~ .map(|_| { [INFO] [stdout] 163 | let mut hm = PENDING_TELLS.lock(); [INFO] [stdout] 164 | *hm.get_mut(&cfg.address).unwrap().lock() += 1; [INFO] [stdout] 165 | [INFO] [stdout] 166 ~ format!( [INFO] [stdout] 167 + "{}: I will tell {}: {}", [INFO] [stdout] 168 + source_nick, [INFO] [stdout] 169 + target_nick, [INFO] [stdout] 170 + target_msg.trim() [INFO] [stdout] 171 + ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `resp.data.get(0)` [INFO] [stdout] --> src/modules/mal.rs:258:29 [INFO] [stdout] | [INFO] [stdout] 258 | if let Some(data) = resp.data.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `resp.data.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `r.results.bindings.get(0)` [INFO] [stdout] --> src/modules/mal.rs:412:36 [INFO] [stdout] | [INFO] [stdout] 412 | if let Some(binding) = r.results.bindings.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `r.results.bindings.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/motw.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | ...l, &format!("{}: You've set your pick to {}. It will be automatically selected for Manga of the Week when your next turn comes.", nick, text))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}: You've set your pick to {}. It will be automatically selected for Manga of the Week when your next turn comes.", nick, text)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/motw.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | / &format!( [INFO] [stdout] 114 | | "Current Manga of the Week (by {}): {}", [INFO] [stdout] 115 | | current_nick, current_text [INFO] [stdout] 116 | | ), [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 113 ~ format!( [INFO] [stdout] 114 + "Current Manga of the Week (by {}): {}", [INFO] [stdout] 115 + current_nick, current_text [INFO] [stdout] 116 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/motw.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | / &format!( [INFO] [stdout] 258 | | "New Manga of the Week (by {}): {}", [INFO] [stdout] 259 | | next_entry.nick, next_entry.text [INFO] [stdout] 260 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 257 ~ format!( [INFO] [stdout] 258 + "New Manga of the Week (by {}): {}", [INFO] [stdout] 259 + next_entry.nick, next_entry.text [INFO] [stdout] 260 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/motw.rs:281:42 [INFO] [stdout] | [INFO] [stdout] 281 | srv.send_privmsg("ChanServ", &format!("TOPIC {} {}", channel, new_topic))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("TOPIC {} {}", channel, new_topic)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/modules/time.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | location: &*new_loc, [INFO] [stdout] | ^^^^^^^^^ help: try: `&new_loc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/modules/time.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | let time_part = res.location.localtime.split(' ').last().unwrap_or(""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] = note: `#[warn(clippy::double_ended_iterator_last)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 126 - let time_part = res.location.localtime.split(' ').last().unwrap_or(""); [INFO] [stdout] 126 + let time_part = res.location.localtime.split(' ').next_back().unwrap_or(""); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/modules/url.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | let path = url.path_segments().unwrap().last().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 72 - let path = url.path_segments().unwrap().last().unwrap(); [INFO] [stdout] 72 + let path = url.path_segments().unwrap().next_back().unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/modules/url.rs:76:37 [INFO] [stdout] | [INFO] [stdout] 76 | let v = query.find(|&(ref k, _)| k == "v").unwrap().1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] = note: `#[warn(clippy::needless_borrowed_reference)]` on by default [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 76 - let v = query.find(|&(ref k, _)| k == "v").unwrap().1; [INFO] [stdout] 76 + let v = query.find(|(k, _)| k == "v").unwrap().1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/url.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | .get(&format!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 80 | | "https://www.googleapis.com/youtube/v3/videos?part=status,snippet,\ [INFO] [stdout] 81 | | contentDetails,statistics&key={}&id={}", [INFO] [stdout] 82 | | cfg.youtube_key.as_ref().unwrap(), [INFO] [stdout] 83 | | v.as_ref() [INFO] [stdout] 84 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 79 ~ .get(format!( [INFO] [stdout] 80 + "https://www.googleapis.com/youtube/v3/videos?part=status,snippet,\ [INFO] [stdout] 81 + contentDetails,statistics&key={}&id={}", [INFO] [stdout] 82 + cfg.youtube_key.as_ref().unwrap(), [INFO] [stdout] 83 + v.as_ref() [INFO] [stdout] 84 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/modules/np.rs:137:40 [INFO] [stdout] | [INFO] [stdout] 137 | listenbrainz_user: &*new_user, [INFO] [stdout] | ^^^^^^^^^^ help: try: `&new_user` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/url.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 88 | .get(&format!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 89 | | "https://www.googleapis.com/youtube/v3/videos?part=status,snippet,\ [INFO] [stdout] 90 | | contentDetails,statistics&key={}&id={}", [INFO] [stdout] 91 | | cfg.youtube_key.as_ref().unwrap(), [INFO] [stdout] 92 | | path.split('?').next().unwrap() [INFO] [stdout] 93 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 88 ~ .get(format!( [INFO] [stdout] 89 + "https://www.googleapis.com/youtube/v3/videos?part=status,snippet,\ [INFO] [stdout] 90 + contentDetails,statistics&key={}&id={}", [INFO] [stdout] 91 + cfg.youtube_key.as_ref().unwrap(), [INFO] [stdout] 92 + path.split('?').next().unwrap() [INFO] [stdout] 93 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/modules/url.rs:190:20 [INFO] [stdout] | [INFO] [stdout] 190 | .find(|&(ref k, _)| k == "aid") [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 190 - .find(|&(ref k, _)| k == "aid") [INFO] [stdout] 190 + .find(|(k, _)| k == "aid") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/modules/url.rs:217:41 [INFO] [stdout] | [INFO] [stdout] 217 | let i = url.query_pairs().find(|&(ref k, _)| k == "i").unwrap().1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 217 - let i = url.query_pairs().find(|&(ref k, _)| k == "i").unwrap().1; [INFO] [stdout] 217 + let i = url.query_pairs().find(|(k, _)| k == "i").unwrap().1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/modules/url.rs:240:28 [INFO] [stdout] | [INFO] [stdout] 240 | percent_decode(url.path_segments().unwrap().last().unwrap().as_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 240 - percent_decode(url.path_segments().unwrap().last().unwrap().as_bytes()) [INFO] [stdout] 240 + percent_decode(url.path_segments().unwrap().next_back().unwrap().as_bytes()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/modules/url.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | if url.path_segments().unwrap().last().unwrap() != "search" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 246 - if url.path_segments().unwrap().last().unwrap() != "search" { [INFO] [stdout] 246 + if url.path_segments().unwrap().next_back().unwrap() != "search" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/url.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | .get(&format!( [INFO] [stdout] | __________________^ [INFO] [stdout] 251 | | "https://www.googleapis.com/customsearch/v1?num=3&fields=items\ [INFO] [stdout] 252 | | &cx={}&key={}&q={}", [INFO] [stdout] 253 | | cfg.google_search_id.as_ref().unwrap(), [INFO] [stdout] ... | [INFO] [stdout] 262 | | .decode_utf8()? [INFO] [stdout] 263 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 250 ~ .get(format!( [INFO] [stdout] 251 + "https://www.googleapis.com/customsearch/v1?num=3&fields=items\ [INFO] [stdout] 252 + &cx={}&key={}&q={}", [INFO] [stdout] 253 + cfg.google_search_id.as_ref().unwrap(), [INFO] [stdout] 254 + cfg.google_search_key.as_ref().unwrap(), [INFO] [stdout] 255 + percent_decode( [INFO] [stdout] 256 + url.query_pairs() [INFO] [stdout] 257 + .find(|&(ref k, _)| k == "q") [INFO] [stdout] 258 + .unwrap() [INFO] [stdout] 259 + .1 [INFO] [stdout] 260 + .as_bytes() [INFO] [stdout] 261 + ) [INFO] [stdout] 262 + .decode_utf8()? [INFO] [stdout] 263 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/modules/url.rs:257:32 [INFO] [stdout] | [INFO] [stdout] 257 | .find(|&(ref k, _)| k == "q") [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 257 - .find(|&(ref k, _)| k == "q") [INFO] [stdout] 257 + .find(|(k, _)| k == "q") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/modules/openrouter.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | let content = openrouter_response [INFO] [stdout] | ___________________^ [INFO] [stdout] 97 | | .choices [INFO] [stdout] 98 | | .first() [INFO] [stdout] 99 | | .and_then(|choice| Some(choice.message.content.clone())) [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] = note: `#[warn(clippy::bind_instead_of_map)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 96 ~ let content = openrouter_response [INFO] [stdout] 97 + .choices [INFO] [stdout] 98 + .first().map(|choice| choice.message.content.clone()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/seen.rs:85:42 [INFO] [stdout] | [INFO] [stdout] 85 | srv.send_privmsg(target, &format!("{}: that is you, you fucker", source_nick))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}: that is you, you fucker", source_nick)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/url.rs:424:14 [INFO] [stdout] | [INFO] [stdout] 424 | .get(&format!( [INFO] [stdout] | ______________^ [INFO] [stdout] 425 | | "https://store.steampowered.com/api/appdetails?appids={}", [INFO] [stdout] 426 | | app_id [INFO] [stdout] 427 | | )) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 424 ~ .get(format!( [INFO] [stdout] 425 + "https://store.steampowered.com/api/appdetails?appids={}", [INFO] [stdout] 426 + app_id [INFO] [stdout] 427 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/seen.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | / &format!( [INFO] [stdout] 120 | | "{}: I haven't seen {} in this channel yet.", [INFO] [stdout] 121 | | source_nick, query_nick [INFO] [stdout] 122 | | ), [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 119 ~ format!( [INFO] [stdout] 120 + "{}: I haven't seen {} in this channel yet.", [INFO] [stdout] 121 + source_nick, query_nick [INFO] [stdout] 122 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/modules/url.rs:533:28 [INFO] [stdout] | [INFO] [stdout] 533 | if text != "" && text != "\n" { [INFO] [stdout] | ^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!text.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct pattern is not needed for a unit variant [INFO] [stdout] --> src/modules/url.rs:551:27 [INFO] [stdout] | [INFO] [stdout] 551 | NodeData::Document { .. } [INFO] [stdout] | ^^^^^^^ help: remove the struct pattern [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_struct_pattern [INFO] [stdout] = note: `#[warn(clippy::unneeded_struct_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `Result.and_then(|x| Ok(y))`, which is more succinctly expressed as `map(|x| y)` [INFO] [stdout] --> src/modules/tell.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | / super::with_database(cfg, |db| { [INFO] [stdout] 157 | | diesel::insert_into(schema::pending_tells::table) [INFO] [stdout] 158 | | .values(&pending_tell) [INFO] [stdout] 159 | | .execute(db)?; [INFO] [stdout] ... | [INFO] [stdout] 171 | | )) [INFO] [stdout] 172 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map [INFO] [stdout] help: use `map` instead [INFO] [stdout] | [INFO] [stdout] 162 ~ .map(|_| { [INFO] [stdout] 163 | let mut hm = PENDING_TELLS.lock(); [INFO] [stdout] 164 | *hm.get_mut(&cfg.address).unwrap().lock() += 1; [INFO] [stdout] 165 | [INFO] [stdout] 166 ~ format!( [INFO] [stdout] 167 + "{}: I will tell {}: {}", [INFO] [stdout] 168 + source_nick, [INFO] [stdout] 169 + target_nick, [INFO] [stdout] 170 + target_msg.trim() [INFO] [stdout] 171 + ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/modules/time.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | location: &*new_loc, [INFO] [stdout] | ^^^^^^^^^ help: try: `&new_loc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/modules/time.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | let time_part = res.location.localtime.split(' ').last().unwrap_or(""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] = note: `#[warn(clippy::double_ended_iterator_last)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 126 - let time_part = res.location.localtime.split(' ').last().unwrap_or(""); [INFO] [stdout] 126 + let time_part = res.location.localtime.split(' ').next_back().unwrap_or(""); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/modules/url.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | let path = url.path_segments().unwrap().last().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 72 - let path = url.path_segments().unwrap().last().unwrap(); [INFO] [stdout] 72 + let path = url.path_segments().unwrap().next_back().unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/modules/url.rs:76:37 [INFO] [stdout] | [INFO] [stdout] 76 | let v = query.find(|&(ref k, _)| k == "v").unwrap().1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] = note: `#[warn(clippy::needless_borrowed_reference)]` on by default [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 76 - let v = query.find(|&(ref k, _)| k == "v").unwrap().1; [INFO] [stdout] 76 + let v = query.find(|(k, _)| k == "v").unwrap().1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/url.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | .get(&format!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 80 | | "https://www.googleapis.com/youtube/v3/videos?part=status,snippet,\ [INFO] [stdout] 81 | | contentDetails,statistics&key={}&id={}", [INFO] [stdout] 82 | | cfg.youtube_key.as_ref().unwrap(), [INFO] [stdout] 83 | | v.as_ref() [INFO] [stdout] 84 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 79 ~ .get(format!( [INFO] [stdout] 80 + "https://www.googleapis.com/youtube/v3/videos?part=status,snippet,\ [INFO] [stdout] 81 + contentDetails,statistics&key={}&id={}", [INFO] [stdout] 82 + cfg.youtube_key.as_ref().unwrap(), [INFO] [stdout] 83 + v.as_ref() [INFO] [stdout] 84 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/url.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 88 | .get(&format!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 89 | | "https://www.googleapis.com/youtube/v3/videos?part=status,snippet,\ [INFO] [stdout] 90 | | contentDetails,statistics&key={}&id={}", [INFO] [stdout] 91 | | cfg.youtube_key.as_ref().unwrap(), [INFO] [stdout] 92 | | path.split('?').next().unwrap() [INFO] [stdout] 93 | | )) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 88 ~ .get(format!( [INFO] [stdout] 89 + "https://www.googleapis.com/youtube/v3/videos?part=status,snippet,\ [INFO] [stdout] 90 + contentDetails,statistics&key={}&id={}", [INFO] [stdout] 91 + cfg.youtube_key.as_ref().unwrap(), [INFO] [stdout] 92 + path.split('?').next().unwrap() [INFO] [stdout] 93 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/modules/url.rs:190:20 [INFO] [stdout] | [INFO] [stdout] 190 | .find(|&(ref k, _)| k == "aid") [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 190 - .find(|&(ref k, _)| k == "aid") [INFO] [stdout] 190 + .find(|(k, _)| k == "aid") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/modules/url.rs:217:41 [INFO] [stdout] | [INFO] [stdout] 217 | let i = url.query_pairs().find(|&(ref k, _)| k == "i").unwrap().1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 217 - let i = url.query_pairs().find(|&(ref k, _)| k == "i").unwrap().1; [INFO] [stdout] 217 + let i = url.query_pairs().find(|(k, _)| k == "i").unwrap().1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/modules/url.rs:240:28 [INFO] [stdout] | [INFO] [stdout] 240 | percent_decode(url.path_segments().unwrap().last().unwrap().as_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 240 - percent_decode(url.path_segments().unwrap().last().unwrap().as_bytes()) [INFO] [stdout] 240 + percent_decode(url.path_segments().unwrap().next_back().unwrap().as_bytes()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/modules/url.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | if url.path_segments().unwrap().last().unwrap() != "search" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 246 - if url.path_segments().unwrap().last().unwrap() != "search" { [INFO] [stdout] 246 + if url.path_segments().unwrap().next_back().unwrap() != "search" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/url.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | .get(&format!( [INFO] [stdout] | __________________^ [INFO] [stdout] 251 | | "https://www.googleapis.com/customsearch/v1?num=3&fields=items\ [INFO] [stdout] 252 | | &cx={}&key={}&q={}", [INFO] [stdout] 253 | | cfg.google_search_id.as_ref().unwrap(), [INFO] [stdout] ... | [INFO] [stdout] 262 | | .decode_utf8()? [INFO] [stdout] 263 | | )) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 250 ~ .get(format!( [INFO] [stdout] 251 + "https://www.googleapis.com/customsearch/v1?num=3&fields=items\ [INFO] [stdout] 252 + &cx={}&key={}&q={}", [INFO] [stdout] 253 + cfg.google_search_id.as_ref().unwrap(), [INFO] [stdout] 254 + cfg.google_search_key.as_ref().unwrap(), [INFO] [stdout] 255 + percent_decode( [INFO] [stdout] 256 + url.query_pairs() [INFO] [stdout] 257 + .find(|&(ref k, _)| k == "q") [INFO] [stdout] 258 + .unwrap() [INFO] [stdout] 259 + .1 [INFO] [stdout] 260 + .as_bytes() [INFO] [stdout] 261 + ) [INFO] [stdout] 262 + .decode_utf8()? [INFO] [stdout] 263 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/modules/url.rs:257:32 [INFO] [stdout] | [INFO] [stdout] 257 | .find(|&(ref k, _)| k == "q") [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 257 - .find(|&(ref k, _)| k == "q") [INFO] [stdout] 257 + .find(|(k, _)| k == "q") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/url.rs:668:21 [INFO] [stdout] | [INFO] [stdout] 668 | out.push_str(")"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push(')')` [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: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/url.rs:424:14 [INFO] [stdout] | [INFO] [stdout] 424 | .get(&format!( [INFO] [stdout] | ______________^ [INFO] [stdout] 425 | | "https://store.steampowered.com/api/appdetails?appids={}", [INFO] [stdout] 426 | | app_id [INFO] [stdout] 427 | | )) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 424 ~ .get(format!( [INFO] [stdout] 425 + "https://store.steampowered.com/api/appdetails?appids={}", [INFO] [stdout] 426 + app_id [INFO] [stdout] 427 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/modules/url.rs:533:28 [INFO] [stdout] | [INFO] [stdout] 533 | if text != "" && text != "\n" { [INFO] [stdout] | ^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!text.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct pattern is not needed for a unit variant [INFO] [stdout] --> src/modules/url.rs:551:27 [INFO] [stdout] | [INFO] [stdout] 551 | NodeData::Document { .. } [INFO] [stdout] | ^^^^^^^ help: remove the struct pattern [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_struct_pattern [INFO] [stdout] = note: `#[warn(clippy::unneeded_struct_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/url.rs:668:21 [INFO] [stdout] | [INFO] [stdout] 668 | out.push_str(")"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push(')')` [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: deref which would be done by auto-deref [INFO] [stdout] --> src/modules/weather.rs:237:43 [INFO] [stdout] | [INFO] [stdout] 237 | ... location: &*new_loc, [INFO] [stdout] | ^^^^^^^^^ help: try: `&new_loc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/modules/weather.rs:237:43 [INFO] [stdout] | [INFO] [stdout] 237 | ... location: &*new_loc, [INFO] [stdout] | ^^^^^^^^^ help: try: `&new_loc` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/mod.rs:117:10 [INFO] [stdout] | [INFO] [stdout] 117 | .or_insert_with(HashSet::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/modules/mod.rs:310:27 [INFO] [stdout] | [INFO] [stdout] 310 | let private = !(target == reply_target); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(target != reply_target)` [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: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/mod.rs:226:18 [INFO] [stdout] | [INFO] [stdout] 226 | .or_insert_with(HashMap::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/mod.rs:249:22 [INFO] [stdout] | [INFO] [stdout] 249 | .or_insert_with(HashMap::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:302:44 [INFO] [stdout] | [INFO] [stdout] 302 | if module_enabled_channel(cfg, &*target, "wormy") [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 302 - if module_enabled_channel(cfg, &*target, "wormy") [INFO] [stdout] 302 + if module_enabled_channel(cfg, target, "wormy") [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 302 | if module_enabled_channel(cfg, &**target, "wormy") [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent [INFO] [stdout] --> src/modules/mod.rs:318:34 [INFO] [stdout] | [INFO] [stdout] 318 | let first_char = content.chars().nth(0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `content.chars().next()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero [INFO] [stdout] = note: `#[warn(clippy::iter_nth_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent [INFO] [stdout] --> src/modules/mod.rs:331:16 [INFO] [stdout] | [INFO] [stdout] 331 | if content.chars().nth(0).unwrap() == command_modifier2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `content.chars().next()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:332:60 [INFO] [stdout] | [INFO] [stdout] 332 | if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 332 - if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] 332 + if (private || module_enabled_channel(cfg, target, "duckduckgo")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 332 | if (private || module_enabled_channel(cfg, &**target, "duckduckgo")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:339:25 [INFO] [stdout] | [INFO] [stdout] 339 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 339 - &*target, [INFO] [stdout] 339 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 339 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:343:52 [INFO] [stdout] | [INFO] [stdout] 343 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 343 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 343 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 343 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:346:67 [INFO] [stdout] | [INFO] [stdout] 346 | } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 346 - } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] 346 + } else if (private || module_enabled_channel(cfg, target, "duckduckgo")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 346 | } else if (private || module_enabled_channel(cfg, &**target, "duckduckgo")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:353:25 [INFO] [stdout] | [INFO] [stdout] 353 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 353 - &*target, [INFO] [stdout] 353 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 353 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:357:52 [INFO] [stdout] | [INFO] [stdout] 357 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 357 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 357 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 357 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent [INFO] [stdout] --> src/modules/mod.rs:362:16 [INFO] [stdout] | [INFO] [stdout] 362 | if content.chars().nth(0).unwrap() == command_modifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `content.chars().next()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:366:60 [INFO] [stdout] | [INFO] [stdout] 366 | if let Some(reply) = help::handle(cfg, &*target, content, private, nick) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 366 - if let Some(reply) = help::handle(cfg, &*target, content, private, nick) { [INFO] [stdout] 366 + if let Some(reply) = help::handle(cfg, target, content, private, nick) { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 366 | if let Some(reply) = help::handle(cfg, &**target, content, private, nick) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:378:58 [INFO] [stdout] | [INFO] [stdout] 378 | let reply = help::list_commands(cfg, &*target, private, nick); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 378 - let reply = help::list_commands(cfg, &*target, private, nick); [INFO] [stdout] 378 + let reply = help::list_commands(cfg, target, private, nick); [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 378 | let reply = help::list_commands(cfg, &**target, private, nick); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:380:67 [INFO] [stdout] | [INFO] [stdout] 380 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 380 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 380 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 380 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:391:67 [INFO] [stdout] | [INFO] [stdout] 391 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 391 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 391 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 391 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:406:67 [INFO] [stdout] | [INFO] [stdout] 406 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 406 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 406 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 406 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:421:67 [INFO] [stdout] | [INFO] [stdout] 421 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 421 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 421 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 421 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:436:67 [INFO] [stdout] | [INFO] [stdout] 436 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 436 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 436 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 436 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:452:67 [INFO] [stdout] | [INFO] [stdout] 452 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 452 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 452 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 452 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:467:67 [INFO] [stdout] | [INFO] [stdout] 467 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 467 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 467 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 467 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:482:67 [INFO] [stdout] | [INFO] [stdout] 482 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 482 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 482 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 482 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:497:67 [INFO] [stdout] | [INFO] [stdout] 497 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 497 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 497 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 497 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:512:67 [INFO] [stdout] | [INFO] [stdout] 512 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 512 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 512 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 512 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:519:67 [INFO] [stdout] | [INFO] [stdout] 519 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 519 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 519 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 519 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:526:67 [INFO] [stdout] | [INFO] [stdout] 526 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 526 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 526 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 526 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:533:67 [INFO] [stdout] | [INFO] [stdout] 533 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 533 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 533 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 533 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/mod.rs:117:10 [INFO] [stdout] | [INFO] [stdout] 117 | .or_insert_with(HashSet::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:572:67 [INFO] [stdout] | [INFO] [stdout] 572 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 572 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 572 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 572 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/modules/mod.rs:310:27 [INFO] [stdout] | [INFO] [stdout] 310 | let private = !(target == reply_target); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(target != reply_target)` [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: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:592:67 [INFO] [stdout] | [INFO] [stdout] 592 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 592 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 592 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 592 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:629:67 [INFO] [stdout] | [INFO] [stdout] 629 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 629 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 629 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 629 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:643:67 [INFO] [stdout] | [INFO] [stdout] 643 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 643 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 643 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 643 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:652:67 [INFO] [stdout] | [INFO] [stdout] 652 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 652 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 652 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 652 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:672:67 [INFO] [stdout] | [INFO] [stdout] 672 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 672 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 672 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 672 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:680:67 [INFO] [stdout] | [INFO] [stdout] 680 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 680 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 680 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 680 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:692:67 [INFO] [stdout] | [INFO] [stdout] 692 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 692 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 692 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 692 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:704:67 [INFO] [stdout] | [INFO] [stdout] 704 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 704 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 704 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 704 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:712:67 [INFO] [stdout] | [INFO] [stdout] 712 | } else if (private || module_enabled_channel(cfg, &*target, "imdb")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 712 - } else if (private || module_enabled_channel(cfg, &*target, "imdb")) [INFO] [stdout] 712 + } else if (private || module_enabled_channel(cfg, target, "imdb")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 712 | } else if (private || module_enabled_channel(cfg, &**target, "imdb")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:722:52 [INFO] [stdout] | [INFO] [stdout] 722 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 722 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 722 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 722 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:725:67 [INFO] [stdout] | [INFO] [stdout] 725 | } else if (private || module_enabled_channel(cfg, &*target, "mal")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 725 - } else if (private || module_enabled_channel(cfg, &*target, "mal")) [INFO] [stdout] 725 + } else if (private || module_enabled_channel(cfg, target, "mal")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 725 | } else if (private || module_enabled_channel(cfg, &**target, "mal")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:735:52 [INFO] [stdout] | [INFO] [stdout] 735 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 735 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 735 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 735 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:738:67 [INFO] [stdout] | [INFO] [stdout] 738 | } else if (private || module_enabled_channel(cfg, &*target, "mal")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 738 - } else if (private || module_enabled_channel(cfg, &*target, "mal")) [INFO] [stdout] 738 + } else if (private || module_enabled_channel(cfg, target, "mal")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 738 | } else if (private || module_enabled_channel(cfg, &**target, "mal")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:748:52 [INFO] [stdout] | [INFO] [stdout] 748 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 748 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 748 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 748 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:756:67 [INFO] [stdout] | [INFO] [stdout] 756 | } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 756 - } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] 756 + } else if (private || module_enabled_channel(cfg, target, "quote")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 756 | } else if (private || module_enabled_channel(cfg, &**target, "quote")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:762:67 [INFO] [stdout] | [INFO] [stdout] 762 | } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 762 - } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] 762 + } else if (private || module_enabled_channel(cfg, target, "quote")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 762 | } else if (private || module_enabled_channel(cfg, &**target, "quote")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:768:67 [INFO] [stdout] | [INFO] [stdout] 768 | } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 768 - } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] 768 + } else if (private || module_enabled_channel(cfg, target, "quote")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 768 | } else if (private || module_enabled_channel(cfg, &**target, "quote")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:779:67 [INFO] [stdout] | [INFO] [stdout] 779 | } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 779 - } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] 779 + } else if (private || module_enabled_channel(cfg, target, "quote")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 779 | } else if (private || module_enabled_channel(cfg, &**target, "quote")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:785:67 [INFO] [stdout] | [INFO] [stdout] 785 | } else if (private || module_enabled_channel(cfg, &*target, "currency")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 785 - } else if (private || module_enabled_channel(cfg, &*target, "currency")) [INFO] [stdout] 785 + } else if (private || module_enabled_channel(cfg, target, "currency")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 785 | } else if (private || module_enabled_channel(cfg, &**target, "currency")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:795:52 [INFO] [stdout] | [INFO] [stdout] 795 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 795 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 795 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 795 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:807:81 [INFO] [stdout] | [INFO] [stdout] 807 | } else if &content[1..] == "who" && module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 807 - } else if &content[1..] == "who" && module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 807 + } else if &content[1..] == "who" && module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 807 | } else if &content[1..] == "who" && module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:817:67 [INFO] [stdout] | [INFO] [stdout] 817 | } else if (private || module_enabled_channel(cfg, &*target, "tell")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 817 - } else if (private || module_enabled_channel(cfg, &*target, "tell")) [INFO] [stdout] 817 + } else if (private || module_enabled_channel(cfg, target, "tell")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 817 | } else if (private || module_enabled_channel(cfg, &**target, "tell")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:823:52 [INFO] [stdout] | [INFO] [stdout] 823 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 823 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 823 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 823 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:826:67 [INFO] [stdout] | [INFO] [stdout] 826 | } else if (private || module_enabled_channel(cfg, &*target, "aotw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 826 - } else if (private || module_enabled_channel(cfg, &*target, "aotw")) [INFO] [stdout] 826 + } else if (private || module_enabled_channel(cfg, target, "aotw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 826 | } else if (private || module_enabled_channel(cfg, &**target, "aotw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:831:52 [INFO] [stdout] | [INFO] [stdout] 831 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 831 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 831 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 831 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:834:67 [INFO] [stdout] | [INFO] [stdout] 834 | } else if (private || module_enabled_channel(cfg, &*target, "motw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 834 - } else if (private || module_enabled_channel(cfg, &*target, "motw")) [INFO] [stdout] 834 + } else if (private || module_enabled_channel(cfg, target, "motw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 834 | } else if (private || module_enabled_channel(cfg, &**target, "motw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:839:52 [INFO] [stdout] | [INFO] [stdout] 839 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 839 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 839 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 839 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:842:67 [INFO] [stdout] | [INFO] [stdout] 842 | } else if (private || module_enabled_channel(cfg, &*target, "hotw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 842 - } else if (private || module_enabled_channel(cfg, &*target, "hotw")) [INFO] [stdout] 842 + } else if (private || module_enabled_channel(cfg, target, "hotw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 842 | } else if (private || module_enabled_channel(cfg, &**target, "hotw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:847:52 [INFO] [stdout] | [INFO] [stdout] 847 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 847 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 847 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 847 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:850:67 [INFO] [stdout] | [INFO] [stdout] 850 | } else if (private || module_enabled_channel(cfg, &*target, "aotw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 850 - } else if (private || module_enabled_channel(cfg, &*target, "aotw")) [INFO] [stdout] 850 + } else if (private || module_enabled_channel(cfg, target, "aotw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 850 | } else if (private || module_enabled_channel(cfg, &**target, "aotw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:859:55 [INFO] [stdout] | [INFO] [stdout] 859 | aotw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 859 - aotw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] 859 + aotw::manual_rotate(cfg, srv, target)?; [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 859 | aotw::manual_rotate(cfg, srv, &**target)?; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:861:67 [INFO] [stdout] | [INFO] [stdout] 861 | } else if (private || module_enabled_channel(cfg, &*target, "motw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 861 - } else if (private || module_enabled_channel(cfg, &*target, "motw")) [INFO] [stdout] 861 + } else if (private || module_enabled_channel(cfg, target, "motw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 861 | } else if (private || module_enabled_channel(cfg, &**target, "motw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:870:55 [INFO] [stdout] | [INFO] [stdout] 870 | motw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 870 - motw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] 870 + motw::manual_rotate(cfg, srv, target)?; [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 870 | motw::manual_rotate(cfg, srv, &**target)?; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:872:67 [INFO] [stdout] | [INFO] [stdout] 872 | } else if (private || module_enabled_channel(cfg, &*target, "hotw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 872 - } else if (private || module_enabled_channel(cfg, &*target, "hotw")) [INFO] [stdout] 872 + } else if (private || module_enabled_channel(cfg, target, "hotw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 872 | } else if (private || module_enabled_channel(cfg, &**target, "hotw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:881:55 [INFO] [stdout] | [INFO] [stdout] 881 | hotw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 881 - hotw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] 881 + hotw::manual_rotate(cfg, srv, target)?; [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 881 | hotw::manual_rotate(cfg, srv, &**target)?; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `parts.get(0)` [INFO] [stdout] --> src/modules/mod.rs:890:48 [INFO] [stdout] | [INFO] [stdout] 890 | if let Some(channel) = parts.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^ help: try: `parts.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `parts.get(0)` [INFO] [stdout] --> src/modules/mod.rs:910:46 [INFO] [stdout] | [INFO] [stdout] 910 | if let Some(first) = parts.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^ help: try: `parts.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:922:67 [INFO] [stdout] | [INFO] [stdout] 922 | } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 922 - } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] 922 + } else if (private || module_enabled_channel(cfg, target, "duckduckgo")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 922 | } else if (private || module_enabled_channel(cfg, &**target, "duckduckgo")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:929:25 [INFO] [stdout] | [INFO] [stdout] 929 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 929 - &*target, [INFO] [stdout] 929 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 929 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:933:52 [INFO] [stdout] | [INFO] [stdout] 933 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 933 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 933 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 933 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:936:67 [INFO] [stdout] | [INFO] [stdout] 936 | } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 936 - } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] 936 + } else if (private || module_enabled_channel(cfg, target, "duckduckgo")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 936 | } else if (private || module_enabled_channel(cfg, &**target, "duckduckgo")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:943:25 [INFO] [stdout] | [INFO] [stdout] 943 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 943 - &*target, [INFO] [stdout] 943 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 943 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:947:52 [INFO] [stdout] | [INFO] [stdout] 947 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 947 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 947 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 947 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:950:67 [INFO] [stdout] | [INFO] [stdout] 950 | } else if (private || module_enabled_channel(cfg, &*target, "wolframalpha")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 950 - } else if (private || module_enabled_channel(cfg, &*target, "wolframalpha")) [INFO] [stdout] 950 + } else if (private || module_enabled_channel(cfg, target, "wolframalpha")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 950 | } else if (private || module_enabled_channel(cfg, &**target, "wolframalpha")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:960:25 [INFO] [stdout] | [INFO] [stdout] 960 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 960 - &*target, [INFO] [stdout] 960 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 960 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:971:52 [INFO] [stdout] | [INFO] [stdout] 971 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 971 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 971 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 971 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:974:67 [INFO] [stdout] | [INFO] [stdout] 974 | } else if (private || module_enabled_channel(cfg, &*target, "jisho")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 974 - } else if (private || module_enabled_channel(cfg, &*target, "jisho")) [INFO] [stdout] 974 + } else if (private || module_enabled_channel(cfg, target, "jisho")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 974 | } else if (private || module_enabled_channel(cfg, &**target, "jisho")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:981:25 [INFO] [stdout] | [INFO] [stdout] 981 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 981 - &*target, [INFO] [stdout] 981 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 981 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:992:52 [INFO] [stdout] | [INFO] [stdout] 992 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 992 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 992 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 992 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:995:67 [INFO] [stdout] | [INFO] [stdout] 995 | } else if (private || module_enabled_channel(cfg, &*target, "weather")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 995 - } else if (private || module_enabled_channel(cfg, &*target, "weather")) [INFO] [stdout] 995 + } else if (private || module_enabled_channel(cfg, target, "weather")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 995 | } else if (private || module_enabled_channel(cfg, &**target, "weather")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/mod.rs:226:18 [INFO] [stdout] | [INFO] [stdout] 226 | .or_insert_with(HashMap::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1002:52 [INFO] [stdout] | [INFO] [stdout] 1002 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1002 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1002 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1002 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1005:67 [INFO] [stdout] | [INFO] [stdout] 1005 | } else if (private || module_enabled_channel(cfg, &*target, "np")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1005 - } else if (private || module_enabled_channel(cfg, &*target, "np")) [INFO] [stdout] 1005 + } else if (private || module_enabled_channel(cfg, target, "np")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1005 | } else if (private || module_enabled_channel(cfg, &**target, "np")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/modules/mod.rs:249:22 [INFO] [stdout] | [INFO] [stdout] 249 | .or_insert_with(HashMap::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/modules/mod.rs:1010:59 [INFO] [stdout] | [INFO] [stdout] 1010 | let reply = np::handle(cfg, srv, log, &content[3..].trim(), nick)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `content[3..].trim()` [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: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1012:52 [INFO] [stdout] | [INFO] [stdout] 1012 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1012 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1012 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1012 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1015:67 [INFO] [stdout] | [INFO] [stdout] 1015 | } else if (private || module_enabled_channel(cfg, &*target, "time")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1015 - } else if (private || module_enabled_channel(cfg, &*target, "time")) [INFO] [stdout] 1015 + } else if (private || module_enabled_channel(cfg, target, "time")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1015 | } else if (private || module_enabled_channel(cfg, &**target, "time")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1022:52 [INFO] [stdout] | [INFO] [stdout] 1022 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1022 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1022 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1022 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1025:67 [INFO] [stdout] | [INFO] [stdout] 1025 | } else if (private || module_enabled_channel(cfg, &*target, "choose")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1025 - } else if (private || module_enabled_channel(cfg, &*target, "choose")) [INFO] [stdout] 1025 + } else if (private || module_enabled_channel(cfg, target, "choose")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1025 | } else if (private || module_enabled_channel(cfg, &**target, "choose")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/modules/mod.rs:1031:73 [INFO] [stdout] | [INFO] [stdout] 1031 | send_segmented_message(cfg, srv, log, reply_target, &reply)?; [INFO] [stdout] | ^^^^^^ help: change this to: `reply` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1032:52 [INFO] [stdout] | [INFO] [stdout] 1032 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1032 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1032 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1032 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1035:67 [INFO] [stdout] | [INFO] [stdout] 1035 | } else if (private || module_enabled_channel(cfg, &*target, "eightball")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1035 - } else if (private || module_enabled_channel(cfg, &*target, "eightball")) [INFO] [stdout] 1035 + } else if (private || module_enabled_channel(cfg, target, "eightball")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1035 | } else if (private || module_enabled_channel(cfg, &**target, "eightball")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1042:52 [INFO] [stdout] | [INFO] [stdout] 1042 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1042 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1042 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1042 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1045:67 [INFO] [stdout] | [INFO] [stdout] 1045 | } else if (private || module_enabled_channel(cfg, &*target, "openrouter")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1045 - } else if (private || module_enabled_channel(cfg, &*target, "openrouter")) [INFO] [stdout] 1045 + } else if (private || module_enabled_channel(cfg, target, "openrouter")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1045 | } else if (private || module_enabled_channel(cfg, &**target, "openrouter")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1057:56 [INFO] [stdout] | [INFO] [stdout] 1057 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1057 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1057 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1057 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1064:62 [INFO] [stdout] | [INFO] [stdout] 1064 | } else if private || module_enabled_channel(cfg, &*target, "url-info") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1064 - } else if private || module_enabled_channel(cfg, &*target, "url-info") { [INFO] [stdout] 1064 + } else if private || module_enabled_channel(cfg, target, "url-info") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1064 | } else if private || module_enabled_channel(cfg, &**target, "url-info") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1130:52 [INFO] [stdout] | [INFO] [stdout] 1130 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1130 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1130 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1130 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/modules/mod.rs:1170:19 [INFO] [stdout] | [INFO] [stdout] 1170 | let res = fun(&mut *guard.get(&cfg.address).unwrap().lock()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut guard.get(&cfg.address).unwrap().lock()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/modules/mod.rs:1179:25 [INFO] [stdout] | [INFO] [stdout] 1179 | let r = fun(&mut *guard.get(&cfg.address).unwrap().lock()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut guard.get(&cfg.address).unwrap().lock()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless call to `bytes` [INFO] [stdout] --> src/modules/mod.rs:1193:21 [INFO] [stdout] | [INFO] [stdout] 1193 | let msg_bytes = msg.bytes().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `msg.len()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes [INFO] [stdout] = note: `#[warn(clippy::needless_as_bytes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless call to `bytes` [INFO] [stdout] --> src/modules/mod.rs:1200:44 [INFO] [stdout] | [INFO] [stdout] 1200 | let fix_bytes = 1 + hostname_len + 9 + target.bytes().len() + 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `target.len()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:302:44 [INFO] [stdout] | [INFO] [stdout] 302 | if module_enabled_channel(cfg, &*target, "wormy") [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 302 - if module_enabled_channel(cfg, &*target, "wormy") [INFO] [stdout] 302 + if module_enabled_channel(cfg, target, "wormy") [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 302 | if module_enabled_channel(cfg, &**target, "wormy") [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/mod.rs:1203:53 [INFO] [stdout] | [INFO] [stdout] 1203 | let send = |msg: &str| srv.send_privmsg(target, &msg.replace('\n', " ")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `msg.replace('\n', " ")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent [INFO] [stdout] --> src/modules/mod.rs:318:34 [INFO] [stdout] | [INFO] [stdout] 318 | let first_char = content.chars().nth(0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `content.chars().next()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero [INFO] [stdout] = note: `#[warn(clippy::iter_nth_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1213:9 [INFO] [stdout] | [INFO] [stdout] 1213 | current_msg.push_str("\u{200B}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `current_msg.push('\u{200B}')` [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: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent [INFO] [stdout] --> src/modules/mod.rs:331:16 [INFO] [stdout] | [INFO] [stdout] 331 | if content.chars().nth(0).unwrap() == command_modifier2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `content.chars().next()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:332:60 [INFO] [stdout] | [INFO] [stdout] 332 | if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 332 - if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] 332 + if (private || module_enabled_channel(cfg, target, "duckduckgo")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 332 | if (private || module_enabled_channel(cfg, &**target, "duckduckgo")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1245:33 [INFO] [stdout] | [INFO] [stdout] 1245 | ... color_code.push_str(","); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `color_code.push(',')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1252:33 [INFO] [stdout] | [INFO] [stdout] 1252 | ... color_code.push_str(","); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `color_code.push(',')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1268:37 [INFO] [stdout] | [INFO] [stdout] 1268 | ... color_code.push_str(","); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `color_code.push(',')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1276:37 [INFO] [stdout] | [INFO] [stdout] 1276 | ... color_code.push_str(","); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `color_code.push(',')` [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: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:339:25 [INFO] [stdout] | [INFO] [stdout] 339 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 339 - &*target, [INFO] [stdout] 339 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 339 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:343:52 [INFO] [stdout] | [INFO] [stdout] 343 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 343 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 343 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 343 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:346:67 [INFO] [stdout] | [INFO] [stdout] 346 | } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 346 - } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] 346 + } else if (private || module_enabled_channel(cfg, target, "duckduckgo")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 346 | } else if (private || module_enabled_channel(cfg, &**target, "duckduckgo")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:353:25 [INFO] [stdout] | [INFO] [stdout] 353 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 353 - &*target, [INFO] [stdout] 353 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 353 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:357:52 [INFO] [stdout] | [INFO] [stdout] 357 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 357 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 357 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 357 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `.nth(0)` on a `std::iter::Iterator`, when `.next()` is equivalent [INFO] [stdout] --> src/modules/mod.rs:362:16 [INFO] [stdout] | [INFO] [stdout] 362 | if content.chars().nth(0).unwrap() == command_modifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try calling `.next()` instead of `.nth(0)`: `content.chars().next()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless call to `bytes` [INFO] [stdout] --> src/modules/mod.rs:1335:27 [INFO] [stdout] | [INFO] [stdout] 1335 | let len = next.bytes().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `next.len()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1339:29 [INFO] [stdout] | [INFO] [stdout] 1339 | ... out.push_str("\x02"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x02')` [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: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:366:60 [INFO] [stdout] | [INFO] [stdout] 366 | if let Some(reply) = help::handle(cfg, &*target, content, private, nick) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 366 - if let Some(reply) = help::handle(cfg, &*target, content, private, nick) { [INFO] [stdout] 366 + if let Some(reply) = help::handle(cfg, target, content, private, nick) { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 366 | if let Some(reply) = help::handle(cfg, &**target, content, private, nick) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1342:29 [INFO] [stdout] | [INFO] [stdout] 1342 | ... out.push_str("\x03"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x03')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1348:29 [INFO] [stdout] | [INFO] [stdout] 1348 | ... out.push_str("\x09"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x09')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1351:29 [INFO] [stdout] | [INFO] [stdout] 1351 | ... out.push_str("\x13"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x13')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1354:29 [INFO] [stdout] | [INFO] [stdout] 1354 | ... out.push_str("\x15"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x15')` [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: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:378:58 [INFO] [stdout] | [INFO] [stdout] 378 | let reply = help::list_commands(cfg, &*target, private, nick); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 378 - let reply = help::list_commands(cfg, &*target, private, nick); [INFO] [stdout] 378 + let reply = help::list_commands(cfg, target, private, nick); [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 378 | let reply = help::list_commands(cfg, &**target, private, nick); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1357:29 [INFO] [stdout] | [INFO] [stdout] 1357 | ... out.push_str("\x1f"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x1f')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1360:29 [INFO] [stdout] | [INFO] [stdout] 1360 | ... out.push_str("\x16"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x16')` [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: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:380:67 [INFO] [stdout] | [INFO] [stdout] 380 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 380 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 380 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 380 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1370:21 [INFO] [stdout] | [INFO] [stdout] 1370 | current_msg.push_str("\u{200B}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `current_msg.push('\u{200B}')` [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: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:391:67 [INFO] [stdout] | [INFO] [stdout] 391 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 391 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 391 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 391 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:406:67 [INFO] [stdout] | [INFO] [stdout] 406 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 406 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 406 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 406 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:421:67 [INFO] [stdout] | [INFO] [stdout] 421 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 421 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 421 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 421 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:436:67 [INFO] [stdout] | [INFO] [stdout] 436 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 436 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 436 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 436 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:452:67 [INFO] [stdout] | [INFO] [stdout] 452 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 452 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 452 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 452 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:467:67 [INFO] [stdout] | [INFO] [stdout] 467 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 467 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 467 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 467 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:482:67 [INFO] [stdout] | [INFO] [stdout] 482 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 482 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 482 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 482 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:497:67 [INFO] [stdout] | [INFO] [stdout] 497 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 497 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 497 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 497 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:512:67 [INFO] [stdout] | [INFO] [stdout] 512 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 512 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 512 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 512 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:519:67 [INFO] [stdout] | [INFO] [stdout] 519 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 519 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 519 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 519 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:526:67 [INFO] [stdout] | [INFO] [stdout] 526 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 526 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 526 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 526 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:533:67 [INFO] [stdout] | [INFO] [stdout] 533 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 533 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 533 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 533 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:572:67 [INFO] [stdout] | [INFO] [stdout] 572 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 572 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 572 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 572 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:592:67 [INFO] [stdout] | [INFO] [stdout] 592 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 592 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 592 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 592 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:629:67 [INFO] [stdout] | [INFO] [stdout] 629 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 629 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 629 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 629 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:643:67 [INFO] [stdout] | [INFO] [stdout] 643 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 643 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 643 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 643 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:652:67 [INFO] [stdout] | [INFO] [stdout] 652 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 652 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 652 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 652 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:672:67 [INFO] [stdout] | [INFO] [stdout] 672 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 672 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 672 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 672 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:680:67 [INFO] [stdout] | [INFO] [stdout] 680 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 680 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 680 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 680 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:692:67 [INFO] [stdout] | [INFO] [stdout] 692 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 692 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 692 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 692 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:704:67 [INFO] [stdout] | [INFO] [stdout] 704 | } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 704 - } else if (private || module_enabled_channel(cfg, &*target, "chantracker")) [INFO] [stdout] 704 + } else if (private || module_enabled_channel(cfg, target, "chantracker")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 704 | } else if (private || module_enabled_channel(cfg, &**target, "chantracker")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:712:67 [INFO] [stdout] | [INFO] [stdout] 712 | } else if (private || module_enabled_channel(cfg, &*target, "imdb")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 712 - } else if (private || module_enabled_channel(cfg, &*target, "imdb")) [INFO] [stdout] 712 + } else if (private || module_enabled_channel(cfg, target, "imdb")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 712 | } else if (private || module_enabled_channel(cfg, &**target, "imdb")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:722:52 [INFO] [stdout] | [INFO] [stdout] 722 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 722 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 722 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 722 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:725:67 [INFO] [stdout] | [INFO] [stdout] 725 | } else if (private || module_enabled_channel(cfg, &*target, "mal")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 725 - } else if (private || module_enabled_channel(cfg, &*target, "mal")) [INFO] [stdout] 725 + } else if (private || module_enabled_channel(cfg, target, "mal")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 725 | } else if (private || module_enabled_channel(cfg, &**target, "mal")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:735:52 [INFO] [stdout] | [INFO] [stdout] 735 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 735 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 735 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 735 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:738:67 [INFO] [stdout] | [INFO] [stdout] 738 | } else if (private || module_enabled_channel(cfg, &*target, "mal")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 738 - } else if (private || module_enabled_channel(cfg, &*target, "mal")) [INFO] [stdout] 738 + } else if (private || module_enabled_channel(cfg, target, "mal")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 738 | } else if (private || module_enabled_channel(cfg, &**target, "mal")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:748:52 [INFO] [stdout] | [INFO] [stdout] 748 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 748 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 748 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 748 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:756:67 [INFO] [stdout] | [INFO] [stdout] 756 | } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 756 - } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] 756 + } else if (private || module_enabled_channel(cfg, target, "quote")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 756 | } else if (private || module_enabled_channel(cfg, &**target, "quote")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:762:67 [INFO] [stdout] | [INFO] [stdout] 762 | } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 762 - } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] 762 + } else if (private || module_enabled_channel(cfg, target, "quote")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 762 | } else if (private || module_enabled_channel(cfg, &**target, "quote")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:768:67 [INFO] [stdout] | [INFO] [stdout] 768 | } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 768 - } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] 768 + } else if (private || module_enabled_channel(cfg, target, "quote")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 768 | } else if (private || module_enabled_channel(cfg, &**target, "quote")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:779:67 [INFO] [stdout] | [INFO] [stdout] 779 | } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 779 - } else if (private || module_enabled_channel(cfg, &*target, "quote")) [INFO] [stdout] 779 + } else if (private || module_enabled_channel(cfg, target, "quote")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 779 | } else if (private || module_enabled_channel(cfg, &**target, "quote")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:785:67 [INFO] [stdout] | [INFO] [stdout] 785 | } else if (private || module_enabled_channel(cfg, &*target, "currency")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 785 - } else if (private || module_enabled_channel(cfg, &*target, "currency")) [INFO] [stdout] 785 + } else if (private || module_enabled_channel(cfg, target, "currency")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 785 | } else if (private || module_enabled_channel(cfg, &**target, "currency")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:795:52 [INFO] [stdout] | [INFO] [stdout] 795 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 795 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 795 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 795 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:807:81 [INFO] [stdout] | [INFO] [stdout] 807 | } else if &content[1..] == "who" && module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 807 - } else if &content[1..] == "who" && module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 807 + } else if &content[1..] == "who" && module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 807 | } else if &content[1..] == "who" && module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:817:67 [INFO] [stdout] | [INFO] [stdout] 817 | } else if (private || module_enabled_channel(cfg, &*target, "tell")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 817 - } else if (private || module_enabled_channel(cfg, &*target, "tell")) [INFO] [stdout] 817 + } else if (private || module_enabled_channel(cfg, target, "tell")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 817 | } else if (private || module_enabled_channel(cfg, &**target, "tell")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:823:52 [INFO] [stdout] | [INFO] [stdout] 823 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 823 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 823 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 823 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:826:67 [INFO] [stdout] | [INFO] [stdout] 826 | } else if (private || module_enabled_channel(cfg, &*target, "aotw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 826 - } else if (private || module_enabled_channel(cfg, &*target, "aotw")) [INFO] [stdout] 826 + } else if (private || module_enabled_channel(cfg, target, "aotw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 826 | } else if (private || module_enabled_channel(cfg, &**target, "aotw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:831:52 [INFO] [stdout] | [INFO] [stdout] 831 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 831 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 831 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 831 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:834:67 [INFO] [stdout] | [INFO] [stdout] 834 | } else if (private || module_enabled_channel(cfg, &*target, "motw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 834 - } else if (private || module_enabled_channel(cfg, &*target, "motw")) [INFO] [stdout] 834 + } else if (private || module_enabled_channel(cfg, target, "motw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 834 | } else if (private || module_enabled_channel(cfg, &**target, "motw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:839:52 [INFO] [stdout] | [INFO] [stdout] 839 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 839 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 839 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 839 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:842:67 [INFO] [stdout] | [INFO] [stdout] 842 | } else if (private || module_enabled_channel(cfg, &*target, "hotw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 842 - } else if (private || module_enabled_channel(cfg, &*target, "hotw")) [INFO] [stdout] 842 + } else if (private || module_enabled_channel(cfg, target, "hotw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 842 | } else if (private || module_enabled_channel(cfg, &**target, "hotw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:847:52 [INFO] [stdout] | [INFO] [stdout] 847 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 847 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 847 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 847 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:850:67 [INFO] [stdout] | [INFO] [stdout] 850 | } else if (private || module_enabled_channel(cfg, &*target, "aotw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 850 - } else if (private || module_enabled_channel(cfg, &*target, "aotw")) [INFO] [stdout] 850 + } else if (private || module_enabled_channel(cfg, target, "aotw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 850 | } else if (private || module_enabled_channel(cfg, &**target, "aotw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:859:55 [INFO] [stdout] | [INFO] [stdout] 859 | aotw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 859 - aotw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] 859 + aotw::manual_rotate(cfg, srv, target)?; [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 859 | aotw::manual_rotate(cfg, srv, &**target)?; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:861:67 [INFO] [stdout] | [INFO] [stdout] 861 | } else if (private || module_enabled_channel(cfg, &*target, "motw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 861 - } else if (private || module_enabled_channel(cfg, &*target, "motw")) [INFO] [stdout] 861 + } else if (private || module_enabled_channel(cfg, target, "motw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 861 | } else if (private || module_enabled_channel(cfg, &**target, "motw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:870:55 [INFO] [stdout] | [INFO] [stdout] 870 | motw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 870 - motw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] 870 + motw::manual_rotate(cfg, srv, target)?; [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 870 | motw::manual_rotate(cfg, srv, &**target)?; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:872:67 [INFO] [stdout] | [INFO] [stdout] 872 | } else if (private || module_enabled_channel(cfg, &*target, "hotw")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 872 - } else if (private || module_enabled_channel(cfg, &*target, "hotw")) [INFO] [stdout] 872 + } else if (private || module_enabled_channel(cfg, target, "hotw")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 872 | } else if (private || module_enabled_channel(cfg, &**target, "hotw")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:881:55 [INFO] [stdout] | [INFO] [stdout] 881 | hotw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 881 - hotw::manual_rotate(cfg, srv, &*target)?; [INFO] [stdout] 881 + hotw::manual_rotate(cfg, srv, target)?; [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 881 | hotw::manual_rotate(cfg, srv, &**target)?; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `parts.get(0)` [INFO] [stdout] --> src/modules/mod.rs:890:48 [INFO] [stdout] | [INFO] [stdout] 890 | if let Some(channel) = parts.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^ help: try: `parts.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `parts.get(0)` [INFO] [stdout] --> src/modules/mod.rs:910:46 [INFO] [stdout] | [INFO] [stdout] 910 | if let Some(first) = parts.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^ help: try: `parts.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:922:67 [INFO] [stdout] | [INFO] [stdout] 922 | } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 922 - } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] 922 + } else if (private || module_enabled_channel(cfg, target, "duckduckgo")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 922 | } else if (private || module_enabled_channel(cfg, &**target, "duckduckgo")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:929:25 [INFO] [stdout] | [INFO] [stdout] 929 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 929 - &*target, [INFO] [stdout] 929 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 929 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:933:52 [INFO] [stdout] | [INFO] [stdout] 933 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 933 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 933 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 933 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:936:67 [INFO] [stdout] | [INFO] [stdout] 936 | } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 936 - } else if (private || module_enabled_channel(cfg, &*target, "duckduckgo")) [INFO] [stdout] 936 + } else if (private || module_enabled_channel(cfg, target, "duckduckgo")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 936 | } else if (private || module_enabled_channel(cfg, &**target, "duckduckgo")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:943:25 [INFO] [stdout] | [INFO] [stdout] 943 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 943 - &*target, [INFO] [stdout] 943 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 943 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:947:52 [INFO] [stdout] | [INFO] [stdout] 947 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 947 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 947 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 947 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:950:67 [INFO] [stdout] | [INFO] [stdout] 950 | } else if (private || module_enabled_channel(cfg, &*target, "wolframalpha")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 950 - } else if (private || module_enabled_channel(cfg, &*target, "wolframalpha")) [INFO] [stdout] 950 + } else if (private || module_enabled_channel(cfg, target, "wolframalpha")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 950 | } else if (private || module_enabled_channel(cfg, &**target, "wolframalpha")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:960:25 [INFO] [stdout] | [INFO] [stdout] 960 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 960 - &*target, [INFO] [stdout] 960 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 960 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:971:52 [INFO] [stdout] | [INFO] [stdout] 971 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 971 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 971 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 971 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:974:67 [INFO] [stdout] | [INFO] [stdout] 974 | } else if (private || module_enabled_channel(cfg, &*target, "jisho")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 974 - } else if (private || module_enabled_channel(cfg, &*target, "jisho")) [INFO] [stdout] 974 + } else if (private || module_enabled_channel(cfg, target, "jisho")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 974 | } else if (private || module_enabled_channel(cfg, &**target, "jisho")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:981:25 [INFO] [stdout] | [INFO] [stdout] 981 | &*target, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 981 - &*target, [INFO] [stdout] 981 + target, [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 981 | &**target, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:992:52 [INFO] [stdout] | [INFO] [stdout] 992 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 992 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 992 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 992 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:995:67 [INFO] [stdout] | [INFO] [stdout] 995 | } else if (private || module_enabled_channel(cfg, &*target, "weather")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 995 - } else if (private || module_enabled_channel(cfg, &*target, "weather")) [INFO] [stdout] 995 + } else if (private || module_enabled_channel(cfg, target, "weather")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 995 | } else if (private || module_enabled_channel(cfg, &**target, "weather")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1002:52 [INFO] [stdout] | [INFO] [stdout] 1002 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1002 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1002 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1002 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1005:67 [INFO] [stdout] | [INFO] [stdout] 1005 | } else if (private || module_enabled_channel(cfg, &*target, "np")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1005 - } else if (private || module_enabled_channel(cfg, &*target, "np")) [INFO] [stdout] 1005 + } else if (private || module_enabled_channel(cfg, target, "np")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1005 | } else if (private || module_enabled_channel(cfg, &**target, "np")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/modules/mod.rs:1010:59 [INFO] [stdout] | [INFO] [stdout] 1010 | let reply = np::handle(cfg, srv, log, &content[3..].trim(), nick)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `content[3..].trim()` [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: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1012:52 [INFO] [stdout] | [INFO] [stdout] 1012 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1012 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1012 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1012 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1015:67 [INFO] [stdout] | [INFO] [stdout] 1015 | } else if (private || module_enabled_channel(cfg, &*target, "time")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1015 - } else if (private || module_enabled_channel(cfg, &*target, "time")) [INFO] [stdout] 1015 + } else if (private || module_enabled_channel(cfg, target, "time")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1015 | } else if (private || module_enabled_channel(cfg, &**target, "time")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1022:52 [INFO] [stdout] | [INFO] [stdout] 1022 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1022 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1022 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1022 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1025:67 [INFO] [stdout] | [INFO] [stdout] 1025 | } else if (private || module_enabled_channel(cfg, &*target, "choose")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1025 - } else if (private || module_enabled_channel(cfg, &*target, "choose")) [INFO] [stdout] 1025 + } else if (private || module_enabled_channel(cfg, target, "choose")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1025 | } else if (private || module_enabled_channel(cfg, &**target, "choose")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/modules/mod.rs:1031:73 [INFO] [stdout] | [INFO] [stdout] 1031 | send_segmented_message(cfg, srv, log, reply_target, &reply)?; [INFO] [stdout] | ^^^^^^ help: change this to: `reply` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1032:52 [INFO] [stdout] | [INFO] [stdout] 1032 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1032 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1032 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1032 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1035:67 [INFO] [stdout] | [INFO] [stdout] 1035 | } else if (private || module_enabled_channel(cfg, &*target, "eightball")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1035 - } else if (private || module_enabled_channel(cfg, &*target, "eightball")) [INFO] [stdout] 1035 + } else if (private || module_enabled_channel(cfg, target, "eightball")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1035 | } else if (private || module_enabled_channel(cfg, &**target, "eightball")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1042:52 [INFO] [stdout] | [INFO] [stdout] 1042 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1042 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1042 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1042 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1045:67 [INFO] [stdout] | [INFO] [stdout] 1045 | } else if (private || module_enabled_channel(cfg, &*target, "openrouter")) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1045 - } else if (private || module_enabled_channel(cfg, &*target, "openrouter")) [INFO] [stdout] 1045 + } else if (private || module_enabled_channel(cfg, target, "openrouter")) [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1045 | } else if (private || module_enabled_channel(cfg, &**target, "openrouter")) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1057:56 [INFO] [stdout] | [INFO] [stdout] 1057 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1057 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1057 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1057 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1064:62 [INFO] [stdout] | [INFO] [stdout] 1064 | } else if private || module_enabled_channel(cfg, &*target, "url-info") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1064 - } else if private || module_enabled_channel(cfg, &*target, "url-info") { [INFO] [stdout] 1064 + } else if private || module_enabled_channel(cfg, target, "url-info") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1064 | } else if private || module_enabled_channel(cfg, &**target, "url-info") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref on an immutable reference [INFO] [stdout] --> src/modules/mod.rs:1130:52 [INFO] [stdout] | [INFO] [stdout] 1130 | if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref [INFO] [stdout] help: if you would like to reborrow, try removing `&*` [INFO] [stdout] | [INFO] [stdout] 1130 - if module_enabled_channel(cfg, &*target, "wormy") { [INFO] [stdout] 1130 + if module_enabled_channel(cfg, target, "wormy") { [INFO] [stdout] | [INFO] [stdout] help: if you would like to deref, try using `&**` [INFO] [stdout] | [INFO] [stdout] 1130 | if module_enabled_channel(cfg, &**target, "wormy") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/modules/mod.rs:1170:19 [INFO] [stdout] | [INFO] [stdout] 1170 | let res = fun(&mut *guard.get(&cfg.address).unwrap().lock()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut guard.get(&cfg.address).unwrap().lock()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/modules/mod.rs:1179:25 [INFO] [stdout] | [INFO] [stdout] 1179 | let r = fun(&mut *guard.get(&cfg.address).unwrap().lock()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut guard.get(&cfg.address).unwrap().lock()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless call to `bytes` [INFO] [stdout] --> src/modules/mod.rs:1193:21 [INFO] [stdout] | [INFO] [stdout] 1193 | let msg_bytes = msg.bytes().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `msg.len()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes [INFO] [stdout] = note: `#[warn(clippy::needless_as_bytes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless call to `bytes` [INFO] [stdout] --> src/modules/mod.rs:1200:44 [INFO] [stdout] | [INFO] [stdout] 1200 | let fix_bytes = 1 + hostname_len + 9 + target.bytes().len() + 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `target.len()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/modules/mod.rs:1203:53 [INFO] [stdout] | [INFO] [stdout] 1203 | let send = |msg: &str| srv.send_privmsg(target, &msg.replace('\n', " ")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `msg.replace('\n', " ")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1213:9 [INFO] [stdout] | [INFO] [stdout] 1213 | current_msg.push_str("\u{200B}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `current_msg.push('\u{200B}')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1245:33 [INFO] [stdout] | [INFO] [stdout] 1245 | ... color_code.push_str(","); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `color_code.push(',')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1252:33 [INFO] [stdout] | [INFO] [stdout] 1252 | ... color_code.push_str(","); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `color_code.push(',')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1268:37 [INFO] [stdout] | [INFO] [stdout] 1268 | ... color_code.push_str(","); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `color_code.push(',')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1276:37 [INFO] [stdout] | [INFO] [stdout] 1276 | ... color_code.push_str(","); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `color_code.push(',')` [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: needless call to `bytes` [INFO] [stdout] --> src/modules/mod.rs:1335:27 [INFO] [stdout] | [INFO] [stdout] 1335 | let len = next.bytes().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `next.len()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1339:29 [INFO] [stdout] | [INFO] [stdout] 1339 | ... out.push_str("\x02"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x02')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1342:29 [INFO] [stdout] | [INFO] [stdout] 1342 | ... out.push_str("\x03"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x03')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1348:29 [INFO] [stdout] | [INFO] [stdout] 1348 | ... out.push_str("\x09"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x09')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1351:29 [INFO] [stdout] | [INFO] [stdout] 1351 | ... out.push_str("\x13"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x13')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1354:29 [INFO] [stdout] | [INFO] [stdout] 1354 | ... out.push_str("\x15"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x15')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1357:29 [INFO] [stdout] | [INFO] [stdout] 1357 | ... out.push_str("\x1f"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x1f')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1360:29 [INFO] [stdout] | [INFO] [stdout] 1360 | ... out.push_str("\x16"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `out.push('\x16')` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/modules/mod.rs:1370:21 [INFO] [stdout] | [INFO] [stdout] 1370 | current_msg.push_str("\u{200B}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `current_msg.push('\u{200B}')` [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 use of `format!` [INFO] [stdout] --> src/webserver.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | format!("Removed") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Removed".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/webserver.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | format!("Removed") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Removed".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8m 06s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v1.2.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "75bf173de124e5dad411c4bbe045d35740fce076559d3a68f8a19c2f2bce35ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75bf173de124e5dad411c4bbe045d35740fce076559d3a68f8a19c2f2bce35ae", kill_on_drop: false }` [INFO] [stdout] 75bf173de124e5dad411c4bbe045d35740fce076559d3a68f8a19c2f2bce35ae