[INFO] cloning repository https://github.com/mmai/webtarot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mmai/webtarot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fwebtarot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fwebtarot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 14ac1f949efdaaefb7a911771bbee34bfd4ec0b7 [INFO] checking mmai/webtarot against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fwebtarot" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mmai/webtarot on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mmai/webtarot [INFO] finished tweaking git repo https://github.com/mmai/webtarot [INFO] tweaked toml for git repo https://github.com/mmai/webtarot written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mmai/webtarot 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/mmai/webgame` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strum_macros v0.19.4 [INFO] [stderr] Downloaded tr v0.1.7 [INFO] [stderr] Downloaded strum v0.19.5 [INFO] [stderr] Downloaded i18n-config v0.4.4 [INFO] [stderr] Downloaded rust-embed-impl v6.8.1 [INFO] [stderr] Downloaded rust-embed-utils v7.8.1 [INFO] [stderr] Downloaded i18n-embed-impl v0.8.1 [INFO] [stderr] Downloaded serde v1.0.182 [INFO] [stderr] Downloaded listenfd v0.3.5 [INFO] [stderr] Downloaded i18n-embed v0.13.9 [INFO] [stderr] Downloaded sized-chunks v0.5.3 [INFO] [stderr] Downloaded gettext v0.4.0 [INFO] [stderr] Downloaded sled-extensions v0.2.0 [INFO] [stderr] Downloaded im-rc v14.3.0 [INFO] [stderr] Downloaded serde_derive v1.0.182 [INFO] [stderr] Downloaded rust-embed v6.8.1 [INFO] [stderr] Downloaded sled v0.29.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0684ad917354362a438aab194c4eece7d515f2bea83f422fc73f15be05908153 [INFO] running `Command { std: "docker" "start" "-a" "0684ad917354362a438aab194c4eece7d515f2bea83f422fc73f15be05908153", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0684ad917354362a438aab194c4eece7d515f2bea83f422fc73f15be05908153", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0684ad917354362a438aab194c4eece7d515f2bea83f422fc73f15be05908153", kill_on_drop: false }` [INFO] [stdout] 0684ad917354362a438aab194c4eece7d515f2bea83f422fc73f15be05908153 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b27ea4254064804e53496cb78c78b48421e03a313d82104f38f4731718b41cb9 [INFO] running `Command { std: "docker" "start" "-a" "b27ea4254064804e53496cb78c78b48421e03a313d82104f38f4731718b41cb9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling serde v1.0.182 [INFO] [stderr] Compiling serde_derive v1.0.182 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Checking pin-project-lite v0.2.11 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking cpufeatures v0.2.9 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.87 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling bumpalo v3.13.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling wasm-bindgen v0.2.87 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.104 [INFO] [stderr] Compiling thiserror v1.0.44 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Compiling cc v1.0.81 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking url v2.4.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.87 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.87 [INFO] [stderr] Compiling openssl-sys v0.9.90 [INFO] [stderr] Checking strum v0.19.5 [INFO] [stderr] Checking webgame_protocol v0.6.2 (https://github.com/mmai/webgame?tag=v0.7.7#07a20e53) [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling thiserror-impl v1.0.44 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.87 [INFO] [stderr] Compiling displaydoc v0.2.4 [INFO] [stderr] Checking regex-automata v0.3.6 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Checking js-sys v0.3.64 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Compiling strum_macros v0.19.4 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling openssl v0.10.55 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking tarotgame v0.6.7 (/opt/rustwide/workdir/tarotgame) [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/lib.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(feature = "use_bench", feature(test))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/lib.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/cards.rs:945:7 [INFO] [stdout] | [INFO] [stdout] 945 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/deal.rs:882:7 [INFO] [stdout] | [INFO] [stdout] 882 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Checking regex v1.9.3 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking webtarot_protocol v0.7.7 (/opt/rustwide/workdir/webtarot_protocol) [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking web-sys v0.3.64 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling serde_spanned v0.6.3 [INFO] [stderr] Compiling tinystr v0.7.1 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Checking sha1 v0.10.5 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling winnow v0.5.4 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Compiling sha2 v0.10.7 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling walkdir v2.3.3 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking unic-langid-impl v0.9.1 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Compiling toml_edit v0.19.14 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Checking tungstenite v0.18.0 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking h2 v0.3.20 [INFO] [stderr] Compiling unic-langid v0.9.1 [INFO] [stderr] Compiling rust-embed-utils v7.8.1 [INFO] [stderr] Checking crossbeam-channel v0.3.9 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Checking serde_bytes v0.11.12 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking encoding_rs v0.8.32 [INFO] [stderr] Compiling anyhow v1.0.72 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Checking gloo-events v0.1.2 [INFO] [stderr] Compiling toml v0.7.6 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Compiling async-trait v0.1.72 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Compiling i18n-config v0.4.4 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking type-map v0.4.0 [INFO] [stderr] Checking gloo-file v0.1.0 [INFO] [stderr] Compiling find-crate v0.6.3 [INFO] [stderr] Checking gloo-console-timer v0.1.0 [INFO] [stderr] Checking rustls-pemfile v1.0.3 [INFO] [stderr] Checking sled v0.29.2 [INFO] [stderr] Checking headers v0.3.8 [INFO] [stderr] Compiling rust-embed-impl v6.8.1 [INFO] [stderr] Checking tokio-tungstenite v0.18.0 [INFO] [stderr] Checking webtarot_bot v0.4.4 (/opt/rustwide/workdir/webtarot_bot) [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::net::{UnixStream,UnixListener}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_seeded_hands` [INFO] [stdout] --> webtarot_bot/src/player.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use tarotgame::{deal_seeded_hands, cards::{Deck, Card, Hand, Suit, Rank}, deal::can_play, bid::Target, points::strength, pos::PlayerPos, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayEvent` [INFO] [stdout] --> webtarot_bot/src/player.rs:12:186 [INFO] [stdout] | [INFO] [stdout] 12 | ...idCommand, CallKingCommand, MakeDogCommand, Turn, PlayerRole, PlayEvent, TarotVariant, VariantSettings}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking gettext v0.4.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> webtarot_bot/src/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nicknamer` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let nicknamer = Mutex::new(NickNamer::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nicknamer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> webtarot_bot/src/player.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | .find(|(idx, pstat)| pstat.played.has(king)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pstat` [INFO] [stdout] --> webtarot_bot/src/player.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | .map(|(idx, pstat)| idx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pstat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play_event` [INFO] [stdout] --> webtarot_bot/src/player.rs:344:32 [INFO] [stdout] | [INFO] [stdout] 344 | Message::PlayEvent(play_event) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_play_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystate` [INFO] [stdout] --> webtarot_bot/src/player.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let mystate = self.my_state().clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> webtarot_bot/src/player.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | let now = time::Instant::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:667:25 [INFO] [stdout] | [INFO] [stdout] 667 | let mut myhighest = my_highest.unwrap(); [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: unused variable: `vingtetun` [INFO] [stdout] --> webtarot_bot/src/player.rs:878:13 [INFO] [stdout] | [INFO] [stdout] 878 | let vingtetun = Card::new(Suit::Trump, Rank::Rank21); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vingtetun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mylowest` [INFO] [stdout] --> webtarot_bot/src/player.rs:894:25 [INFO] [stdout] | [INFO] [stdout] 894 | if let Some(mylowest) = hand.suit_lowest_over_card(Suit::Trump, winner_card){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mylowest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> webtarot_bot/src/player.rs:961:24 [INFO] [stdout] | [INFO] [stdout] 961 | fn send(&mut self, command: &Command) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [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] 190 | let _ = self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] 293 | | pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 292 | let _ = self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> webtarot_bot/src/player.rs:292:43 [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | ^ ------- [INFO] [stdout] | | | [INFO] [stdout] | ___________________________________________|___this function returns `()`, which is likely not what you wanted [INFO] [stdout] | |___________________________________________| [INFO] [stdout] | || [INFO] [stdout] 293 | || pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] | ||__________________________________________________________- called `Iterator::map` with callable that returns `()` [INFO] [stdout] 294 | | ); [INFO] [stdout] | | ^ after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().for_each(|pstat| [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 316 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | self.in_out.send(&Command::NewGame(variant)); [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] 323 | let _ = self.in_out.send(&Command::NewGame(variant)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | self.in_out.send(&Command::InviteBot); [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] 331 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | self.in_out.send(&Command::InviteBot); [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] 332 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | self.in_out.send(&Command::InviteBot); [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] 333 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | self.in_out.send(&Command::InviteBot); [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] 334 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | self.in_out.send(&Command::MarkReady); [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] 336 | let _ = self.in_out.send(&Command::MarkReady); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 357 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [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] 382 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:384:21 [INFO] [stdout] | [INFO] [stdout] 384 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [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] 384 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [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] 388 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [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] 395 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | ... self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [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] 410 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> webtarot_bot/src/player.rs:515:47 [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = IntoIterator::into_iter(suits) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | self.socket.close(None); [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] 52 | let _ = self.socket.close(None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking gloo-timers v0.2.6 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Compiling im-rc v14.3.0 [INFO] [stderr] Compiling boolinator v2.4.0 [INFO] [stderr] Compiling yew v0.17.4 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking gloo v0.2.1 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling i18n-embed-impl v0.8.1 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking tr v0.1.7 [INFO] [stderr] Compiling yew-macro v0.17.0 [INFO] [stderr] Checking rust-embed v6.8.1 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking intl-memoizer v0.5.1 [INFO] [stderr] Checking sized-chunks v0.5.3 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking fluent-langneg v0.13.0 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.37 [INFO] [stderr] Compiling weblog-proc-macro v0.3.0 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking rand_xoshiro v0.4.0 [INFO] [stderr] Checking listenfd v0.3.5 [INFO] [stderr] Checking sled-extensions v0.2.0 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Checking anymap v0.12.1 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking cfg-match v0.2.1 [INFO] [stderr] Checking weblog v0.3.0 [INFO] [stderr] Checking i18n-embed v0.13.9 [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `GamePlayCommand`, `GamePlayerState`, `GameStateSnapshot`, `Message`, `PlayCommand`, and `PlayerAction` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use webtarot_protocol::{Message, Command, GameStateSnapshot, PlayerAction, GamePlayCommand, PlayCommand, GamePlayerState}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthenticateCommand`, `JoinGameCommand`, and `PlayerInfo` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use webgame_protocol::{AuthenticateCommand, JoinGameCommand, PlayerInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::player` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::player; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::net::{UnixStream,UnixListener}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_seeded_hands` [INFO] [stdout] --> webtarot_bot/src/player.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use tarotgame::{deal_seeded_hands, cards::{Deck, Card, Hand, Suit, Rank}, deal::can_play, bid::Target, points::strength, pos::PlayerPos, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayEvent` [INFO] [stdout] --> webtarot_bot/src/player.rs:12:186 [INFO] [stdout] | [INFO] [stdout] 12 | ...idCommand, CallKingCommand, MakeDogCommand, Turn, PlayerRole, PlayEvent, TarotVariant, VariantSettings}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::connect` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tungstenite::connect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::protocol::WebSocket` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tungstenite::protocol::WebSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `GamePlayCommand`, `GamePlayerState`, `GameStateSnapshot`, `Message`, `PlayCommand`, and `PlayerAction` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | use webtarot_protocol::{Message, Command, GameStateSnapshot, PlayerAction, GamePlayCommand, PlayCommand, GamePlayerState}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthenticateCommand`, `JoinGameCommand`, and `PlayerInfo` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use webgame_protocol::{AuthenticateCommand, JoinGameCommand, PlayerInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::player` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::player; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `GamePlayCommand`, `GamePlayerState`, `GameStateSnapshot`, `Message`, `PlayCommand`, and `PlayerAction` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use webtarot_protocol::{Message, Command, GameStateSnapshot, PlayerAction, GamePlayCommand, PlayCommand, GamePlayerState}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthenticateCommand`, `JoinGameCommand`, and `PlayerInfo` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use webgame_protocol::{AuthenticateCommand, JoinGameCommand, PlayerInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::player` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::player; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::net::{UnixStream,UnixListener}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_seeded_hands` [INFO] [stdout] --> webtarot_bot/src/player.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use tarotgame::{deal_seeded_hands, cards::{Deck, Card, Hand, Suit, Rank}, deal::can_play, bid::Target, points::strength, pos::PlayerPos, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> webtarot_bot/src/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayEvent` [INFO] [stdout] --> webtarot_bot/src/player.rs:12:186 [INFO] [stdout] | [INFO] [stdout] 12 | ...idCommand, CallKingCommand, MakeDogCommand, Turn, PlayerRole, PlayEvent, TarotVariant, VariantSettings}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::connect` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tungstenite::connect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::protocol::WebSocket` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tungstenite::protocol::WebSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `GamePlayCommand`, `GamePlayerState`, `GameStateSnapshot`, `Message`, `PlayCommand`, and `PlayerAction` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | use webtarot_protocol::{Message, Command, GameStateSnapshot, PlayerAction, GamePlayCommand, PlayCommand, GamePlayerState}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthenticateCommand`, `JoinGameCommand`, and `PlayerInfo` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use webgame_protocol::{AuthenticateCommand, JoinGameCommand, PlayerInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::player` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::player; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> webtarot_bot/src/explorer.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | .find(|(i, n)| **n < 255) [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: `nicknamer` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let nicknamer = Mutex::new(NickNamer::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nicknamer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> webtarot_bot/src/player.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | .find(|(idx, pstat)| pstat.played.has(king)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pstat` [INFO] [stdout] --> webtarot_bot/src/player.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | .map(|(idx, pstat)| idx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pstat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play_event` [INFO] [stdout] --> webtarot_bot/src/player.rs:344:32 [INFO] [stdout] | [INFO] [stdout] 344 | Message::PlayEvent(play_event) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_play_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystate` [INFO] [stdout] --> webtarot_bot/src/player.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let mystate = self.my_state().clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> webtarot_bot/src/player.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | let now = time::Instant::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:667:25 [INFO] [stdout] | [INFO] [stdout] 667 | let mut myhighest = my_highest.unwrap(); [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: unused variable: `vingtetun` [INFO] [stdout] --> webtarot_bot/src/player.rs:878:13 [INFO] [stdout] | [INFO] [stdout] 878 | let vingtetun = Card::new(Suit::Trump, Rank::Rank21); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vingtetun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mylowest` [INFO] [stdout] --> webtarot_bot/src/player.rs:894:25 [INFO] [stdout] | [INFO] [stdout] 894 | if let Some(mylowest) = hand.suit_lowest_over_card(Suit::Trump, winner_card){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mylowest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bot` [INFO] [stdout] --> webtarot_bot/src/player.rs:949:13 [INFO] [stdout] | [INFO] [stdout] 949 | let mut bot = Player::new(in_out, "joincode".to_string(), format!("nickname"), delay); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:949:9 [INFO] [stdout] | [INFO] [stdout] 949 | let mut bot = Player::new(in_out, "joincode".to_string(), format!("nickname"), delay); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> webtarot_bot/src/player.rs:961:24 [INFO] [stdout] | [INFO] [stdout] 961 | fn send(&mut self, command: &Command) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [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] 190 | let _ = self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] 293 | | pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 292 | let _ = self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> webtarot_bot/src/player.rs:292:43 [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | ^ ------- [INFO] [stdout] | | | [INFO] [stdout] | ___________________________________________|___this function returns `()`, which is likely not what you wanted [INFO] [stdout] | |___________________________________________| [INFO] [stdout] | || [INFO] [stdout] 293 | || pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] | ||__________________________________________________________- called `Iterator::map` with callable that returns `()` [INFO] [stdout] 294 | | ); [INFO] [stdout] | | ^ after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().for_each(|pstat| [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 316 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | self.in_out.send(&Command::NewGame(variant)); [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] 323 | let _ = self.in_out.send(&Command::NewGame(variant)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | self.in_out.send(&Command::InviteBot); [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] 331 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | self.in_out.send(&Command::InviteBot); [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] 332 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | self.in_out.send(&Command::InviteBot); [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] 333 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | self.in_out.send(&Command::InviteBot); [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] 334 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | self.in_out.send(&Command::MarkReady); [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] 336 | let _ = self.in_out.send(&Command::MarkReady); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 357 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [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] 382 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:384:21 [INFO] [stdout] | [INFO] [stdout] 384 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [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] 384 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [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] 388 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [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] 395 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | ... self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [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] 410 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> webtarot_bot/src/player.rs:515:47 [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = IntoIterator::into_iter(suits) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | self.socket.close(None); [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] 52 | let _ = self.socket.close(None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::net::{UnixStream,UnixListener}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_seeded_hands` [INFO] [stdout] --> webtarot_bot/src/player.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use tarotgame::{deal_seeded_hands, cards::{Deck, Card, Hand, Suit, Rank}, deal::can_play, bid::Target, points::strength, pos::PlayerPos, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayEvent` [INFO] [stdout] --> webtarot_bot/src/player.rs:12:186 [INFO] [stdout] | [INFO] [stdout] 12 | ...idCommand, CallKingCommand, MakeDogCommand, Turn, PlayerRole, PlayEvent, TarotVariant, VariantSettings}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> webtarot_bot/src/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> webtarot_bot/src/explorer.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | .find(|(i, n)| **n < 255) [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: `nicknamer` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let nicknamer = Mutex::new(NickNamer::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nicknamer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> webtarot_bot/src/player.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | .find(|(idx, pstat)| pstat.played.has(king)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pstat` [INFO] [stdout] --> webtarot_bot/src/player.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | .map(|(idx, pstat)| idx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pstat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play_event` [INFO] [stdout] --> webtarot_bot/src/player.rs:344:32 [INFO] [stdout] | [INFO] [stdout] 344 | Message::PlayEvent(play_event) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_play_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystate` [INFO] [stdout] --> webtarot_bot/src/player.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let mystate = self.my_state().clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> webtarot_bot/src/player.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | let now = time::Instant::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> webtarot_bot/src/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nicknamer` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let nicknamer = Mutex::new(NickNamer::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nicknamer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:667:25 [INFO] [stdout] | [INFO] [stdout] 667 | let mut myhighest = my_highest.unwrap(); [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: unused variable: `vingtetun` [INFO] [stdout] --> webtarot_bot/src/player.rs:878:13 [INFO] [stdout] | [INFO] [stdout] 878 | let vingtetun = Card::new(Suit::Trump, Rank::Rank21); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vingtetun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mylowest` [INFO] [stdout] --> webtarot_bot/src/player.rs:894:25 [INFO] [stdout] | [INFO] [stdout] 894 | if let Some(mylowest) = hand.suit_lowest_over_card(Suit::Trump, winner_card){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mylowest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> webtarot_bot/src/player.rs:961:24 [INFO] [stdout] | [INFO] [stdout] 961 | fn send(&mut self, command: &Command) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> webtarot_bot/src/player.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | .find(|(idx, pstat)| pstat.played.has(king)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pstat` [INFO] [stdout] --> webtarot_bot/src/player.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | .map(|(idx, pstat)| idx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pstat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play_event` [INFO] [stdout] --> webtarot_bot/src/player.rs:344:32 [INFO] [stdout] | [INFO] [stdout] 344 | Message::PlayEvent(play_event) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_play_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystate` [INFO] [stdout] --> webtarot_bot/src/player.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let mystate = self.my_state().clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [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] 190 | let _ = self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> webtarot_bot/src/player.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | let now = time::Instant::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] 293 | | pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 292 | let _ = self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> webtarot_bot/src/player.rs:292:43 [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | ^ ------- [INFO] [stdout] | | | [INFO] [stdout] | ___________________________________________|___this function returns `()`, which is likely not what you wanted [INFO] [stdout] | |___________________________________________| [INFO] [stdout] | || [INFO] [stdout] 293 | || pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] | ||__________________________________________________________- called `Iterator::map` with callable that returns `()` [INFO] [stdout] 294 | | ); [INFO] [stdout] | | ^ after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().for_each(|pstat| [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 316 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | self.in_out.send(&Command::NewGame(variant)); [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] 323 | let _ = self.in_out.send(&Command::NewGame(variant)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | self.in_out.send(&Command::InviteBot); [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] 331 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | self.in_out.send(&Command::InviteBot); [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] 332 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | self.in_out.send(&Command::InviteBot); [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] 333 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | self.in_out.send(&Command::InviteBot); [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] 334 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | self.in_out.send(&Command::MarkReady); [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] 336 | let _ = self.in_out.send(&Command::MarkReady); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 357 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [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] 382 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:384:21 [INFO] [stdout] | [INFO] [stdout] 384 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [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] 384 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [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] 388 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [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] 395 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | ... self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [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] 410 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> webtarot_bot/src/player.rs:515:47 [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = IntoIterator::into_iter(suits) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | self.socket.close(None); [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] 52 | let _ = self.socket.close(None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:667:25 [INFO] [stdout] | [INFO] [stdout] 667 | let mut myhighest = my_highest.unwrap(); [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: unused variable: `vingtetun` [INFO] [stdout] --> webtarot_bot/src/player.rs:878:13 [INFO] [stdout] | [INFO] [stdout] 878 | let vingtetun = Card::new(Suit::Trump, Rank::Rank21); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vingtetun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mylowest` [INFO] [stdout] --> webtarot_bot/src/player.rs:894:25 [INFO] [stdout] | [INFO] [stdout] 894 | if let Some(mylowest) = hand.suit_lowest_over_card(Suit::Trump, winner_card){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mylowest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bot` [INFO] [stdout] --> webtarot_bot/src/player.rs:949:13 [INFO] [stdout] | [INFO] [stdout] 949 | let mut bot = Player::new(in_out, "joincode".to_string(), format!("nickname"), delay); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:949:9 [INFO] [stdout] | [INFO] [stdout] 949 | let mut bot = Player::new(in_out, "joincode".to_string(), format!("nickname"), delay); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> webtarot_bot/src/player.rs:961:24 [INFO] [stdout] | [INFO] [stdout] 961 | fn send(&mut self, command: &Command) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [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] 190 | let _ = self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] 293 | | pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 292 | let _ = self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> webtarot_bot/src/player.rs:292:43 [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | ^ ------- [INFO] [stdout] | | | [INFO] [stdout] | ___________________________________________|___this function returns `()`, which is likely not what you wanted [INFO] [stdout] | |___________________________________________| [INFO] [stdout] | || [INFO] [stdout] 293 | || pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] | ||__________________________________________________________- called `Iterator::map` with callable that returns `()` [INFO] [stdout] 294 | | ); [INFO] [stdout] | | ^ after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().for_each(|pstat| [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 316 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | self.in_out.send(&Command::NewGame(variant)); [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] 323 | let _ = self.in_out.send(&Command::NewGame(variant)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | self.in_out.send(&Command::InviteBot); [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] 331 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | self.in_out.send(&Command::InviteBot); [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] 332 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | self.in_out.send(&Command::InviteBot); [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] 333 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | self.in_out.send(&Command::InviteBot); [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] 334 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | self.in_out.send(&Command::MarkReady); [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] 336 | let _ = self.in_out.send(&Command::MarkReady); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 357 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [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] 382 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:384:21 [INFO] [stdout] | [INFO] [stdout] 384 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [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] 384 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [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] 388 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [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] 395 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | ... self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [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] 410 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> webtarot_bot/src/player.rs:515:47 [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = IntoIterator::into_iter(suits) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | self.socket.close(None); [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] 52 | let _ = self.socket.close(None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_hands` [INFO] [stdout] --> webtarot_protocol/src/game.rs:558:21 [INFO] [stdout] | [INFO] [stdout] 558 | use tarotgame::{deal_hands, deal_seeded_hands, bid, cards}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/lib.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(feature = "use_bench", feature(test))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/lib.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/cards.rs:945:7 [INFO] [stdout] | [INFO] [stdout] 945 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/deal.rs:882:7 [INFO] [stdout] | [INFO] [stdout] 882 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> webtarot_protocol/src/game.rs:564:22 [INFO] [stdout] | [INFO] [stdout] 564 | fn eq(&self, other: &Self) -> bool { true } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> webtarot_protocol/src/game.rs:568:30 [INFO] [stdout] | [INFO] [stdout] 568 | fn notify(&mut self, event: &(PlayEvent, TarotGameState)) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hands_deal1` [INFO] [stdout] --> webtarot_protocol/src/game.rs:596:13 [INFO] [stdout] | [INFO] [stdout] 596 | let hands_deal1 = game.deal.hands(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hands_deal1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_protocol/src/game.rs:699:9 [INFO] [stdout] | [INFO] [stdout] 699 | game.make_dog(id0, dog, false); [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] 699 | let _ = game.make_dog(id0, dog, false); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_protocol/src/game.rs:1027:9 [INFO] [stdout] | [INFO] [stdout] 1027 | game.make_dog(id0, dog, false);// keep initial dog [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] 1027 | let _ = game.make_dog(id0, dog, false);// keep initial dog [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_next` is never used [INFO] [stdout] --> tarotgame/src/pos.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | fn test_next() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking webtarot_client v0.7.8 (/opt/rustwide/workdir/webtarot_client) [INFO] [stdout] warning: unused import: `tr::tr` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tr::tr; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DealSnapshot` and `Turn` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::protocol::{GameStateSnapshot, DealSnapshot, PlayerRole, GamePlayerState, Turn}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `deal_size` and `trick` [INFO] [stdout] --> webtarot_client/src/views/game.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 34 | use tarotgame::{bid, deal, cards, deal_size, trick, Announce}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::format_join_code` [INFO] [stdout] --> webtarot_client/src/views/game.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::utils::format_join_code; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> webtarot_client/src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LanguageLoader` [INFO] [stdout] --> webtarot_client/src/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | LanguageLoader, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tr::tr` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tr::tr; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DealSnapshot` and `Turn` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::protocol::{GameStateSnapshot, DealSnapshot, PlayerRole, GamePlayerState, Turn}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `deal_size` and `trick` [INFO] [stdout] --> webtarot_client/src/views/game.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 34 | use tarotgame::{bid, deal, cards, deal_size, trick, Announce}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::format_join_code` [INFO] [stdout] --> webtarot_client/src/views/game.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::utils::format_join_code; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> webtarot_client/src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LanguageLoader` [INFO] [stdout] --> webtarot_client/src/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | LanguageLoader, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking hyper v0.13.10 [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> webtarot_client/src/views/game.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_scores` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let empty_scores = vec![0.0;nb_players]; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> webtarot_client/src/views/game.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_scores` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let empty_scores = vec![0.0;nb_players]; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turn_info` [INFO] [stdout] --> webtarot_client/src/views/game.rs:540:13 [INFO] [stdout] | [INFO] [stdout] 540 | let turn_info = match self.game_state.turn { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_turn_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turn_info` [INFO] [stdout] --> webtarot_client/src/views/game.rs:540:13 [INFO] [stdout] | [INFO] [stdout] 540 | let turn_info = match self.game_state.turn { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_turn_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> webtarot_client/src/views/game.rs:95:35 [INFO] [stdout] | [INFO] [stdout] 95 | let msg = chat_line.text().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> webtarot_client/src/views/game.rs:95:35 [INFO] [stdout] | [INFO] [stdout] 95 | let msg = chat_line.text().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking warp v0.3.5 [INFO] [stderr] Checking webgame_server v0.7.7 (https://github.com/mmai/webgame?tag=v0.7.7#07a20e53) [INFO] [stderr] Checking webtarot_server v0.7.7 (/opt/rustwide/workdir/webtarot_server) [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> webtarot_server/src/dispatcher.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | drop(game_state_handle); [INFO] [stdout] | ^^^^^-----------------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&Arc>` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 155 - drop(game_state_handle); [INFO] [stdout] 155 + let _ = game_state_handle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> webtarot_server/src/dispatcher.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | drop(game_state_handle); [INFO] [stdout] | ^^^^^-----------------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&Arc>` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 155 - drop(game_state_handle); [INFO] [stdout] 155 + let _ = game_state_handle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.60s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.87 [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" "b27ea4254064804e53496cb78c78b48421e03a313d82104f38f4731718b41cb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b27ea4254064804e53496cb78c78b48421e03a313d82104f38f4731718b41cb9", kill_on_drop: false }` [INFO] [stdout] b27ea4254064804e53496cb78c78b48421e03a313d82104f38f4731718b41cb9 [INFO] checking mmai/webtarot against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fwebtarot" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mmai/webtarot on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mmai/webtarot [INFO] finished tweaking git repo https://github.com/mmai/webtarot [INFO] tweaked toml for git repo https://github.com/mmai/webtarot written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mmai/webtarot 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] faeb1f9c20941b35fb8868c6f7b128fde4cbd8e35855511c5949332afca8928d [INFO] running `Command { std: "docker" "start" "-a" "faeb1f9c20941b35fb8868c6f7b128fde4cbd8e35855511c5949332afca8928d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "faeb1f9c20941b35fb8868c6f7b128fde4cbd8e35855511c5949332afca8928d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "faeb1f9c20941b35fb8868c6f7b128fde4cbd8e35855511c5949332afca8928d", kill_on_drop: false }` [INFO] [stdout] faeb1f9c20941b35fb8868c6f7b128fde4cbd8e35855511c5949332afca8928d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8155ba878faeb1010c202771b778e7f23d8bdef827834fccdbaa93049b52d04 [INFO] running `Command { std: "docker" "start" "-a" "d8155ba878faeb1010c202771b778e7f23d8bdef827834fccdbaa93049b52d04", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling serde v1.0.182 [INFO] [stderr] Compiling serde_derive v1.0.182 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking pin-project-lite v0.2.11 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking cpufeatures v0.2.9 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.87 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling bumpalo v3.13.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.87 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling thiserror v1.0.44 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.104 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Compiling cc v1.0.81 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking url v2.4.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.87 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.87 [INFO] [stderr] Compiling openssl-sys v0.9.90 [INFO] [stderr] Checking strum v0.19.5 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Checking webgame_protocol v0.6.2 (https://github.com/mmai/webgame?tag=v0.7.7#07a20e53) [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling thiserror-impl v1.0.44 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.87 [INFO] [stderr] Compiling displaydoc v0.2.4 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Checking js-sys v0.3.64 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking regex-automata v0.3.6 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling strum_macros v0.19.4 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling openssl v0.10.55 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking tarotgame v0.6.7 (/opt/rustwide/workdir/tarotgame) [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/lib.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(feature = "use_bench", feature(test))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/lib.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/cards.rs:945:7 [INFO] [stdout] | [INFO] [stdout] 945 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/deal.rs:882:7 [INFO] [stdout] | [INFO] [stdout] 882 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking web-sys v0.3.64 [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking webtarot_protocol v0.7.7 (/opt/rustwide/workdir/webtarot_protocol) [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking regex v1.9.3 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling serde_spanned v0.6.3 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling tinystr v0.7.1 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Checking sha1 v0.10.5 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling winnow v0.5.4 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Compiling walkdir v2.3.3 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling sha2 v0.10.7 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Checking unic-langid-impl v0.9.1 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Compiling toml_edit v0.19.14 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking tungstenite v0.18.0 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling unic-langid v0.9.1 [INFO] [stderr] Checking h2 v0.3.20 [INFO] [stderr] Compiling rust-embed-utils v7.8.1 [INFO] [stderr] Checking crossbeam-channel v0.3.9 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Checking serde_bytes v0.11.12 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking encoding_rs v0.8.32 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling async-trait v0.1.72 [INFO] [stderr] Compiling anyhow v1.0.72 [INFO] [stderr] Checking gloo-events v0.1.2 [INFO] [stderr] Checking gloo-file v0.1.0 [INFO] [stderr] Compiling toml v0.7.6 [INFO] [stderr] Checking gloo-console-timer v0.1.0 [INFO] [stderr] Compiling find-crate v0.6.3 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking type-map v0.4.0 [INFO] [stderr] Checking rustls-pemfile v1.0.3 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking sled v0.29.2 [INFO] [stderr] Checking headers v0.3.8 [INFO] [stderr] Compiling i18n-config v0.4.4 [INFO] [stderr] Checking webtarot_bot v0.4.4 (/opt/rustwide/workdir/webtarot_bot) [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::net::{UnixStream,UnixListener}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_seeded_hands` [INFO] [stdout] --> webtarot_bot/src/player.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use tarotgame::{deal_seeded_hands, cards::{Deck, Card, Hand, Suit, Rank}, deal::can_play, bid::Target, points::strength, pos::PlayerPos, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayEvent` [INFO] [stdout] --> webtarot_bot/src/player.rs:12:186 [INFO] [stdout] | [INFO] [stdout] 12 | ...idCommand, CallKingCommand, MakeDogCommand, Turn, PlayerRole, PlayEvent, TarotVariant, VariantSettings}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> webtarot_bot/src/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nicknamer` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let nicknamer = Mutex::new(NickNamer::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nicknamer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-embed-impl v6.8.1 [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> webtarot_bot/src/player.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | .find(|(idx, pstat)| pstat.played.has(king)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pstat` [INFO] [stdout] --> webtarot_bot/src/player.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | .map(|(idx, pstat)| idx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pstat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play_event` [INFO] [stdout] --> webtarot_bot/src/player.rs:344:32 [INFO] [stdout] | [INFO] [stdout] 344 | Message::PlayEvent(play_event) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_play_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystate` [INFO] [stdout] --> webtarot_bot/src/player.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let mystate = self.my_state().clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> webtarot_bot/src/player.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | let now = time::Instant::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:667:25 [INFO] [stdout] | [INFO] [stdout] 667 | let mut myhighest = my_highest.unwrap(); [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: unused variable: `vingtetun` [INFO] [stdout] --> webtarot_bot/src/player.rs:878:13 [INFO] [stdout] | [INFO] [stdout] 878 | let vingtetun = Card::new(Suit::Trump, Rank::Rank21); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vingtetun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mylowest` [INFO] [stdout] --> webtarot_bot/src/player.rs:894:25 [INFO] [stdout] | [INFO] [stdout] 894 | if let Some(mylowest) = hand.suit_lowest_over_card(Suit::Trump, winner_card){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mylowest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> webtarot_bot/src/player.rs:961:24 [INFO] [stdout] | [INFO] [stdout] 961 | fn send(&mut self, command: &Command) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [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] 190 | let _ = self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] 293 | | pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 292 | let _ = self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> webtarot_bot/src/player.rs:292:43 [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | ^ ------- [INFO] [stdout] | | | [INFO] [stdout] | ___________________________________________|___this function returns `()`, which is likely not what you wanted [INFO] [stdout] | |___________________________________________| [INFO] [stdout] | || [INFO] [stdout] 293 | || pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] | ||__________________________________________________________- called `Iterator::map` with callable that returns `()` [INFO] [stdout] 294 | | ); [INFO] [stdout] | | ^ after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().for_each(|pstat| [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 316 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | self.in_out.send(&Command::NewGame(variant)); [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] 323 | let _ = self.in_out.send(&Command::NewGame(variant)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | self.in_out.send(&Command::InviteBot); [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] 331 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | self.in_out.send(&Command::InviteBot); [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] 332 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | self.in_out.send(&Command::InviteBot); [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] 333 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | self.in_out.send(&Command::InviteBot); [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] 334 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | self.in_out.send(&Command::MarkReady); [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] 336 | let _ = self.in_out.send(&Command::MarkReady); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 357 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [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] 382 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:384:21 [INFO] [stdout] | [INFO] [stdout] 384 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [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] 384 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [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] 388 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [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] 395 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | ... self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [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] 410 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> webtarot_bot/src/player.rs:515:47 [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = IntoIterator::into_iter(suits) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | self.socket.close(None); [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] 52 | let _ = self.socket.close(None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking gettext v0.4.0 [INFO] [stderr] Checking tokio-tungstenite v0.18.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking gloo-timers v0.2.6 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Compiling im-rc v14.3.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling boolinator v2.4.0 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Compiling yew v0.17.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking gloo v0.2.1 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Compiling i18n-embed-impl v0.8.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking rust-embed v6.8.1 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking tr v0.1.7 [INFO] [stderr] Compiling yew-macro v0.17.0 [INFO] [stderr] Checking intl-memoizer v0.5.1 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking sized-chunks v0.5.3 [INFO] [stderr] Checking fluent-langneg v0.13.0 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.37 [INFO] [stderr] Compiling weblog-proc-macro v0.3.0 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking rand_xoshiro v0.4.0 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking listenfd v0.3.5 [INFO] [stderr] Checking anymap v0.12.1 [INFO] [stderr] Checking cfg-match v0.2.1 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Checking weblog v0.3.0 [INFO] [stderr] Checking i18n-embed v0.13.9 [INFO] [stderr] Checking sled-extensions v0.2.0 [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `GamePlayCommand`, `GamePlayerState`, `GameStateSnapshot`, `Message`, `PlayCommand`, and `PlayerAction` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use webtarot_protocol::{Message, Command, GameStateSnapshot, PlayerAction, GamePlayCommand, PlayCommand, GamePlayerState}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthenticateCommand`, `JoinGameCommand`, and `PlayerInfo` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use webgame_protocol::{AuthenticateCommand, JoinGameCommand, PlayerInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::player` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::player; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::net::{UnixStream,UnixListener}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_seeded_hands` [INFO] [stdout] --> webtarot_bot/src/player.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use tarotgame::{deal_seeded_hands, cards::{Deck, Card, Hand, Suit, Rank}, deal::can_play, bid::Target, points::strength, pos::PlayerPos, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayEvent` [INFO] [stdout] --> webtarot_bot/src/player.rs:12:186 [INFO] [stdout] | [INFO] [stdout] 12 | ...idCommand, CallKingCommand, MakeDogCommand, Turn, PlayerRole, PlayEvent, TarotVariant, VariantSettings}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::connect` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tungstenite::connect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::protocol::WebSocket` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tungstenite::protocol::WebSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `GamePlayCommand`, `GamePlayerState`, `GameStateSnapshot`, `Message`, `PlayCommand`, and `PlayerAction` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | use webtarot_protocol::{Message, Command, GameStateSnapshot, PlayerAction, GamePlayCommand, PlayCommand, GamePlayerState}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthenticateCommand`, `JoinGameCommand`, and `PlayerInfo` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use webgame_protocol::{AuthenticateCommand, JoinGameCommand, PlayerInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::player` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::player; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> webtarot_bot/src/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> webtarot_bot/src/explorer.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | .find(|(i, n)| **n < 255) [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: `nicknamer` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let nicknamer = Mutex::new(NickNamer::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nicknamer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> webtarot_bot/src/player.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | .find(|(idx, pstat)| pstat.played.has(king)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pstat` [INFO] [stdout] --> webtarot_bot/src/player.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | .map(|(idx, pstat)| idx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pstat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `GamePlayCommand`, `GamePlayerState`, `GameStateSnapshot`, `Message`, `PlayCommand`, and `PlayerAction` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use webtarot_protocol::{Message, Command, GameStateSnapshot, PlayerAction, GamePlayCommand, PlayCommand, GamePlayerState}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play_event` [INFO] [stdout] --> webtarot_bot/src/player.rs:344:32 [INFO] [stdout] | [INFO] [stdout] 344 | Message::PlayEvent(play_event) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_play_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthenticateCommand`, `JoinGameCommand`, and `PlayerInfo` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use webgame_protocol::{AuthenticateCommand, JoinGameCommand, PlayerInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::player` [INFO] [stdout] --> webtarot_bot/src/simulator.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::player; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::net::{UnixStream,UnixListener}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_seeded_hands` [INFO] [stdout] --> webtarot_bot/src/player.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use tarotgame::{deal_seeded_hands, cards::{Deck, Card, Hand, Suit, Rank}, deal::can_play, bid::Target, points::strength, pos::PlayerPos, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayEvent` [INFO] [stdout] --> webtarot_bot/src/player.rs:12:186 [INFO] [stdout] | [INFO] [stdout] 12 | ...idCommand, CallKingCommand, MakeDogCommand, Turn, PlayerRole, PlayEvent, TarotVariant, VariantSettings}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::connect` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tungstenite::connect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::protocol::WebSocket` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tungstenite::protocol::WebSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystate` [INFO] [stdout] --> webtarot_bot/src/player.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let mystate = self.my_state().clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `GamePlayCommand`, `GamePlayerState`, `GameStateSnapshot`, `Message`, `PlayCommand`, and `PlayerAction` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | use webtarot_protocol::{Message, Command, GameStateSnapshot, PlayerAction, GamePlayCommand, PlayCommand, GamePlayerState}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthenticateCommand`, `JoinGameCommand`, and `PlayerInfo` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use webgame_protocol::{AuthenticateCommand, JoinGameCommand, PlayerInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::player` [INFO] [stdout] --> webtarot_bot/src/player_factory.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::player; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> webtarot_bot/src/player.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | let now = time::Instant::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:667:25 [INFO] [stdout] | [INFO] [stdout] 667 | let mut myhighest = my_highest.unwrap(); [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: unused variable: `vingtetun` [INFO] [stdout] --> webtarot_bot/src/player.rs:878:13 [INFO] [stdout] | [INFO] [stdout] 878 | let vingtetun = Card::new(Suit::Trump, Rank::Rank21); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vingtetun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mylowest` [INFO] [stdout] --> webtarot_bot/src/player.rs:894:25 [INFO] [stdout] | [INFO] [stdout] 894 | if let Some(mylowest) = hand.suit_lowest_over_card(Suit::Trump, winner_card){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mylowest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bot` [INFO] [stdout] --> webtarot_bot/src/player.rs:949:13 [INFO] [stdout] | [INFO] [stdout] 949 | let mut bot = Player::new(in_out, "joincode".to_string(), format!("nickname"), delay); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:949:9 [INFO] [stdout] | [INFO] [stdout] 949 | let mut bot = Player::new(in_out, "joincode".to_string(), format!("nickname"), delay); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> webtarot_bot/src/player.rs:961:24 [INFO] [stdout] | [INFO] [stdout] 961 | fn send(&mut self, command: &Command) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [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] 190 | let _ = self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] 293 | | pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 292 | let _ = self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> webtarot_bot/src/player.rs:292:43 [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | ^ ------- [INFO] [stdout] | | | [INFO] [stdout] | ___________________________________________|___this function returns `()`, which is likely not what you wanted [INFO] [stdout] | |___________________________________________| [INFO] [stdout] | || [INFO] [stdout] 293 | || pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] | ||__________________________________________________________- called `Iterator::map` with callable that returns `()` [INFO] [stdout] 294 | | ); [INFO] [stdout] | | ^ after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().for_each(|pstat| [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 316 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | self.in_out.send(&Command::NewGame(variant)); [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] 323 | let _ = self.in_out.send(&Command::NewGame(variant)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | self.in_out.send(&Command::InviteBot); [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] 331 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | self.in_out.send(&Command::InviteBot); [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] 332 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | self.in_out.send(&Command::InviteBot); [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] 333 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | self.in_out.send(&Command::InviteBot); [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] 334 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | self.in_out.send(&Command::MarkReady); [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] 336 | let _ = self.in_out.send(&Command::MarkReady); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 357 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [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] 382 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:384:21 [INFO] [stdout] | [INFO] [stdout] 384 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [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] 384 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [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] 388 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [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] 395 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | ... self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [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] 410 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> webtarot_bot/src/player.rs:515:47 [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = IntoIterator::into_iter(suits) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | self.socket.close(None); [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] 52 | let _ = self.socket.close(None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> webtarot_bot/src/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> webtarot_bot/src/explorer.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | .find(|(i, n)| **n < 255) [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: `nicknamer` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let nicknamer = Mutex::new(NickNamer::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nicknamer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> webtarot_bot/src/player.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | .find(|(idx, pstat)| pstat.played.has(king)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pstat` [INFO] [stdout] --> webtarot_bot/src/player.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | .map(|(idx, pstat)| idx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pstat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play_event` [INFO] [stdout] --> webtarot_bot/src/player.rs:344:32 [INFO] [stdout] | [INFO] [stdout] 344 | Message::PlayEvent(play_event) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_play_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tungstenite::stream::Stream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystate` [INFO] [stdout] --> webtarot_bot/src/player.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let mystate = self.my_state().clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixStream` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::net::{UnixStream,UnixListener}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> webtarot_bot/src/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_seeded_hands` [INFO] [stdout] --> webtarot_bot/src/player.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use tarotgame::{deal_seeded_hands, cards::{Deck, Card, Hand, Suit, Rank}, deal::can_play, bid::Target, points::strength, pos::PlayerPos, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayEvent` [INFO] [stdout] --> webtarot_bot/src/player.rs:12:186 [INFO] [stdout] | [INFO] [stdout] 12 | ...idCommand, CallKingCommand, MakeDogCommand, Turn, PlayerRole, PlayEvent, TarotVariant, VariantSettings}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> webtarot_bot/src/player.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | let now = time::Instant::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:667:25 [INFO] [stdout] | [INFO] [stdout] 667 | let mut myhighest = my_highest.unwrap(); [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: unused variable: `vingtetun` [INFO] [stdout] --> webtarot_bot/src/player.rs:878:13 [INFO] [stdout] | [INFO] [stdout] 878 | let vingtetun = Card::new(Suit::Trump, Rank::Rank21); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vingtetun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mylowest` [INFO] [stdout] --> webtarot_bot/src/player.rs:894:25 [INFO] [stdout] | [INFO] [stdout] 894 | if let Some(mylowest) = hand.suit_lowest_over_card(Suit::Trump, winner_card){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mylowest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> webtarot_bot/src/player.rs:961:24 [INFO] [stdout] | [INFO] [stdout] 961 | fn send(&mut self, command: &Command) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [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] 190 | let _ = self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] 293 | | pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 292 | let _ = self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> webtarot_bot/src/player.rs:292:43 [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | ^ ------- [INFO] [stdout] | | | [INFO] [stdout] | ___________________________________________|___this function returns `()`, which is likely not what you wanted [INFO] [stdout] | |___________________________________________| [INFO] [stdout] | || [INFO] [stdout] 293 | || pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] | ||__________________________________________________________- called `Iterator::map` with callable that returns `()` [INFO] [stdout] 294 | | ); [INFO] [stdout] | | ^ after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().for_each(|pstat| [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 316 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | self.in_out.send(&Command::NewGame(variant)); [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] 323 | let _ = self.in_out.send(&Command::NewGame(variant)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | self.in_out.send(&Command::InviteBot); [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] 331 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | self.in_out.send(&Command::InviteBot); [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] 332 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | self.in_out.send(&Command::InviteBot); [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] 333 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | self.in_out.send(&Command::InviteBot); [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] 334 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | self.in_out.send(&Command::MarkReady); [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] 336 | let _ = self.in_out.send(&Command::MarkReady); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 357 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [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] 382 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:384:21 [INFO] [stdout] | [INFO] [stdout] 384 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [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] 384 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [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] 388 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [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] 395 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | ... self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [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] 410 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> webtarot_bot/src/player.rs:515:47 [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = IntoIterator::into_iter(suits) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | self.socket.close(None); [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] 52 | let _ = self.socket.close(None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> webtarot_bot/src/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nicknamer` [INFO] [stdout] --> webtarot_bot/src/socket_listener.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let nicknamer = Mutex::new(NickNamer::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nicknamer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystats` [INFO] [stdout] --> webtarot_bot/src/player.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mystats = &self.stats.players[me_pos]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystats` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> webtarot_bot/src/player.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | .find(|(idx, pstat)| pstat.played.has(king)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pstat` [INFO] [stdout] --> webtarot_bot/src/player.rs:273:33 [INFO] [stdout] | [INFO] [stdout] 273 | .map(|(idx, pstat)| idx); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pstat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `play_event` [INFO] [stdout] --> webtarot_bot/src/player.rs:344:32 [INFO] [stdout] | [INFO] [stdout] 344 | Message::PlayEvent(play_event) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_play_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mystate` [INFO] [stdout] --> webtarot_bot/src/player.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | let mystate = self.my_state().clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mystate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> webtarot_bot/src/player.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | let now = time::Instant::now(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:667:25 [INFO] [stdout] | [INFO] [stdout] 667 | let mut myhighest = my_highest.unwrap(); [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: unused variable: `vingtetun` [INFO] [stdout] --> webtarot_bot/src/player.rs:878:13 [INFO] [stdout] | [INFO] [stdout] 878 | let vingtetun = Card::new(Suit::Trump, Rank::Rank21); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vingtetun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mylowest` [INFO] [stdout] --> webtarot_bot/src/player.rs:894:25 [INFO] [stdout] | [INFO] [stdout] 894 | if let Some(mylowest) = hand.suit_lowest_over_card(Suit::Trump, winner_card){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mylowest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bot` [INFO] [stdout] --> webtarot_bot/src/player.rs:949:13 [INFO] [stdout] | [INFO] [stdout] 949 | let mut bot = Player::new(in_out, "joincode".to_string(), format!("nickname"), delay); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webtarot_bot/src/player.rs:949:9 [INFO] [stdout] | [INFO] [stdout] 949 | let mut bot = Player::new(in_out, "joincode".to_string(), format!("nickname"), delay); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> webtarot_bot/src/player.rs:961:24 [INFO] [stdout] | [INFO] [stdout] 961 | fn send(&mut self, command: &Command) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [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] 190 | let _ = self.in_out.send(&Command::Authenticate(AuthenticateCommand { nickname: self.player_info.nickname.clone() })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::iter::Map` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] 293 | | pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 292 | let _ = self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> webtarot_bot/src/player.rs:292:43 [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().map(|pstat| [INFO] [stdout] | ^ ------- [INFO] [stdout] | | | [INFO] [stdout] | ___________________________________________|___this function returns `()`, which is likely not what you wanted [INFO] [stdout] | |___________________________________________| [INFO] [stdout] | || [INFO] [stdout] 293 | || pstat.in_taker_team = Some(pstat.is_taker) [INFO] [stdout] | ||__________________________________________________________- called `Iterator::map` with callable that returns `()` [INFO] [stdout] 294 | | ); [INFO] [stdout] | | ^ after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 292 | self.stats.players.iter_mut().for_each(|pstat| [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 316 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:323:21 [INFO] [stdout] | [INFO] [stdout] 323 | self.in_out.send(&Command::NewGame(variant)); [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] 323 | let _ = self.in_out.send(&Command::NewGame(variant)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | self.in_out.send(&Command::InviteBot); [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] 331 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | self.in_out.send(&Command::InviteBot); [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] 332 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:333:21 [INFO] [stdout] | [INFO] [stdout] 333 | self.in_out.send(&Command::InviteBot); [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] 333 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | self.in_out.send(&Command::InviteBot); [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] 334 | let _ = self.in_out.send(&Command::InviteBot); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | self.in_out.send(&Command::MarkReady); [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] 336 | let _ = self.in_out.send(&Command::MarkReady); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [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] 357 | let _ = self.in_out.send(&Command::JoinGame(JoinGameCommand { join_code: self.join_code.clone(), })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [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] 382 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Bid(BidCommand { target, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:384:21 [INFO] [stdout] | [INFO] [stdout] 384 | self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [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] 384 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Pass)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [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] 388 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::CallKing(CallKingCommand { card: self.call_king() }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [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] 395 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::MakeDog(MakeDogCommand { cards: dog, slam: false }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/player.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 410 | ... self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [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] 410 | let _ = self.in_out.send(&Command::GamePlay(GamePlayCommand::Play(PlayCommand { card }))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> webtarot_bot/src/player.rs:515:47 [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = suits.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 515 | let mut candidates: Vec = IntoIterator::into_iter(suits) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_bot/src/in_out_websocket.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | self.socket.close(None); [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] 52 | let _ = self.socket.close(None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deal_hands` [INFO] [stdout] --> webtarot_protocol/src/game.rs:558:21 [INFO] [stdout] | [INFO] [stdout] 558 | use tarotgame::{deal_hands, deal_seeded_hands, bid, cards}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/lib.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(feature = "use_bench", feature(test))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/lib.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/cards.rs:945:7 [INFO] [stdout] | [INFO] [stdout] 945 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_bench` [INFO] [stdout] --> tarotgame/src/deal.rs:882:7 [INFO] [stdout] | [INFO] [stdout] 882 | #[cfg(feature = "use_bench")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `use_bench` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> webtarot_protocol/src/game.rs:564:22 [INFO] [stdout] | [INFO] [stdout] 564 | fn eq(&self, other: &Self) -> bool { true } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> webtarot_protocol/src/game.rs:568:30 [INFO] [stdout] | [INFO] [stdout] 568 | fn notify(&mut self, event: &(PlayEvent, TarotGameState)) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hands_deal1` [INFO] [stdout] --> webtarot_protocol/src/game.rs:596:13 [INFO] [stdout] | [INFO] [stdout] 596 | let hands_deal1 = game.deal.hands(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hands_deal1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_protocol/src/game.rs:699:9 [INFO] [stdout] | [INFO] [stdout] 699 | game.make_dog(id0, dog, false); [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] 699 | let _ = game.make_dog(id0, dog, false); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webtarot_protocol/src/game.rs:1027:9 [INFO] [stdout] | [INFO] [stdout] 1027 | game.make_dog(id0, dog, false);// keep initial dog [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] 1027 | let _ = game.make_dog(id0, dog, false);// keep initial dog [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_next` is never used [INFO] [stdout] --> tarotgame/src/pos.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | fn test_next() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking webtarot_client v0.7.8 (/opt/rustwide/workdir/webtarot_client) [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tr::tr` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tr::tr; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DealSnapshot` and `Turn` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::protocol::{GameStateSnapshot, DealSnapshot, PlayerRole, GamePlayerState, Turn}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `deal_size` and `trick` [INFO] [stdout] --> webtarot_client/src/views/game.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 34 | use tarotgame::{bid, deal, cards, deal_size, trick, Announce}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::format_join_code` [INFO] [stdout] --> webtarot_client/src/views/game.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::utils::format_join_code; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tr::tr` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tr::tr; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DealSnapshot` and `Turn` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::protocol::{GameStateSnapshot, DealSnapshot, PlayerRole, GamePlayerState, Turn}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `deal_size` and `trick` [INFO] [stdout] --> webtarot_client/src/views/game.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 34 | use tarotgame::{bid, deal, cards, deal_size, trick, Announce}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> webtarot_client/src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::format_join_code` [INFO] [stdout] --> webtarot_client/src/views/game.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::utils::format_join_code; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LanguageLoader` [INFO] [stdout] --> webtarot_client/src/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | LanguageLoader, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> webtarot_client/src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LanguageLoader` [INFO] [stdout] --> webtarot_client/src/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | LanguageLoader, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> webtarot_client/src/views/game.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> webtarot_client/src/views/game.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_scores` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let empty_scores = vec![0.0;nb_players]; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_scores` [INFO] [stdout] --> webtarot_client/src/components/player_list.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let empty_scores = vec![0.0;nb_players]; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turn_info` [INFO] [stdout] --> webtarot_client/src/views/game.rs:540:13 [INFO] [stdout] | [INFO] [stdout] 540 | let turn_info = match self.game_state.turn { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_turn_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turn_info` [INFO] [stdout] --> webtarot_client/src/views/game.rs:540:13 [INFO] [stdout] | [INFO] [stdout] 540 | let turn_info = match self.game_state.turn { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_turn_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/api.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 68 | fn create(link: AgentLink) -> Api { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 69 | console_log!("Connecting to server"); [INFO] [stdout] 70 | let on_message = link.callback(|Json(data)| match data { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 77 | let on_notification = link.callback(|status| match status { [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 81 | let ws = WebSocketService::connect(&get_websocket_location(None), on_message, on_notification) [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 88 | subscribers: HashSet::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/components/chat_box.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 64 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ----------------------- ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 68 | log_ref: NodeRef::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> webtarot_client/src/views/game.rs:95:35 [INFO] [stdout] | [INFO] [stdout] 95 | let msg = chat_line.text().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:362:28 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 362 | keepalive_job: Box::new(keepalive), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:366:27 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 366 | players_chat: Box::new(vec![None;5]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:367:23 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 367 | chat_log: Vector::unit(Rc::new(ChatLine { [INFO] [stdout] | _______________________^ [INFO] [stdout] 368 | | nickname: props.player_info.nickname.clone(), [INFO] [stdout] 369 | | data: ChatLineData::Connected, [INFO] [stdout] 370 | | })), [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/api.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 68 | fn create(link: AgentLink) -> Api { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 69 | console_log!("Connecting to server"); [INFO] [stdout] 70 | let on_message = link.callback(|Json(data)| match data { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 77 | let on_notification = link.callback(|status| match status { [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 81 | let ws = WebSocketService::connect(&get_websocket_location(None), on_message, on_notification) [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 88 | subscribers: HashSet::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/components/chat_box.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 64 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ----------------------- ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 68 | log_ref: NodeRef::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:376:27 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 376 | sound_player: SoundPlayer::new(sound_paths), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:379:33 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 379 | next_game_messages: Vector::new(), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:381:26 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 381 | overlay_box: None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> webtarot_client/src/views/game.rs:95:35 [INFO] [stdout] | [INFO] [stdout] 95 | let msg = chat_line.text().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:362:28 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 362 | keepalive_job: Box::new(keepalive), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:366:27 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 366 | players_chat: Box::new(vec![None;5]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:367:23 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 367 | chat_log: Vector::unit(Rc::new(ChatLine { [INFO] [stdout] | _______________________^ [INFO] [stdout] 368 | | nickname: props.player_info.nickname.clone(), [INFO] [stdout] 369 | | data: ChatLineData::Connected, [INFO] [stdout] 370 | | })), [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:376:27 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 376 | sound_player: SoundPlayer::new(sound_paths), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:379:33 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 379 | next_game_messages: Vector::new(), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> webtarot_client/src/views/game.rs:381:26 [INFO] [stdout] | [INFO] [stdout] 343 | fn create(props: Self::Properties, link: ComponentLink) -> Self { [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 344 | // Ping server every 50s in order to keep alive the websocket [INFO] [stdout] 345 | let keepalive = IntervalService::spawn( [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 350 | let on_server_message = link.callback(Msg::ServerMessage); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 351 | let mut api = Api::bridge(on_server_message); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 381 | overlay_box: None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `webtarot_client` (lib) due to 9 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `webtarot_client` (lib test) due to 9 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d8155ba878faeb1010c202771b778e7f23d8bdef827834fccdbaa93049b52d04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8155ba878faeb1010c202771b778e7f23d8bdef827834fccdbaa93049b52d04", kill_on_drop: false }` [INFO] [stdout] d8155ba878faeb1010c202771b778e7f23d8bdef827834fccdbaa93049b52d04