[INFO] cloning repository https://github.com/lamtx/rust_chat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lamtx/rust_chat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flamtx%2Frust_chat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flamtx%2Frust_chat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 24e72a31e23b99b3f53f3637ab6b8ea3455c39df [INFO] checking lamtx/rust_chat against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flamtx%2Frust_chat" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lamtx/rust_chat on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lamtx/rust_chat [INFO] finished tweaking git repo https://github.com/lamtx/rust_chat [INFO] tweaked toml for git repo https://github.com/lamtx/rust_chat written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lamtx/rust_chat 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded routerify v3.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] adb1115f205a0d64ad7deb123c68defa78fe42e24ab4b3df91bcc29a91f3ff35 [INFO] running `Command { std: "docker" "start" "-a" "adb1115f205a0d64ad7deb123c68defa78fe42e24ab4b3df91bcc29a91f3ff35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "adb1115f205a0d64ad7deb123c68defa78fe42e24ab4b3df91bcc29a91f3ff35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adb1115f205a0d64ad7deb123c68defa78fe42e24ab4b3df91bcc29a91f3ff35", kill_on_drop: false }` [INFO] [stdout] adb1115f205a0d64ad7deb123c68defa78fe42e24ab4b3df91bcc29a91f3ff35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d2eea804ac5edf68ec4684c06cde770a8f93ec3f2f4510dd8712daf640f86b4 [INFO] running `Command { std: "docker" "start" "-a" "6d2eea804ac5edf68ec4684c06cde770a8f93ec3f2f4510dd8712daf640f86b4", kill_on_drop: false }` [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Checking querystring v1.1.0 [INFO] [stderr] Checking futures-channel v0.3.28 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking regex-automata v0.3.8 [INFO] [stderr] Checking regex v1.9.5 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking serde_json v1.0.107 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking routerify v3.0.0 [INFO] [stderr] Checking rust_chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `request::TextRoomRequest` [INFO] [stdout] --> src/model/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use request::TextRoomRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `response::TextRoomResponse` [INFO] [stdout] --> src/model/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use response::TextRoomResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::err` [INFO] [stdout] --> src/misc/query_params.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::future::err; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `request::TextRoomRequest` [INFO] [stdout] --> src/model/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use request::TextRoomRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `response::TextRoomResponse` [INFO] [stdout] --> src/model/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use response::TextRoomResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::err` [INFO] [stdout] --> src/misc/query_params.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::future::err; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body`, `Response`, `StatusCode` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper::{Body, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RequestInfo` [INFO] [stdout] --> src/main.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | use routerify::{Router, RouterService, RequestInfo}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task::yield_now` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::task::yield_now; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body`, `Response`, `StatusCode` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper::{Body, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RequestInfo` [INFO] [stdout] --> src/main.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | use routerify::{Router, RouterService, RequestInfo}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task::yield_now` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::task::yield_now; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/app/room.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/app/room.rs:42:59 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/app/room.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/app/room.rs:42:59 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/app/handlers.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/app/handlers.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/app/handlers.rs:68:54 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/app/handlers.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/app/handlers.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/app/handlers.rs:68:54 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `UtcDate` is never used [INFO] [stdout] --> src/model/mod.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type UtcDate = DateTime; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `textroom`, `room`, `type`, `text`, and `date` are never read [INFO] [stdout] --> src/model/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Message { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 16 | pub textroom: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub room: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | pub r#type: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | #[serde(with = "crate::misc::date_serde")] [INFO] [stdout] 21 | pub date: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ok` and `Error` are never constructed [INFO] [stdout] --> src/model/response.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TextRoomResponse { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 5 | Ok { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 9 | Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TextRoomRequest` is never used [INFO] [stdout] --> src/model/request.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TextRoomRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DestroyParams` is never constructed [INFO] [stdout] --> src/model/params.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct DestroyParams { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JoinParams` is never constructed [INFO] [stdout] --> src/model/params.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct JoinParams { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LastAnnouncementParams` is never constructed [INFO] [stdout] --> src/model/params.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct LastAnnouncementParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PhotoParams` is never constructed [INFO] [stdout] --> src/model/params.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct PhotoParams { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/misc/date_serde.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn serialize( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `UtcDate` is never used [INFO] [stdout] --> src/model/mod.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type UtcDate = DateTime; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `textroom`, `room`, `type`, `text`, and `date` are never read [INFO] [stdout] --> src/model/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Message { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 16 | pub textroom: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub room: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | pub r#type: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | #[serde(with = "crate::misc::date_serde")] [INFO] [stdout] 21 | pub date: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ok` and `Error` are never constructed [INFO] [stdout] --> src/model/response.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TextRoomResponse { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 5 | Ok { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 9 | Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TextRoomRequest` is never used [INFO] [stdout] --> src/model/request.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TextRoomRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DestroyParams` is never constructed [INFO] [stdout] --> src/model/params.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct DestroyParams { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JoinParams` is never constructed [INFO] [stdout] --> src/model/params.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct JoinParams { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LastAnnouncementParams` is never constructed [INFO] [stdout] --> src/model/params.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct LastAnnouncementParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PhotoParams` is never constructed [INFO] [stdout] --> src/model/params.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct PhotoParams { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/misc/date_serde.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn serialize( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_param` is never used [INFO] [stdout] --> src/misc/query_params.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn parse_param(uri: &Uri) -> Result where T: Params { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_response` is never used [INFO] [stdout] --> src/misc/response.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait ToResponse { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 7 | fn to_response(&self) -> HttpResponse; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GetRoom` is never constructed [INFO] [stdout] --> src/app/app.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 14 | enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 23 | GetRoom { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_room` is never used [INFO] [stdout] --> src/app/app.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 34 | impl App { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub async fn get_room(&self, room: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `secret`, `post`, and `post_types` are never read [INFO] [stdout] --> src/app/room.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | room: String, [INFO] [stdout] 9 | secret: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | post: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | post_types: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_request` and `post_created` are never used [INFO] [stdout] --> src/app/room.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 36 | impl Room { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn post_created(&self) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_param` is never used [INFO] [stdout] --> src/misc/query_params.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn parse_param(uri: &Uri) -> Result where T: Params { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_response` is never used [INFO] [stdout] --> src/misc/response.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait ToResponse { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 7 | fn to_response(&self) -> HttpResponse; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GetRoom` is never constructed [INFO] [stdout] --> src/app/app.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 14 | enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 23 | GetRoom { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_room` is never used [INFO] [stdout] --> src/app/app.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 34 | impl App { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub async fn get_room(&self, room: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `secret`, `post`, and `post_types` are never read [INFO] [stdout] --> src/app/room.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | room: String, [INFO] [stdout] 9 | secret: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | post: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | post_types: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_request` and `post_created` are never used [INFO] [stdout] --> src/app/room.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 36 | impl Room { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn post_created(&self) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.81s [INFO] running `Command { std: "docker" "inspect" "6d2eea804ac5edf68ec4684c06cde770a8f93ec3f2f4510dd8712daf640f86b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d2eea804ac5edf68ec4684c06cde770a8f93ec3f2f4510dd8712daf640f86b4", kill_on_drop: false }` [INFO] [stdout] 6d2eea804ac5edf68ec4684c06cde770a8f93ec3f2f4510dd8712daf640f86b4 [INFO] checking lamtx/rust_chat against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flamtx%2Frust_chat" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lamtx/rust_chat on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lamtx/rust_chat [INFO] finished tweaking git repo https://github.com/lamtx/rust_chat [INFO] tweaked toml for git repo https://github.com/lamtx/rust_chat written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/lamtx/rust_chat 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 078d2195f7f54f385d075655684ce70d1528d44932ed5a0cc57e5bead2ab5a84 [INFO] running `Command { std: "docker" "start" "-a" "078d2195f7f54f385d075655684ce70d1528d44932ed5a0cc57e5bead2ab5a84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "078d2195f7f54f385d075655684ce70d1528d44932ed5a0cc57e5bead2ab5a84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "078d2195f7f54f385d075655684ce70d1528d44932ed5a0cc57e5bead2ab5a84", kill_on_drop: false }` [INFO] [stdout] 078d2195f7f54f385d075655684ce70d1528d44932ed5a0cc57e5bead2ab5a84 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aec7542450f85985dd21236d6d94c914a4147b0d3ce15016c6dc7da9cebfe50c [INFO] running `Command { std: "docker" "start" "-a" "aec7542450f85985dd21236d6d94c914a4147b0d3ce15016c6dc7da9cebfe50c", kill_on_drop: false }` [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Checking querystring v1.1.0 [INFO] [stderr] Checking futures-channel v0.3.28 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking regex-automata v0.3.8 [INFO] [stderr] Checking regex v1.9.5 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking routerify v3.0.0 [INFO] [stderr] Checking serde_json v1.0.107 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking rust_chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `request::TextRoomRequest` [INFO] [stdout] --> src/model/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use request::TextRoomRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `response::TextRoomResponse` [INFO] [stdout] --> src/model/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use response::TextRoomResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::err` [INFO] [stdout] --> src/misc/query_params.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::future::err; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body`, `Response`, `StatusCode` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper::{Body, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RequestInfo` [INFO] [stdout] --> src/main.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | use routerify::{Router, RouterService, RequestInfo}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task::yield_now` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::task::yield_now; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `request::TextRoomRequest` [INFO] [stdout] --> src/model/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use request::TextRoomRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `response::TextRoomResponse` [INFO] [stdout] --> src/model/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use response::TextRoomResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::err` [INFO] [stdout] --> src/misc/query_params.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::future::err; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body`, `Response`, `StatusCode` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper::{Body, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RequestInfo` [INFO] [stdout] --> src/main.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | use routerify::{Router, RouterService, RequestInfo}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task::yield_now` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::task::yield_now; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/app/room.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/app/room.rs:42:59 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/app/handlers.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/app/handlers.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/app/handlers.rs:68:54 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/app/room.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/app/room.rs:42:59 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/app/handlers.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/app/handlers.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/app/handlers.rs:68:54 [INFO] [stdout] | [INFO] [stdout] 68 | async fn room_action(req: HttpRequest, room: String, action: String) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `UtcDate` is never used [INFO] [stdout] --> src/model/mod.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type UtcDate = DateTime; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `textroom`, `room`, `type`, `text`, and `date` are never read [INFO] [stdout] --> src/model/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Message { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 16 | pub textroom: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub room: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | pub r#type: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | #[serde(with = "crate::misc::date_serde")] [INFO] [stdout] 21 | pub date: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ok` and `Error` are never constructed [INFO] [stdout] --> src/model/response.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TextRoomResponse { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 5 | Ok { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 9 | Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TextRoomRequest` is never used [INFO] [stdout] --> src/model/request.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TextRoomRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DestroyParams` is never constructed [INFO] [stdout] --> src/model/params.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct DestroyParams { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JoinParams` is never constructed [INFO] [stdout] --> src/model/params.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct JoinParams { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LastAnnouncementParams` is never constructed [INFO] [stdout] --> src/model/params.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct LastAnnouncementParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PhotoParams` is never constructed [INFO] [stdout] --> src/model/params.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct PhotoParams { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/misc/date_serde.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn serialize( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_param` is never used [INFO] [stdout] --> src/misc/query_params.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn parse_param(uri: &Uri) -> Result where T: Params { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_response` is never used [INFO] [stdout] --> src/misc/response.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait ToResponse { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 7 | fn to_response(&self) -> HttpResponse; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GetRoom` is never constructed [INFO] [stdout] --> src/app/app.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 14 | enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 23 | GetRoom { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_room` is never used [INFO] [stdout] --> src/app/app.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 34 | impl App { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub async fn get_room(&self, room: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `secret`, `post`, and `post_types` are never read [INFO] [stdout] --> src/app/room.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | room: String, [INFO] [stdout] 9 | secret: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | post: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | post_types: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_request` and `post_created` are never used [INFO] [stdout] --> src/app/room.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 36 | impl Room { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn post_created(&self) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `UtcDate` is never used [INFO] [stdout] --> src/model/mod.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type UtcDate = DateTime; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `textroom`, `room`, `type`, `text`, and `date` are never read [INFO] [stdout] --> src/model/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Message { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 16 | pub textroom: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub room: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | pub r#type: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | #[serde(with = "crate::misc::date_serde")] [INFO] [stdout] 21 | pub date: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ok` and `Error` are never constructed [INFO] [stdout] --> src/model/response.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TextRoomResponse { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 5 | Ok { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 9 | Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TextRoomRequest` is never used [INFO] [stdout] --> src/model/request.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TextRoomRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DestroyParams` is never constructed [INFO] [stdout] --> src/model/params.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct DestroyParams { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JoinParams` is never constructed [INFO] [stdout] --> src/model/params.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct JoinParams { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LastAnnouncementParams` is never constructed [INFO] [stdout] --> src/model/params.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct LastAnnouncementParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PhotoParams` is never constructed [INFO] [stdout] --> src/model/params.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct PhotoParams { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/misc/date_serde.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn serialize( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_param` is never used [INFO] [stdout] --> src/misc/query_params.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn parse_param(uri: &Uri) -> Result where T: Params { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_response` is never used [INFO] [stdout] --> src/misc/response.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait ToResponse { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 7 | fn to_response(&self) -> HttpResponse; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GetRoom` is never constructed [INFO] [stdout] --> src/app/app.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 14 | enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 23 | GetRoom { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_room` is never used [INFO] [stdout] --> src/app/app.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 34 | impl App { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub async fn get_room(&self, room: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `secret`, `post`, and `post_types` are never read [INFO] [stdout] --> src/app/room.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | room: String, [INFO] [stdout] 9 | secret: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | post: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | post_types: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_request` and `post_created` are never used [INFO] [stdout] --> src/app/room.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 36 | impl Room { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn handle_request(&self, req: &HttpRequest, action: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn post_created(&self) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.97s [INFO] running `Command { std: "docker" "inspect" "aec7542450f85985dd21236d6d94c914a4147b0d3ce15016c6dc7da9cebfe50c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aec7542450f85985dd21236d6d94c914a4147b0d3ce15016c6dc7da9cebfe50c", kill_on_drop: false }` [INFO] [stdout] aec7542450f85985dd21236d6d94c914a4147b0d3ce15016c6dc7da9cebfe50c