[INFO] fetching crate campmaster-constantine 0.2.1... [INFO] checking campmaster-constantine-0.2.1 against master#cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9 for pr-136968 [INFO] extracting crate campmaster-constantine 0.2.1 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate campmaster-constantine 0.2.1 on toolchain cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate campmaster-constantine 0.2.1 [INFO] finished tweaking crates.io crate campmaster-constantine 0.2.1 [INFO] tweaked toml for crates.io crate campmaster-constantine 0.2.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate crates.io crate campmaster-constantine 0.2.1 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" "+cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.60 [INFO] [stderr] Downloaded migrations_internals v1.4.1 [INFO] [stderr] Downloaded migrations_macros v1.4.2 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.60 [INFO] [stderr] Downloaded proc-macro-nested v0.1.4 [INFO] [stderr] Downloaded futures-sink v0.3.4 [INFO] [stderr] Downloaded vcpkg v0.2.8 [INFO] [stderr] Downloaded proc-macro-hack v0.5.15 [INFO] [stderr] Downloaded parking_lot v0.9.0 [INFO] [stderr] Downloaded diesel_derives v1.4.1 [INFO] [stderr] Downloaded half v1.5.0 [INFO] [stderr] Downloaded flate2 v1.0.14 [INFO] [stderr] Downloaded reqwest v0.10.4 [INFO] [stderr] Downloaded diesel v1.4.4 [INFO] [stderr] Downloaded h2 v0.2.4 [INFO] [stderr] Downloaded hyper v0.13.5 [INFO] [stderr] Downloaded idna v0.2.0 [INFO] [stderr] Downloaded rustls v0.16.0 [INFO] [stderr] Downloaded tokio v0.2.20 [INFO] [stderr] Downloaded mio v0.6.21 [INFO] [stderr] Downloaded bumpalo v3.2.1 [INFO] [stderr] Downloaded wasm-bindgen v0.2.60 [INFO] [stderr] Downloaded web-sys v0.3.37 [INFO] [stderr] Downloaded http v0.2.1 [INFO] [stderr] Downloaded diesel_migrations v1.4.0 [INFO] [stderr] Downloaded security-framework v0.4.3 [INFO] [stderr] Downloaded indexmap v1.3.2 [INFO] [stderr] Downloaded tokio-util v0.3.1 [INFO] [stderr] Downloaded net2 v0.2.33 [INFO] [stderr] Downloaded input_buffer v0.2.0 [INFO] [stderr] Downloaded serenity v0.8.6 [INFO] [stderr] Downloaded typenum v1.12.0 [INFO] [stderr] Downloaded http v0.1.21 [INFO] [stderr] Downloaded url v2.1.1 [INFO] [stderr] Downloaded command_attr v0.2.0 [INFO] [stderr] Downloaded futures-util v0.3.4 [INFO] [stderr] Downloaded js-sys v0.3.37 [INFO] [stderr] Downloaded serde v1.0.106 [INFO] [stderr] Downloaded serde_json v1.0.52 [INFO] [stderr] Downloaded parking_lot_core v0.6.2 [INFO] [stderr] Downloaded futures-channel v0.3.4 [INFO] [stderr] Downloaded tungstenite v0.9.2 [INFO] [stderr] Downloaded cc v1.0.52 [INFO] [stderr] Downloaded encoding_rs v0.8.22 [INFO] [stderr] Downloaded serde_derive v1.0.106 [INFO] [stderr] Downloaded proc-macro2 v1.0.10 [INFO] [stderr] Downloaded quote v1.0.3 [INFO] [stderr] Downloaded webpki v0.21.2 [INFO] [stderr] Downloaded pq-sys v0.4.6 [INFO] [stderr] Downloaded kankyo v0.3.0 [INFO] [stderr] Downloaded serde_yaml v0.8.11 [INFO] [stderr] Downloaded pickledb v0.4.1 [INFO] [stderr] Downloaded smallvec v0.6.13 [INFO] [stderr] Downloaded futures-task v0.3.4 [INFO] [stderr] Downloaded pin-project v0.4.9 [INFO] [stderr] Downloaded schannel v0.1.18 [INFO] [stderr] Downloaded hyper-rustls v0.20.0 [INFO] [stderr] Downloaded bytes v0.5.4 [INFO] [stderr] Downloaded threadpool v1.8.0 [INFO] [stderr] Downloaded unicode-bidi v0.3.4 [INFO] [stderr] Downloaded smallvec v1.4.0 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.60 [INFO] [stderr] Downloaded ct-logs v0.6.0 [INFO] [stderr] Downloaded futures-io v0.3.4 [INFO] [stderr] Downloaded mime_guess v2.0.3 [INFO] [stderr] Downloaded serde_urlencoded v0.6.1 [INFO] [stderr] Downloaded miow v0.2.1 [INFO] [stderr] Downloaded slab v0.4.2 [INFO] [stderr] Downloaded tokio-rustls v0.13.0 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.10 [INFO] [stderr] Downloaded sct v0.6.0 [INFO] [stderr] Downloaded fnv v1.0.6 [INFO] [stderr] Downloaded rustls-native-certs v0.3.0 [INFO] [stderr] Downloaded httparse v1.3.4 [INFO] [stderr] Downloaded unsafe-any v0.4.2 [INFO] [stderr] Downloaded futures-macro v0.3.4 [INFO] [stderr] Downloaded pin-project-internal v0.4.9 [INFO] [stderr] Downloaded security-framework-sys v0.4.3 [INFO] [stderr] Downloaded hermit-abi v0.1.12 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.60 [INFO] [stderr] Downloaded tower-service v0.3.0 [INFO] [stderr] Downloaded try-lock v0.2.2 [INFO] [stderr] Downloaded openssl-probe v0.1.2 [INFO] [stderr] Downloaded version_check v0.9.1 [INFO] [stderr] Downloaded dtoa v0.4.5 [INFO] [stderr] Downloaded futures-core v0.3.4 [INFO] [stderr] Downloaded pin-project-lite v0.1.4 [INFO] [stderr] Downloaded typemap v0.3.3 [INFO] [stderr] Downloaded uwl v0.6.0 [INFO] [stderr] Downloaded http-body v0.3.1 [INFO] [stderr] Downloaded utf-8 v0.7.5 [INFO] [stderr] Downloaded traitobject v0.1.0 [INFO] [stderr] Downloaded ring v0.16.12 [INFO] [stderr] Downloaded unicode-normalization v0.1.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d68ee5707195bda875999189878f3f04a351edc69a7019dedd89153fb365fed1 [INFO] running `Command { std: "docker" "start" "-a" "d68ee5707195bda875999189878f3f04a351edc69a7019dedd89153fb365fed1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d68ee5707195bda875999189878f3f04a351edc69a7019dedd89153fb365fed1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d68ee5707195bda875999189878f3f04a351edc69a7019dedd89153fb365fed1", kill_on_drop: false }` [INFO] [stdout] d68ee5707195bda875999189878f3f04a351edc69a7019dedd89153fb365fed1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 828ca5448540accf17814e45d5ea2495dec54fa820282959d69f82610ec9c68d [INFO] running `Command { std: "docker" "start" "-a" "828ca5448540accf17814e45d5ea2495dec54fa820282959d69f82610ec9c68d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling syn v1.0.18 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling cc v1.0.52 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Checking smallvec v1.4.0 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Checking futures-io v0.3.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking futures-task v0.3.4 [INFO] [stderr] Checking futures-sink v0.3.4 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking dtoa v0.4.5 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Compiling encoding_rs v0.8.22 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling ring v0.16.12 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking linked-hash-map v0.5.2 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking unsafe-any v0.4.2 [INFO] [stderr] Checking miniz_oxide v0.3.6 [INFO] [stderr] Checking input_buffer v0.2.0 [INFO] [stderr] Checking http v0.1.21 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking yaml-rust v0.4.3 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking utf-8 v0.7.5 [INFO] [stderr] Compiling serenity v0.8.6 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking half v1.5.0 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking tokio v0.2.20 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking flate2 v1.0.14 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking typemap v0.3.3 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking threadpool v1.8.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking uwl v0.6.0 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking kankyo v0.3.0 [INFO] [stderr] Checking tungstenite v0.9.2 [INFO] [stderr] Checking regex v1.3.7 [INFO] [stderr] Checking webpki v0.21.2 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking ct-logs v0.6.0 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking rustls v0.17.0 [INFO] [stderr] Checking webpki-roots v0.18.0 [INFO] [stderr] Checking rustls v0.16.0 [INFO] [stderr] Checking tokio-rustls v0.13.0 [INFO] [stderr] Checking rustls-native-certs v0.3.0 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling pin-project-internal v0.4.9 [INFO] [stderr] Compiling command_attr v0.2.0 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking pin-project v0.4.9 [INFO] [stderr] Compiling diesel v1.4.4 [INFO] [stderr] Checking h2 v0.2.4 [INFO] [stderr] Checking hyper v0.13.5 [INFO] [stderr] Checking hyper-rustls v0.20.0 [INFO] [stderr] Checking serde_json v1.0.52 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking bincode v1.2.1 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking serde_cbor v0.11.1 [INFO] [stderr] Checking serde_yaml v0.8.11 [INFO] [stderr] Checking reqwest v0.10.4 [INFO] [stderr] Checking pickledb v0.4.1 [INFO] [stderr] Checking migrations_internals v1.4.1 [INFO] [stderr] Compiling migrations_macros v1.4.2 [INFO] [stderr] Checking diesel_migrations v1.4.0 [INFO] [stderr] Checking campmaster-constantine v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ActivityType`, `LackingPermissions`, `OnlyForGuilds`, `OnlyForOwners`, and `Reason` [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | Reason, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | DispatchError::{NotEnoughArguments,TooManyArguments, CheckFailed, OnlyForGuilds, OnlyForOwners, LackingPermissions} [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | gateway::{Activity, ActivityType, Ready}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pickledb::*` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use pickledb::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::user::User` [INFO] [stdout] --> src/commands/moderation.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | use serenity::{model::channel::Message, model::user::User, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get_psql_connection` and `init_guild_settings` [INFO] [stdout] --> src/commands/owner.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::util::data::{get_pickle_database, init_guild_settings, get_psql_connection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PickleDbDumpPolicy` and `PickleDb` [INFO] [stdout] --> src/commands/owner.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use pickledb::{PickleDb, PickleDbDumpPolicy}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StandardFramework` [INFO] [stdout] --> src/commands/owner.rs:8:69 [INFO] [stdout] | [INFO] [stdout] 8 | use serenity::framework::standard::{macros::command, CommandResult, StandardFramework}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::guild::Member` [INFO] [stdout] --> src/commands/owner.rs:9:41 [INFO] [stdout] | [INFO] [stdout] 9 | use serenity::{model::channel::Message, model::guild::Member, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/commands/owner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::SqliteStrike` [INFO] [stdout] --> src/commands/owner.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::models::SqliteStrike; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude::*` [INFO] [stdout] --> src/commands/owner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pickledb::*` [INFO] [stdout] --> src/commands/points.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use pickledb::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PickleDbDumpPolicy` [INFO] [stdout] --> src/commands/qotd.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use pickledb::{PickleDb, PickleDbDumpPolicy}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StandardFramework` [INFO] [stdout] --> src/commands/qotd.rs:9:75 [INFO] [stdout] | [INFO] [stdout] 9 | use serenity::framework::standard::{macros::command, Args, CommandResult, StandardFramework}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::guild::Member` [INFO] [stdout] --> src/commands/qotd.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | use serenity::{model::channel::Message, model::guild::Member, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PickleDbDumpPolicy` and `PickleDb` [INFO] [stdout] --> src/commands/settings.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use pickledb::{PickleDb, PickleDbDumpPolicy}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StandardFramework` [INFO] [stdout] --> src/commands/settings.rs:9:75 [INFO] [stdout] | [INFO] [stdout] 9 | use serenity::framework::standard::{macros::command, Args, CommandResult, StandardFramework}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::guild::Member` [INFO] [stdout] --> src/commands/settings.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | use serenity::{model::channel::Message, model::guild::Member, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/commands/settings.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::*` [INFO] [stdout] --> src/util/data.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use diesel::{prelude::*, pg::PgConnection}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/util/leveling.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::guild::Member` [INFO] [stdout] --> src/prelude.rs:9:45 [INFO] [stdout] | [INFO] [stdout] 9 | pub use serenity::{model::channel::Message, model::guild::Member, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/prelude.rs:11:32 [INFO] [stdout] | [INFO] [stdout] 11 | pub use log::{error,warn,debug,info}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::deserialize::Queryable` [INFO] [stdout] --> src/models.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | use diesel::deserialize::Queryable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 92 | if (r.count >= 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - if (r.count >= 2) { [INFO] [stdout] 92 + if r.count >= 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:99:28 [INFO] [stdout] | [INFO] [stdout] 99 | if (r.count >= 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - if (r.count >= 1) { [INFO] [stdout] 99 + if r.count >= 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ActivityType`, `LackingPermissions`, `OnlyForGuilds`, `OnlyForOwners`, and `Reason` [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | Reason, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | DispatchError::{NotEnoughArguments,TooManyArguments, CheckFailed, OnlyForGuilds, OnlyForOwners, LackingPermissions} [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | gateway::{Activity, ActivityType, Ready}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pickledb::*` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use pickledb::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::user::User` [INFO] [stdout] --> src/commands/moderation.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | use serenity::{model::channel::Message, model::user::User, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get_psql_connection` and `init_guild_settings` [INFO] [stdout] --> src/commands/owner.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::util::data::{get_pickle_database, init_guild_settings, get_psql_connection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PickleDbDumpPolicy` and `PickleDb` [INFO] [stdout] --> src/commands/owner.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use pickledb::{PickleDb, PickleDbDumpPolicy}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StandardFramework` [INFO] [stdout] --> src/commands/owner.rs:8:69 [INFO] [stdout] | [INFO] [stdout] 8 | use serenity::framework::standard::{macros::command, CommandResult, StandardFramework}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::guild::Member` [INFO] [stdout] --> src/commands/owner.rs:9:41 [INFO] [stdout] | [INFO] [stdout] 9 | use serenity::{model::channel::Message, model::guild::Member, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/commands/owner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::SqliteStrike` [INFO] [stdout] --> src/commands/owner.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::models::SqliteStrike; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude::*` [INFO] [stdout] --> src/commands/owner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pickledb::*` [INFO] [stdout] --> src/commands/points.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use pickledb::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PickleDbDumpPolicy` [INFO] [stdout] --> src/commands/qotd.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use pickledb::{PickleDb, PickleDbDumpPolicy}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StandardFramework` [INFO] [stdout] --> src/commands/qotd.rs:9:75 [INFO] [stdout] | [INFO] [stdout] 9 | use serenity::framework::standard::{macros::command, Args, CommandResult, StandardFramework}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::guild::Member` [INFO] [stdout] --> src/commands/qotd.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | use serenity::{model::channel::Message, model::guild::Member, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PickleDbDumpPolicy` and `PickleDb` [INFO] [stdout] --> src/commands/settings.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use pickledb::{PickleDb, PickleDbDumpPolicy}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StandardFramework` [INFO] [stdout] --> src/commands/settings.rs:9:75 [INFO] [stdout] | [INFO] [stdout] 9 | use serenity::framework::standard::{macros::command, Args, CommandResult, StandardFramework}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::guild::Member` [INFO] [stdout] --> src/commands/settings.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | use serenity::{model::channel::Message, model::guild::Member, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/commands/settings.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::*` [INFO] [stdout] --> src/util/data.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use diesel::{prelude::*, pg::PgConnection}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::guild::Member` [INFO] [stdout] --> src/prelude.rs:9:45 [INFO] [stdout] | [INFO] [stdout] 9 | pub use serenity::{model::channel::Message, model::guild::Member, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/prelude.rs:11:32 [INFO] [stdout] | [INFO] [stdout] 11 | pub use log::{error,warn,debug,info}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::deserialize::Queryable` [INFO] [stdout] --> src/models.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | use diesel::deserialize::Queryable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 92 | if (r.count >= 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - if (r.count >= 2) { [INFO] [stdout] 92 + if r.count >= 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:99:28 [INFO] [stdout] | [INFO] [stdout] 99 | if (r.count >= 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - if (r.count >= 1) { [INFO] [stdout] 99 + if r.count >= 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/commands/owner.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | std::process::exit(0); [INFO] [stdout] | --------------------- any code following this expression is unreachable [INFO] [stdout] 24 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/commands/owner.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | std::process::exit(0); [INFO] [stdout] | --------------------- any code following this expression is unreachable [INFO] [stdout] 24 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude` [INFO] [stdout] --> src/models.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude` [INFO] [stdout] --> src/main.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude` [INFO] [stdout] --> src/models.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude` [INFO] [stdout] --> src/main.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/commands/moderation.rs:155:16 [INFO] [stdout] | [INFO] [stdout] 155 | if let Error = db.set(&args.rest(), &1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/commands/moderation.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 141 | Some(i) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Error` [INFO] [stdout] --> src/commands/moderation.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | if let Error = db.set(&args.rest(), &1) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/commands/moderation.rs:155:16 [INFO] [stdout] | [INFO] [stdout] 155 | if let Error = db.set(&args.rest(), &1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/commands/moderation.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 141 | Some(i) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Error` [INFO] [stdout] --> src/commands/moderation.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | if let Error = db.set(&args.rest(), &1) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/moderation.rs:136:46 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn add(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/moderation.rs:136:46 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn add(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/moderation.rs:182:49 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn global(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/moderation.rs:182:49 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn global(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/moderation.rs:218:55 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn clearstrikes(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/moderation.rs:218:55 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn clearstrikes(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/moderation.rs:329:50 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn getcase(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/moderation.rs:329:50 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn getcase(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/points.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut db_keys = db.get_all(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/points.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut db_keys = db.get_all(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/qotd.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut db_keys = db.get_all(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guild` [INFO] [stdout] --> src/commands/qotd.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let guild = guild_arc.read(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guild` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/qotd.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut db_keys = db.get_all(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guild` [INFO] [stdout] --> src/commands/qotd.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let guild = guild_arc.read(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guild` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/qotd.rs:175:50 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn suggest(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/qotd.rs:175:50 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn suggest(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/settings.rs:47:46 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/settings.rs:47:46 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/settings.rs:90:46 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn set(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/commands/settings.rs:90:46 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn set(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Error` [INFO] [stdout] --> src/util/data.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Error => PickleDb::new_yaml(&path, PickleDbDumpPolicy::AutoDump), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Error` [INFO] [stdout] --> src/util/data.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | Error => PickleDb::new_yaml(&path, PickleDbDumpPolicy::AutoDump), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Error` [INFO] [stdout] --> src/util/data.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Error => PickleDb::new_yaml(&path, PickleDbDumpPolicy::AutoDump), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Error` [INFO] [stdout] --> src/util/data.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | Error => PickleDb::new_yaml(&path, PickleDbDumpPolicy::AutoDump), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/util/data.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util/moderation.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut global_db = get_global_pickle_database("banned_words.db"); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util/moderation.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut lower_content = content.to_lowercase(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/util/data.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util/moderation.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut global_db = get_global_pickle_database("banned_words.db"); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util/moderation.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut lower_content = content.to_lowercase(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ready` [INFO] [stdout] --> src/main.rs:80:35 [INFO] [stdout] | [INFO] [stdout] 80 | fn ready(&self, ctx: Context, ready: Ready) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ready` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `animated` [INFO] [stdout] --> src/main.rs:90:40 [INFO] [stdout] | [INFO] [stdout] 90 | ReactionType::Custom { animated, id, name } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `animated: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:90:54 [INFO] [stdout] | [INFO] [stdout] 90 | ReactionType::Custom { animated, id, name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ready` [INFO] [stdout] --> src/main.rs:80:35 [INFO] [stdout] | [INFO] [stdout] 80 | fn ready(&self, ctx: Context, ready: Ready) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ready` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:200:28 [INFO] [stdout] | [INFO] [stdout] 200 | fn guild_create(&self, ctx: Context, guild: Guild, _is_new: bool) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Error` [INFO] [stdout] --> src/main.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | Error => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/main.rs:308:41 [INFO] [stdout] | [INFO] [stdout] 308 | CheckFailed ( stri, reason) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stri` [INFO] [stdout] --> src/main.rs:314:83 [INFO] [stdout] | [INFO] [stdout] 314 | serenity::framework::standard::DispatchError::CommandDisabled(stri) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `animated` [INFO] [stdout] --> src/main.rs:90:40 [INFO] [stdout] | [INFO] [stdout] 90 | ReactionType::Custom { animated, id, name } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `animated: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:90:54 [INFO] [stdout] | [INFO] [stdout] 90 | ReactionType::Custom { animated, id, name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `details` is never read [INFO] [stdout] --> src/util/moderation.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ModAction { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub details: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:200:28 [INFO] [stdout] | [INFO] [stdout] 200 | fn guild_create(&self, ctx: Context, guild: Guild, _is_new: bool) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Error` should have a snake case name [INFO] [stdout] --> src/main.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | Error => { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Error` [INFO] [stdout] --> src/main.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | Error => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/main.rs:308:41 [INFO] [stdout] | [INFO] [stdout] 308 | CheckFailed ( stri, reason) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stri` [INFO] [stdout] --> src/main.rs:314:83 [INFO] [stdout] | [INFO] [stdout] 314 | serenity::framework::standard::DispatchError::CommandDisabled(stri) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:300:25 [INFO] [stdout] | [INFO] [stdout] 300 | msg.channel_id.say(&context, &s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 300 | let _ = msg.channel_id.say(&context, &s); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:306:25 [INFO] [stdout] | [INFO] [stdout] 306 | msg.channel_id.say(&context, &s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 306 | let _ = msg.channel_id.say(&context, &s); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:311:25 [INFO] [stdout] | [INFO] [stdout] 311 | msg.channel_id.say(&context, "You do not have permission to use this command!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 311 | let _ = msg.channel_id.say(&context, "You do not have permission to use this command!"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Error` should have a snake case name [INFO] [stdout] --> src/commands/moderation.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | if let Error = db.set(&args.rest(), &1) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/moderation.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | log_mod_action(action, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 231 | let _ = log_mod_action(action, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/owner.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | / msg.channel_id [INFO] [stdout] 20 | | .say(&ctx.http, "Restarting bot, and applying new changes"); [INFO] [stdout] | |___________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 19 | let _ = msg.channel_id [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/owner.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | guild_cache.set("current_qotd", &0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 32 | let _ = guild_cache.set("current_qotd", &0); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/points.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / msg.channel_id.send_message(&ctx.http, |m| { [INFO] [stdout] 58 | | m.embed(|e| { [INFO] [stdout] 59 | | let mut title = msg.author.name.clone(); [INFO] [stdout] 60 | | title.push_str("'s profile"); [INFO] [stdout] ... | [INFO] [stdout] 68 | | m [INFO] [stdout] 69 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = msg.channel_id.send_message(&ctx.http, |m| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `topList` should have a snake case name [INFO] [stdout] --> src/commands/points.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut topList: Vec<&UserIdPoints> = vec![]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `top_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/points.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | points_db.set(&user.as_u64().to_string(), &new_points); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 188 | let _ = points_db.set(&user.as_u64().to_string(), &new_points); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/qotd.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | db.set(¤t_num.to_string(), &args.rest()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 99 | let _ = db.set(¤t_num.to_string(), &args.rest()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `details` is never read [INFO] [stdout] --> src/util/moderation.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ModAction { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub details: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util/data.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | db.set("qotd_role", &0u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 15 | let _ = db.set("qotd_role", &0u64); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util/data.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | db.set("qotd_channel", &0u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 16 | let _ = db.set("qotd_channel", &0u64); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util/data.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | db.set("qotd_suggest_channel", &0u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 17 | let _ = db.set("qotd_suggest_channel", &0u64); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util/data.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | db.set("modlogs_channel", &0u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 19 | let _ = db.set("modlogs_channel", &0u64); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Error` should have a snake case name [INFO] [stdout] --> src/util/data.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Error => PickleDb::new_yaml(&path, PickleDbDumpPolicy::AutoDump), [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Error` should have a snake case name [INFO] [stdout] --> src/util/data.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | Error => PickleDb::new_yaml(&path, PickleDbDumpPolicy::AutoDump), [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Error` should have a snake case name [INFO] [stdout] --> src/main.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | Error => { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `table` is not local [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] | | -- `id` is not local [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] | | ------- `user_id` is not local [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_user_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] 5 | | moderator -> Text, [INFO] [stdout] | | --------- `moderator` is not local [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_moderator` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:300:25 [INFO] [stdout] | [INFO] [stdout] 300 | msg.channel_id.say(&context, &s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 300 | let _ = msg.channel_id.say(&context, &s); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:306:25 [INFO] [stdout] | [INFO] [stdout] 306 | msg.channel_id.say(&context, &s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 306 | let _ = msg.channel_id.say(&context, &s); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] 5 | | moderator -> Text, [INFO] [stdout] 6 | | reason -> Text, [INFO] [stdout] | | ------ `reason` is not local [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_reason` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:311:25 [INFO] [stdout] | [INFO] [stdout] 311 | msg.channel_id.say(&context, "You do not have permission to use this command!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 311 | let _ = msg.channel_id.say(&context, "You do not have permission to use this command!"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Error` should have a snake case name [INFO] [stdout] --> src/commands/moderation.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | if let Error = db.set(&args.rest(), &1) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/moderation.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | log_mod_action(action, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 231 | let _ = log_mod_action(action, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/owner.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | / msg.channel_id [INFO] [stdout] 20 | | .say(&ctx.http, "Restarting bot, and applying new changes"); [INFO] [stdout] | |___________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 19 | let _ = msg.channel_id [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] ... | [INFO] [stdout] 7 | | guild_id -> Text, [INFO] [stdout] | | -------- `guild_id` is not local [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_guild_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/owner.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | guild_cache.set("current_qotd", &0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 32 | let _ = guild_cache.set("current_qotd", &0); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/points.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / msg.channel_id.send_message(&ctx.http, |m| { [INFO] [stdout] 58 | | m.embed(|e| { [INFO] [stdout] 59 | | let mut title = msg.author.name.clone(); [INFO] [stdout] 60 | | title.push_str("'s profile"); [INFO] [stdout] ... | [INFO] [stdout] 68 | | m [INFO] [stdout] 69 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = msg.channel_id.send_message(&ctx.http, |m| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `topList` should have a snake case name [INFO] [stdout] --> src/commands/points.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut topList: Vec<&UserIdPoints> = vec![]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `top_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/points.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | points_db.set(&user.as_u64().to_string(), &new_points); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 188 | let _ = points_db.set(&user.as_u64().to_string(), &new_points); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] ... | [INFO] [stdout] 8 | | is_withdrawn -> Bool, [INFO] [stdout] | | ------------ `is_withdrawn` is not local [INFO] [stdout] 9 | | } [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_is_withdrawn` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Queryable)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Queryable` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_queryable_for_strike` [INFO] [stdout] 10 | pub struct Strike { [INFO] [stdout] | ------ `Strike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Queryable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Insertable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_newstrike` [INFO] [stdout] 20 | #[table_name="strikes"] [INFO] [stdout] 21 | pub struct NewStrike<'a> { [INFO] [stdout] | --------- `NewStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Insertable)] [INFO] [stdout] | -^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_newstrike` [INFO] [stdout] 20 | #[table_name="strikes"] [INFO] [stdout] 21 | pub struct NewStrike<'a> { [INFO] [stdout] | --------- `NewStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Insertable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `UndecoratedInsertRecord` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_newstrike` [INFO] [stdout] 20 | #[table_name="strikes"] [INFO] [stdout] 21 | pub struct NewStrike<'a> { [INFO] [stdout] | --------- `NewStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Insertable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_sqlitestrike` [INFO] [stdout] 29 | #[table_name="strikes"] [INFO] [stdout] 30 | pub struct SqliteStrike { [INFO] [stdout] | ------------ `SqliteStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Insertable)] [INFO] [stdout] | -^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_sqlitestrike` [INFO] [stdout] 29 | #[table_name="strikes"] [INFO] [stdout] 30 | pub struct SqliteStrike { [INFO] [stdout] | ------------ `SqliteStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Insertable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `UndecoratedInsertRecord` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_sqlitestrike` [INFO] [stdout] 29 | #[table_name="strikes"] [INFO] [stdout] 30 | pub struct SqliteStrike { [INFO] [stdout] | ------------ `SqliteStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Queryable)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Queryable` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_queryable_for_point` [INFO] [stdout] 39 | pub struct Point { [INFO] [stdout] | ----- `Point` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Queryable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/commands/qotd.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | db.set(¤t_num.to_string(), &args.rest()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 99 | let _ = db.set(¤t_num.to_string(), &args.rest()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util/data.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | db.set("qotd_role", &0u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 15 | let _ = db.set("qotd_role", &0u64); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util/data.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | db.set("qotd_channel", &0u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 16 | let _ = db.set("qotd_channel", &0u64); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util/data.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | db.set("qotd_suggest_channel", &0u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 17 | let _ = db.set("qotd_suggest_channel", &0u64); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util/data.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | db.set("modlogs_channel", &0u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 19 | let _ = db.set("modlogs_channel", &0u64); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Error` should have a snake case name [INFO] [stdout] --> src/util/data.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Error => PickleDb::new_yaml(&path, PickleDbDumpPolicy::AutoDump), [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Error` should have a snake case name [INFO] [stdout] --> src/util/data.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | Error => PickleDb::new_yaml(&path, PickleDbDumpPolicy::AutoDump), [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `table` is not local [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] | | -- `id` is not local [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] | | ------- `user_id` is not local [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_user_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] 5 | | moderator -> Text, [INFO] [stdout] | | --------- `moderator` is not local [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_moderator` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] 5 | | moderator -> Text, [INFO] [stdout] 6 | | reason -> Text, [INFO] [stdout] | | ------ `reason` is not local [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_reason` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] ... | [INFO] [stdout] 7 | | guild_id -> Text, [INFO] [stdout] | | -------- `guild_id` is not local [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_guild_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | strikes (id) { [INFO] [stdout] 3 | | id -> Int4, [INFO] [stdout] 4 | | user_id -> Text, [INFO] [stdout] ... | [INFO] [stdout] 8 | | is_withdrawn -> Bool, [INFO] [stdout] | | ------------ `is_withdrawn` is not local [INFO] [stdout] 9 | | } [INFO] [stdout] 10 | | } [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_is_withdrawn` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Queryable)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Queryable` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_queryable_for_strike` [INFO] [stdout] 10 | pub struct Strike { [INFO] [stdout] | ------ `Strike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Queryable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Insertable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_newstrike` [INFO] [stdout] 20 | #[table_name="strikes"] [INFO] [stdout] 21 | pub struct NewStrike<'a> { [INFO] [stdout] | --------- `NewStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Insertable)] [INFO] [stdout] | -^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_newstrike` [INFO] [stdout] 20 | #[table_name="strikes"] [INFO] [stdout] 21 | pub struct NewStrike<'a> { [INFO] [stdout] | --------- `NewStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Insertable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `UndecoratedInsertRecord` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_newstrike` [INFO] [stdout] 20 | #[table_name="strikes"] [INFO] [stdout] 21 | pub struct NewStrike<'a> { [INFO] [stdout] | --------- `NewStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Insertable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_sqlitestrike` [INFO] [stdout] 29 | #[table_name="strikes"] [INFO] [stdout] 30 | pub struct SqliteStrike { [INFO] [stdout] | ------------ `SqliteStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Insertable)] [INFO] [stdout] | -^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Insertable` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_sqlitestrike` [INFO] [stdout] 29 | #[table_name="strikes"] [INFO] [stdout] 30 | pub struct SqliteStrike { [INFO] [stdout] | ------------ `SqliteStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Insertable)] [INFO] [stdout] | ^--------- [INFO] [stdout] | | [INFO] [stdout] | `UndecoratedInsertRecord` is not local [INFO] [stdout] | `table` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_insertable_for_sqlitestrike` [INFO] [stdout] 29 | #[table_name="strikes"] [INFO] [stdout] 30 | pub struct SqliteStrike { [INFO] [stdout] | ------------ `SqliteStrike` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Insertable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Insertable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/models.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Queryable)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Queryable` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_queryable_for_point` [INFO] [stdout] 39 | pub struct Point { [INFO] [stdout] | ----- `Point` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Queryable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0, typemap v0.3.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "828ca5448540accf17814e45d5ea2495dec54fa820282959d69f82610ec9c68d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "828ca5448540accf17814e45d5ea2495dec54fa820282959d69f82610ec9c68d", kill_on_drop: false }` [INFO] [stdout] 828ca5448540accf17814e45d5ea2495dec54fa820282959d69f82610ec9c68d