[INFO] cloning repository https://github.com/PrasanthChettri/sano [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PrasanthChettri/sano" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPrasanthChettri%2Fsano", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPrasanthChettri%2Fsano'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2a8cca5e4580eaa5d63e2d3feff837f83f3eeed6 [INFO] checking PrasanthChettri/sano against try#3652eaba14e5de752eaa5a8ffcac7132f9244f07 for pr-139272 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPrasanthChettri%2Fsano" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PrasanthChettri/sano on toolchain 3652eaba14e5de752eaa5a8ffcac7132f9244f07 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PrasanthChettri/sano [INFO] finished tweaking git repo https://github.com/PrasanthChettri/sano [INFO] tweaked toml for git repo https://github.com/PrasanthChettri/sano written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/PrasanthChettri/sano 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" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking PrasanthChettri/sano against try#3652eaba14e5de752eaa5a8ffcac7132f9244f07 for pr-139272 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPrasanthChettri%2Fsano" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PrasanthChettri/sano on toolchain 3652eaba14e5de752eaa5a8ffcac7132f9244f07 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PrasanthChettri/sano [INFO] finished tweaking git repo https://github.com/PrasanthChettri/sano [INFO] tweaked toml for git repo https://github.com/PrasanthChettri/sano written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/PrasanthChettri/sano 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" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d6914314ccfe4c465360764e260c5de3b135f216f65739ad1624ef39fa1bbee6 [INFO] running `Command { std: "docker" "start" "-a" "d6914314ccfe4c465360764e260c5de3b135f216f65739ad1624ef39fa1bbee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6914314ccfe4c465360764e260c5de3b135f216f65739ad1624ef39fa1bbee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6914314ccfe4c465360764e260c5de3b135f216f65739ad1624ef39fa1bbee6", kill_on_drop: false }` [INFO] [stdout] d6914314ccfe4c465360764e260c5de3b135f216f65739ad1624ef39fa1bbee6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f79ba7f26382725de1cbedca611e84e37c560abb09be1109b68015653832d1a [INFO] running `Command { std: "docker" "start" "-a" "9f79ba7f26382725de1cbedca611e84e37c560abb09be1109b68015653832d1a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking unicode-bidi v0.3.14 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking ascii v1.1.0 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking chunked_transfer v1.5.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking tiny_http v0.12.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking sano v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/response.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs ; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/response.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs ; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/server.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/server.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sano` [INFO] [stdout] --> src/server.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | request as sanoRequest, sano, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sano` [INFO] [stdout] --> src/server.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | request as sanoRequest, sano, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderField`, `Request as TinyHttpRequest`, `Response as TinyHttpResponse`, and `StatusCode` [INFO] [stdout] --> src/server.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Request as TinyHttpRequest, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | Response as TinyHttpResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | StatusCode, HeaderField [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::FromStr` [INFO] [stdout] --> src/router.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ collections::HashMap, str::FromStr }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderField`, `Request as TinyHttpRequest`, `Response as TinyHttpResponse`, and `StatusCode` [INFO] [stdout] --> src/server.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Request as TinyHttpRequest, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | Response as TinyHttpResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | StatusCode, HeaderField [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> src/router.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Body` [INFO] [stdout] --> src/router.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::response::{ Response, Body, ResponseBldr, ResponseSerializable }; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::Config` [INFO] [stdout] --> src/sano.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::config::Config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::FromStr` [INFO] [stdout] --> src/router.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ collections::HashMap, str::FromStr }; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/sano.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> src/router.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> src/request.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{info, warn} ; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Body` [INFO] [stdout] --> src/router.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::response::{ Response, Body, ResponseBldr, ResponseSerializable }; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result as JsonResult` and `Value` [INFO] [stdout] --> src/request.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::{Result as JsonResult, Value}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::Config` [INFO] [stdout] --> src/sano.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::config::Config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/sano.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/request.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize, de::DeserializeOwned}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> src/request.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{info, warn} ; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/request.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result as JsonResult` and `Value` [INFO] [stdout] --> src/request.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::{Result as JsonResult, Value}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/request.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize, de::DeserializeOwned}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/request.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/request.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sano` [INFO] [stdout] --> src/tinytosano.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | sano [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderField`, `Server as TinyHttpServer`, and `StatusCode` [INFO] [stdout] --> src/tinytosano.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Server as TinyHttpServer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | StatusCode, HeaderField [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/request.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sano` [INFO] [stdout] --> src/tinytosano.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | sano [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderField`, `Server as TinyHttpServer`, and `StatusCode` [INFO] [stdout] --> src/tinytosano.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Server as TinyHttpServer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | StatusCode, HeaderField [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/request.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 79 | todo!("THIS DOES NOT WORK FORM DATA IS TRICKYYY"); [INFO] [stdout] | ------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 80 | / match d.split("\r\n\r\n").nth(1) { [INFO] [stdout] 81 | | Some(e) => Self::deserialize_form_urlencoded(d), [INFO] [stdout] 82 | | None => Ok(None), [INFO] [stdout] 83 | | } [INFO] [stdout] | |_________________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/server.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | Err(e) => panic!("EE"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/request.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 79 | todo!("THIS DOES NOT WORK FORM DATA IS TRICKYYY"); [INFO] [stdout] | ------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 80 | / match d.split("\r\n\r\n").nth(1) { [INFO] [stdout] 81 | | Some(e) => Self::deserialize_form_urlencoded(d), [INFO] [stdout] 82 | | None => Ok(None), [INFO] [stdout] 83 | | } [INFO] [stdout] | |_________________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/request.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 78 | Body::Form(d) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/request.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | Some(e) => Self::deserialize_form_urlencoded(d), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/server.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | Err(e) => panic!("EE"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RouteType` is more private than the item `RouteRegistry::<'a>::register` [INFO] [stdout] --> src/router.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn register(&mut self, url: &'static str ,rType: RouteType, method: Method) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `RouteRegistry::<'a>::register` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `RouteType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/router.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | enum RouteType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/request.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 78 | Body::Form(d) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/request.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | Some(e) => Self::deserialize_form_urlencoded(d), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTML` is never constructed [INFO] [stdout] --> src/response.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Body { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 9 | HTML(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Body` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `ok` and `err` are never used [INFO] [stdout] --> src/response.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl Response { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn ok(body: Body) -> Self { Self::new(body, 200) } [INFO] [stdout] | ^^ [INFO] [stdout] 69 | pub fn err(body: Body) -> Self { Self::new(body, 400) } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `body`, `ok`, and `err` are never used [INFO] [stdout] --> src/response.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl ResponseBldr { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn body(mut self, body: Body) -> ResponseBldr { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn ok(self) -> ResponseBldr { self.http_status(200) } [INFO] [stdout] | ^^ [INFO] [stdout] 96 | [INFO] [stdout] 97 | pub fn err(self) -> ResponseBldr { self.http_status(400) } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `url` is never read [INFO] [stdout] --> src/server.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Server { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 21 | server: Arc, [INFO] [stdout] 22 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root_url` is never read [INFO] [stdout] --> src/router.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Router { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 10 | root_url: &'static str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `context` is never read [INFO] [stdout] --> src/sano.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Sano<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | context: Option [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mount` is never used [INFO] [stdout] --> src/sano.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Sano<'a>{ [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn mount(&mut self, static_root: &'static str) -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/request.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct SerializationError(String); [INFO] [stdout] | ------------------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/request.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Body` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 - Text(String), [INFO] [stdout] 31 + Text(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Binary` is never constructed [INFO] [stdout] --> src/request.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum Body { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 32 | Binary(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Body` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `query_params` is never read [INFO] [stdout] --> src/request.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Request { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 38 | query_params: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_raw_body` and `get_qparams` are never used [INFO] [stdout] --> src/request.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Request{ [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn get_raw_body(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn get_qparams(&self) -> &HashMap { &self.query_params } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `static_mount` is never read [INFO] [stdout] --> src/config.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | static_mount: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `mount` are never used [INFO] [stdout] --> src/config.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Config { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(static_root : &'static str) -> Config { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn mount(&mut self, static_root: &'static str) -> (){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `rType` should have a snake case name [INFO] [stdout] --> src/router.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | rType: RouteType, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `r_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rType` should have a snake case name [INFO] [stdout] --> src/router.rs:60:51 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn register(&mut self, url: &'static str ,rType: RouteType, method: Method) -> () { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `r_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rType` should have a snake case name [INFO] [stdout] --> src/router.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let rType = RouteType::Endpoint( [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `r_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getContentType` should have a snake case name [INFO] [stdout] --> src/tinytosano.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn getContentType(request: &TinyHttpRequest, string_body: String) -> Body { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_content_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RouteType` is more private than the item `RouteRegistry::<'a>::register` [INFO] [stdout] --> src/router.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn register(&mut self, url: &'static str ,rType: RouteType, method: Method) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `RouteRegistry::<'a>::register` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `RouteType` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/router.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | enum RouteType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTML` is never constructed [INFO] [stdout] --> src/response.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Body { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 9 | HTML(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Body` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `ok` and `err` are never used [INFO] [stdout] --> src/response.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl Response { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn ok(body: Body) -> Self { Self::new(body, 200) } [INFO] [stdout] | ^^ [INFO] [stdout] 69 | pub fn err(body: Body) -> Self { Self::new(body, 400) } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `body`, `ok`, and `err` are never used [INFO] [stdout] --> src/response.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl ResponseBldr { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn body(mut self, body: Body) -> ResponseBldr { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn ok(self) -> ResponseBldr { self.http_status(200) } [INFO] [stdout] | ^^ [INFO] [stdout] 96 | [INFO] [stdout] 97 | pub fn err(self) -> ResponseBldr { self.http_status(400) } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `url` is never read [INFO] [stdout] --> src/server.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Server { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 21 | server: Arc, [INFO] [stdout] 22 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root_url` is never read [INFO] [stdout] --> src/router.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Router { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 10 | root_url: &'static str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `context` is never read [INFO] [stdout] --> src/sano.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Sano<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | context: Option [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mount` is never used [INFO] [stdout] --> src/sano.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Sano<'a>{ [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn mount(&mut self, static_root: &'static str) -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/request.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct SerializationError(String); [INFO] [stdout] | ------------------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/request.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Body` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 - Text(String), [INFO] [stdout] 31 + Text(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Binary` is never constructed [INFO] [stdout] --> src/request.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum Body { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 32 | Binary(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Body` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `query_params` is never read [INFO] [stdout] --> src/request.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Request { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 38 | query_params: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_raw_body` and `get_qparams` are never used [INFO] [stdout] --> src/request.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Request{ [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn get_raw_body(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn get_qparams(&self) -> &HashMap { &self.query_params } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `static_mount` is never read [INFO] [stdout] --> src/config.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | static_mount: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `mount` are never used [INFO] [stdout] --> src/config.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Config { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(static_root : &'static str) -> Config { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn mount(&mut self, static_root: &'static str) -> (){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `rType` should have a snake case name [INFO] [stdout] --> src/router.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | rType: RouteType, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `r_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rType` should have a snake case name [INFO] [stdout] --> src/router.rs:60:51 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn register(&mut self, url: &'static str ,rType: RouteType, method: Method) -> () { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `r_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rType` should have a snake case name [INFO] [stdout] --> src/router.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let rType = RouteType::Endpoint( [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `r_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getContentType` should have a snake case name [INFO] [stdout] --> src/tinytosano.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn getContentType(request: &TinyHttpRequest, string_body: String) -> Body { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_content_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.40s [INFO] running `Command { std: "docker" "inspect" "9f79ba7f26382725de1cbedca611e84e37c560abb09be1109b68015653832d1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f79ba7f26382725de1cbedca611e84e37c560abb09be1109b68015653832d1a", kill_on_drop: false }` [INFO] [stdout] 9f79ba7f26382725de1cbedca611e84e37c560abb09be1109b68015653832d1a