[INFO] cloning repository https://github.com/exe-dealer/pgblackboard [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/exe-dealer/pgblackboard" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexe-dealer%2Fpgblackboard", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexe-dealer%2Fpgblackboard'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bc600147f456e3e3ae96cf0961e12c7db3130524 [INFO] checking exe-dealer/pgblackboard against master#82310651b93a594a3fd69015e1562186a080d94c for pr-145770 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexe-dealer%2Fpgblackboard" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/exe-dealer/pgblackboard [INFO] finished tweaking git repo https://github.com/exe-dealer/pgblackboard [INFO] tweaked toml for git repo https://github.com/exe-dealer/pgblackboard written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/exe-dealer/pgblackboard on toolchain 82310651b93a594a3fd69015e1562186a080d94c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/exe-dealer/pgblackboard 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" "+82310651b93a594a3fd69015e1562186a080d94c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_json v0.9.10 [INFO] [stderr] Downloaded unicode-xid v0.0.4 [INFO] [stderr] Downloaded threadpool v0.1.4 [INFO] [stderr] Downloaded num-traits v0.1.37 [INFO] [stderr] Downloaded quote v0.3.15 [INFO] [stderr] Downloaded serde_codegen_internals v0.14.2 [INFO] [stderr] Downloaded synom v0.11.3 [INFO] [stderr] Downloaded syn v0.11.11 [INFO] [stderr] Downloaded dtoa v0.4.1 [INFO] [stderr] Downloaded itoa v0.3.1 [INFO] [stderr] Downloaded serde_derive v0.9.15 [INFO] [stderr] Downloaded serde v0.9.15 [INFO] [stderr] Downloaded md5 v0.3.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9df8c7c65799fd6ef8a3d0ce7820d82f168006730dfaa51e9283831c7b56e4e6 [INFO] running `Command { std: "docker" "start" "-a" "9df8c7c65799fd6ef8a3d0ce7820d82f168006730dfaa51e9283831c7b56e4e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9df8c7c65799fd6ef8a3d0ce7820d82f168006730dfaa51e9283831c7b56e4e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9df8c7c65799fd6ef8a3d0ce7820d82f168006730dfaa51e9283831c7b56e4e6", kill_on_drop: false }` [INFO] [stdout] 9df8c7c65799fd6ef8a3d0ce7820d82f168006730dfaa51e9283831c7b56e4e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1e2bed7297a551a4cc4c1ef3f533da1d59053d32ef609f66e5522ac4ad14d47 [INFO] running `Command { std: "docker" "start" "-a" "c1e2bed7297a551a4cc4c1ef3f533da1d59053d32ef609f66e5522ac4ad14d47", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking dtoa v0.4.1 [INFO] [stderr] Checking serde v0.9.15 [INFO] [stderr] Checking num-traits v0.1.37 [INFO] [stderr] Checking itoa v0.3.1 [INFO] [stderr] Checking threadpool v0.1.4 [INFO] [stderr] Checking md5 v0.3.6 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling serde_codegen_internals v0.14.2 [INFO] [stderr] Compiling serde_derive v0.9.15 [INFO] [stderr] Checking serde_json v0.9.10 [INFO] [stderr] Checking pgblackboard v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> server/http/method.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | try!(write!(&mut self.0, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | try!(resp_writer.write_header("Connection", "close")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | try!(write!(&mut self.0, "{}: {}\r\n", name, value)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | try!(self.write_header("Content-Length", content.len())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | try!(self.0.write_all(b"\r\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | try!(self.write_header("Transfer-Encoding", "chunked")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | try!(self.0.write_all(b"\r\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | try!(self.0.write_all(b"\r\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | try!(self.write_header("WWW-Authenticate", BasicAuthChallengeFmt(realm))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | try!(self.write_header("Content-Type", content_type)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | try!(write!(inner, "{:x}\r\n", buf.len())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | try!(inner.write_all(buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | try!(inner.write_all(b"\r\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChunkedWriter` and `ResponseWriter` [INFO] [stdout] --> server/http/mod.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | pub use self::response::{ ResponseStarter, ResponseWriter, ChunkedWriter } ; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> server/http/mod.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{self, BufRead, BufWriter, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | try!(w.write_content_type("application/json")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 71 | let mut w = try!(w.start(Status::MethodNotAllowed)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:210:24 [INFO] [stdout] | [INFO] [stdout] 210 | let line = try!(line_res); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:211:47 [INFO] [stdout] | [INFO] [stdout] 211 | let (header_name, header_value) = try!(parse_header(&line)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:214:38 [INFO] [stdout] | [INFO] [stdout] 214 | content_length = try!(header_value.parse().map_err(|_| io::Error::new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:452:20 [INFO] [stdout] | [INFO] [stdout] 452 | let listener = try!(TcpListener::bind(addr)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:454:51 [INFO] [stdout] | [INFO] [stdout] 454 | println!("Listening for HTTP requests on {}", try!(listener.local_addr())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> server/http/mod.rs:544:14 [INFO] [stdout] | [INFO] [stdout] 544 | b'0' ... b'9' => Some(byte - b'0'), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> server/http/mod.rs:545:14 [INFO] [stdout] | [INFO] [stdout] 545 | b'A' ... b'F' => Some(byte + 10 - b'A'), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> server/http/mod.rs:546:14 [INFO] [stdout] | [INFO] [stdout] 546 | b'a' ... b'f' => Some(byte + 10 - b'a'), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | try!(w.write_content_type("application/json")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | let mut w = try!(w.start(self.status)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | try!(w.write_content_type("application/json")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 104 | let mut w = try!(w.start(http::Status::Ok)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:106:32 [INFO] [stdout] | [INFO] [stdout] 106 | let mut chunk_writer = try!(w.start_chunked()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 111 | let mut w = try!(JsonStream::begin(chunk_writer)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | try!(w.write_message("executing", &serde_json::Value::Null)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | try!(w.write_message("error", err)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | try!(w.write_message("description", stmt_descr)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | try!(w.write_message("error", err)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | try!(w.write_raw(row)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:167:32 [INFO] [stdout] | [INFO] [stdout] 167 | let mut chunk_writer = try!(w.end()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | try!(write!(&mut w, "[\"jsonstream\"\r\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | try!(write!(&mut self.inner, "]")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let ident = try!(reader.read_u8()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | let msg_len_including_self = try!(reader.read_i32_be()) as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | b'R' => match try!(body_reader.read_i32_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | salt: try!(body_reader.read_u8x4()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | try!(read_error_or_notice(body_reader)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | try!(read_error_or_notice(body_reader)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | parameter: try!(body_reader.read_cstr()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | value: try!(body_reader.read_cstr()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | try!(read_row_description(body_reader)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | command_tag: try!(body_reader.read_cstr()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | process_id: try!(body_reader.read_u32_be()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | secret_key: try!(body_reader.read_u32_be()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | b'D' => BackendMessage::DataRow(try!(read_data_row(body_reader))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | transaction_status: match try!(body_reader.read_u8()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | pid: try!(body_reader.read_u32_be()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | channel: try!(body_reader.read_cstr()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | payload: try!(body_reader.read_cstr()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | format: try!(body_reader.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | for _ in 0..try!(body_reader.read_u16_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | column_formats.push(try!(body_reader.read_u16_be())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:95:36 [INFO] [stdout] | [INFO] [stdout] 95 | let params_count = try!(body_reader.read_i16_be()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:98:34 [INFO] [stdout] | [INFO] [stdout] 98 | typ_ids.push(try!(body_reader.read_u32_be())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | try!(body_reader.read_to_end(buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:306:40 [INFO] [stdout] | [INFO] [stdout] 306 | while let field_code @ 1 ... 255 = try!(reader.read_u8()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> server/postgres/backend.rs:306:30 [INFO] [stdout] | [INFO] [stdout] 306 | while let field_code @ 1 ... 255 = try!(reader.read_u8()) { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:307:35 [INFO] [stdout] | [INFO] [stdout] 307 | fields.insert(field_code, try!(reader.read_cstr())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:481:15 [INFO] [stdout] | [INFO] [stdout] 481 | let len = try!(reader.read_i16_be()) as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:486:19 [INFO] [stdout] | [INFO] [stdout] 486 | name: try!(reader.read_cstr()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:487:30 [INFO] [stdout] | [INFO] [stdout] 487 | table_oid: match try!(reader.read_u32_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:491:30 [INFO] [stdout] | [INFO] [stdout] 491 | column_id: match try!(reader.read_i16_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:495:22 [INFO] [stdout] | [INFO] [stdout] 495 | typ_oid: try!(reader.read_u32_be()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:496:29 [INFO] [stdout] | [INFO] [stdout] 496 | typ_size: match try!(reader.read_i16_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:500:27 [INFO] [stdout] | [INFO] [stdout] 500 | typ_modifier: try!(reader.read_i32_be()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:501:27 [INFO] [stdout] | [INFO] [stdout] 501 | format: match try!(reader.read_i16_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:517:24 [INFO] [stdout] | [INFO] [stdout] 517 | let fields_count = try!(reader.read_i16_be()) as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:521:27 [INFO] [stdout] | [INFO] [stdout] 521 | values.push(match try!(reader.read_i32_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:525:17 [INFO] [stdout] | [INFO] [stdout] 525 | try!(reader.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:526:30 [INFO] [stdout] | [INFO] [stdout] 526 | let strval = try!(String::from_utf8(buf).map_err(|err| io::Error::new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:569:9 [INFO] [stdout] | [INFO] [stdout] 569 | try!(self.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:575:9 [INFO] [stdout] | [INFO] [stdout] 575 | try!(self.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:581:9 [INFO] [stdout] | [INFO] [stdout] 581 | try!(self.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:611:35 [INFO] [stdout] | [INFO] [stdout] 611 | while let b @ 1 ... 255 = try!(self.read_u8()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> server/postgres/backend.rs:611:25 [INFO] [stdout] | [INFO] [stdout] 611 | while let b @ 1 ... 255 = try!(self.read_u8()) { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/frontend.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | try!(out.write_u8(ident)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:90:23 [INFO] [stdout] | [INFO] [stdout] 90 | .and_then(|_| (msg.write_payload(out))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 90 - .and_then(|_| (msg.write_payload(out))) [INFO] [stdout] 90 + .and_then(|_| msg.write_payload(out)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | .and_then(|_| (out.flush())) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - .and_then(|_| (out.flush())) [INFO] [stdout] 91 + .and_then(|_| out.flush()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 114 | .and_then(|_| (out.write_cstr("user"))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - .and_then(|_| (out.write_cstr("user"))) [INFO] [stdout] 114 + .and_then(|_| out.write_cstr("user")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:115:27 [INFO] [stdout] | [INFO] [stdout] 115 | .and_then(|_| (out.write_cstr(self.user))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - .and_then(|_| (out.write_cstr(self.user))) [INFO] [stdout] 115 + .and_then(|_| out.write_cstr(self.user)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:116:27 [INFO] [stdout] | [INFO] [stdout] 116 | .and_then(|_| (out.write_cstr("database"))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - .and_then(|_| (out.write_cstr("database"))) [INFO] [stdout] 116 + .and_then(|_| out.write_cstr("database")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | .and_then(|_| (out.write_cstr(self.database))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - .and_then(|_| (out.write_cstr(self.database))) [INFO] [stdout] 117 + .and_then(|_| out.write_cstr(self.database)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:118:27 [INFO] [stdout] | [INFO] [stdout] 118 | .and_then(|_| (out.write_cstr("application_name"))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - .and_then(|_| (out.write_cstr("application_name"))) [INFO] [stdout] 118 + .and_then(|_| out.write_cstr("application_name")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:119:27 [INFO] [stdout] | [INFO] [stdout] 119 | .and_then(|_| (out.write_cstr("pgblackboard"))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 119 - .and_then(|_| (out.write_cstr("pgblackboard"))) [INFO] [stdout] 119 + .and_then(|_| out.write_cstr("pgblackboard")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:120:27 [INFO] [stdout] | [INFO] [stdout] 120 | .and_then(|_| (out.write_u8(0))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 120 - .and_then(|_| (out.write_u8(0))) [INFO] [stdout] 120 + .and_then(|_| out.write_u8(0)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:149:27 [INFO] [stdout] | [INFO] [stdout] 149 | .and_then(|_| (out.write_cstr(self.stmt_body))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 - .and_then(|_| (out.write_cstr(self.stmt_body))) [INFO] [stdout] 149 + .and_then(|_| out.write_cstr(self.stmt_body)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:150:27 [INFO] [stdout] | [INFO] [stdout] 150 | .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 150 - .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] 150 + .and_then(|_| out.write_i16_be(0)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:158:27 [INFO] [stdout] | [INFO] [stdout] 158 | .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 - .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] 158 + .and_then(|_| out.write_cstr(self.stmt_name)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:166:27 [INFO] [stdout] | [INFO] [stdout] 166 | .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 166 - .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] 166 + .and_then(|_| out.write_cstr(self.stmt_name)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:167:27 [INFO] [stdout] | [INFO] [stdout] 167 | .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 167 - .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] 167 + .and_then(|_| out.write_i16_be(0)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:168:27 [INFO] [stdout] | [INFO] [stdout] 168 | .and_then(|_| (out.write_i16_be(self.params.len() as i16))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - .and_then(|_| (out.write_i16_be(self.params.len() as i16))) [INFO] [stdout] 168 + .and_then(|_| out.write_i16_be(self.params.len() as i16)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/frontend.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 171 | try!(match *param { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:174:47 [INFO] [stdout] | [INFO] [stdout] 174 | ... .and_then(|_| (out.write_all(val.as_bytes()))), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - .and_then(|_| (out.write_all(val.as_bytes()))), [INFO] [stdout] 174 + .and_then(|_| out.write_all(val.as_bytes())), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:179:27 [INFO] [stdout] | [INFO] [stdout] 179 | .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 179 - .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] 179 + .and_then(|_| out.write_i16_be(0)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:187:27 [INFO] [stdout] | [INFO] [stdout] 187 | .and_then(|_| (out.write_u32_be(self.rowlimit))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 187 - .and_then(|_| (out.write_u32_be(self.rowlimit))) [INFO] [stdout] 187 + .and_then(|_| out.write_u32_be(self.rowlimit)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:195:27 [INFO] [stdout] | [INFO] [stdout] 195 | .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 195 - .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] 195 + .and_then(|_| out.write_cstr(self.stmt_name)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> server/postgres/frontend.rs:210:32 [INFO] [stdout] | [INFO] [stdout] 210 | fn write_i32_be(&mut self, i32) -> io::Result<()>; [INFO] [stdout] | ^^^ help: try naming the parameter or explicitly ignoring it: `_: i32` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> server/postgres/frontend.rs:211:32 [INFO] [stdout] | [INFO] [stdout] 211 | fn write_u32_be(&mut self, u32) -> io::Result<()>; [INFO] [stdout] | ^^^ help: try naming the parameter or explicitly ignoring it: `_: u32` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> server/postgres/frontend.rs:212:32 [INFO] [stdout] | [INFO] [stdout] 212 | fn write_i16_be(&mut self, i16) -> io::Result<()>; [INFO] [stdout] | ^^^ help: try naming the parameter or explicitly ignoring it: `_: i16` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> server/postgres/frontend.rs:213:28 [INFO] [stdout] | [INFO] [stdout] 213 | fn write_u8(&mut self, u8) -> io::Result<()>; [INFO] [stdout] | ^^ help: try naming the parameter or explicitly ignoring it: `_: u8` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> server/postgres/frontend.rs:214:30 [INFO] [stdout] | [INFO] [stdout] 214 | fn write_cstr(&mut self, &str) -> io::Result<()>; [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:236:27 [INFO] [stdout] | [INFO] [stdout] 236 | .and_then(|_| (self.write_all(&[0]))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 236 - .and_then(|_| (self.write_all(&[0]))) [INFO] [stdout] 236 + .and_then(|_| self.write_all(&[0])) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SqlStateClass` [INFO] [stdout] --> server/postgres/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | SqlStateClass, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FlushMessage` [INFO] [stdout] --> server/postgres/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | FlushMessage, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> server/postgres/mod.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | use std::io::{ self, Read, Write }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 68 | let stream = try!(InternalStream::connect(addr)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | try!(conn.write_message(StartupMessage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | match try!(conn.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:159:15 [INFO] [stdout] | [INFO] [stdout] 159 | match try!(self.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | try!(self.write_message(ParseMessage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | try!(self.write_message(SyncMessage)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:269:15 [INFO] [stdout] | [INFO] [stdout] 269 | match try!(self.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:271:17 [INFO] [stdout] | [INFO] [stdout] 271 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:275:17 [INFO] [stdout] | [INFO] [stdout] 275 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 287 | try!(self.write_message(DescribeStatementMessage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | try!(self.write_message(SyncMessage)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:293:15 [INFO] [stdout] | [INFO] [stdout] 293 | match try!(self.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:298:17 [INFO] [stdout] | [INFO] [stdout] 298 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:304:15 [INFO] [stdout] | [INFO] [stdout] 304 | match try!(self.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:306:17 [INFO] [stdout] | [INFO] [stdout] 306 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:310:17 [INFO] [stdout] | [INFO] [stdout] 310 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | try!(self.write_message(CloseStatementMessage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | try!(self.write_message(SyncMessage)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:332:15 [INFO] [stdout] | [INFO] [stdout] 332 | match try!(self.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:334:17 [INFO] [stdout] | [INFO] [stdout] 334 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:370:15 [INFO] [stdout] | [INFO] [stdout] 370 | match try!(response) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:376:17 [INFO] [stdout] | [INFO] [stdout] 376 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | try!(w.write_content_type("application/json")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/main.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | let mut w = try!(w.start(self.status)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/main.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | try!(w.write_content_type(&self.content_type)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/main.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | try!(w.write_content(&self.content)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/main.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | let mut w = try!(w.start(self.status)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> server/http/mod.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/reqerror.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | fn cause(&self) -> Option<&Error> { None } [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | fn cause(&self) -> Option<&dyn Error> { None } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:50:68 [INFO] [stdout] | [INFO] [stdout] 50 | fn handle_http_req(&self, path: &[&str], req: &Request) -> Box; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 | fn handle_http_req(&self, path: &[&str], req: &Request) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:54:41 [INFO] [stdout] | [INFO] [stdout] 54 | fn get(&self, req: &Request) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn get(&self, req: &Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:58:42 [INFO] [stdout] | [INFO] [stdout] 58 | fn post(&self, req: &Request) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 | fn post(&self, req: &Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:62:43 [INFO] [stdout] | [INFO] [stdout] 62 | fn patch(&self, req: &Request) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 | fn patch(&self, req: &Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:66:56 [INFO] [stdout] | [INFO] [stdout] 66 | fn method_not_allowed(&self, req: &Request) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 66 | fn method_not_allowed(&self, req: &Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:84:68 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_http_req(&self, path: &[&str], req: &Request) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_http_req(&self, path: &[&str], req: &Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/sqlexec.rs:14:48 [INFO] [stdout] | [INFO] [stdout] 14 | fn post(&self, req: &http::Request) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | fn post(&self, req: &http::Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/main.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | -> Box [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | -> Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/main.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | -> Box [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 | -> Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> server/http/reqerror.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | f.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> server/http/mod.rs:178:38 [INFO] [stdout] | [INFO] [stdout] 178 | let http_version = &req_line.trim_right()[(right_space_pos + 1)..]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 178 - let http_version = &req_line.trim_right()[(right_space_pos + 1)..]; [INFO] [stdout] 178 + let http_version = &req_line.trim_end()[(right_space_pos + 1)..]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> server/http/mod.rs:442:48 [INFO] [stdout] | [INFO] [stdout] 442 | let header_value = line[(colon_pos + 1)..].trim_left(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 442 - let header_value = line[(colon_pos + 1)..].trim_left(); [INFO] [stdout] 442 + let header_value = line[(colon_pos + 1)..].trim_start(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> server/http/method.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | try!(write!(&mut self.0, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | try!(resp_writer.write_header("Connection", "close")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | try!(write!(&mut self.0, "{}: {}\r\n", name, value)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | try!(self.write_header("Content-Length", content.len())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | try!(self.0.write_all(b"\r\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | try!(self.write_header("Transfer-Encoding", "chunked")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | try!(self.0.write_all(b"\r\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | try!(self.0.write_all(b"\r\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | try!(self.write_header("WWW-Authenticate", BasicAuthChallengeFmt(realm))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | try!(self.write_header("Content-Type", content_type)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | try!(write!(inner, "{:x}\r\n", buf.len())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | try!(inner.write_all(buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/response.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | try!(inner.write_all(b"\r\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChunkedWriter` and `ResponseWriter` [INFO] [stdout] --> server/http/mod.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | pub use self::response::{ ResponseStarter, ResponseWriter, ChunkedWriter } ; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> server/http/mod.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{self, BufRead, BufWriter, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | try!(w.write_content_type("application/json")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 71 | let mut w = try!(w.start(Status::MethodNotAllowed)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:210:24 [INFO] [stdout] | [INFO] [stdout] 210 | let line = try!(line_res); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:211:47 [INFO] [stdout] | [INFO] [stdout] 211 | let (header_name, header_value) = try!(parse_header(&line)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:214:38 [INFO] [stdout] | [INFO] [stdout] 214 | content_length = try!(header_value.parse().map_err(|_| io::Error::new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:452:20 [INFO] [stdout] | [INFO] [stdout] 452 | let listener = try!(TcpListener::bind(addr)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/http/mod.rs:454:51 [INFO] [stdout] | [INFO] [stdout] 454 | println!("Listening for HTTP requests on {}", try!(listener.local_addr())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> server/http/mod.rs:544:14 [INFO] [stdout] | [INFO] [stdout] 544 | b'0' ... b'9' => Some(byte - b'0'), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> server/http/mod.rs:545:14 [INFO] [stdout] | [INFO] [stdout] 545 | b'A' ... b'F' => Some(byte + 10 - b'A'), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> server/http/mod.rs:546:14 [INFO] [stdout] | [INFO] [stdout] 546 | b'a' ... b'f' => Some(byte + 10 - b'a'), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | try!(w.write_content_type("application/json")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | let mut w = try!(w.start(self.status)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | try!(w.write_content_type("application/json")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 104 | let mut w = try!(w.start(http::Status::Ok)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:106:32 [INFO] [stdout] | [INFO] [stdout] 106 | let mut chunk_writer = try!(w.start_chunked()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 111 | let mut w = try!(JsonStream::begin(chunk_writer)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | try!(w.write_message("executing", &serde_json::Value::Null)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | try!(w.write_message("error", err)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | try!(w.write_message("description", stmt_descr)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | try!(w.write_message("error", err)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | try!(w.write_raw(row)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:167:32 [INFO] [stdout] | [INFO] [stdout] 167 | let mut chunk_writer = try!(w.end()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | try!(write!(&mut w, "[\"jsonstream\"\r\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/sqlexec.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | try!(write!(&mut self.inner, "]")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let ident = try!(reader.read_u8()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | let msg_len_including_self = try!(reader.read_i32_be()) as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | b'R' => match try!(body_reader.read_i32_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | salt: try!(body_reader.read_u8x4()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | try!(read_error_or_notice(body_reader)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | try!(read_error_or_notice(body_reader)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | parameter: try!(body_reader.read_cstr()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | value: try!(body_reader.read_cstr()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | try!(read_row_description(body_reader)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | command_tag: try!(body_reader.read_cstr()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | process_id: try!(body_reader.read_u32_be()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | secret_key: try!(body_reader.read_u32_be()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | b'D' => BackendMessage::DataRow(try!(read_data_row(body_reader))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | transaction_status: match try!(body_reader.read_u8()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | pid: try!(body_reader.read_u32_be()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | channel: try!(body_reader.read_cstr()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | payload: try!(body_reader.read_cstr()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | format: try!(body_reader.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | for _ in 0..try!(body_reader.read_u16_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | column_formats.push(try!(body_reader.read_u16_be())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:95:36 [INFO] [stdout] | [INFO] [stdout] 95 | let params_count = try!(body_reader.read_i16_be()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:98:34 [INFO] [stdout] | [INFO] [stdout] 98 | typ_ids.push(try!(body_reader.read_u32_be())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | try!(body_reader.read_to_end(buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:306:40 [INFO] [stdout] | [INFO] [stdout] 306 | while let field_code @ 1 ... 255 = try!(reader.read_u8()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> server/postgres/backend.rs:306:30 [INFO] [stdout] | [INFO] [stdout] 306 | while let field_code @ 1 ... 255 = try!(reader.read_u8()) { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:307:35 [INFO] [stdout] | [INFO] [stdout] 307 | fields.insert(field_code, try!(reader.read_cstr())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:481:15 [INFO] [stdout] | [INFO] [stdout] 481 | let len = try!(reader.read_i16_be()) as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:486:19 [INFO] [stdout] | [INFO] [stdout] 486 | name: try!(reader.read_cstr()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:487:30 [INFO] [stdout] | [INFO] [stdout] 487 | table_oid: match try!(reader.read_u32_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:491:30 [INFO] [stdout] | [INFO] [stdout] 491 | column_id: match try!(reader.read_i16_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:495:22 [INFO] [stdout] | [INFO] [stdout] 495 | typ_oid: try!(reader.read_u32_be()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:496:29 [INFO] [stdout] | [INFO] [stdout] 496 | typ_size: match try!(reader.read_i16_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:500:27 [INFO] [stdout] | [INFO] [stdout] 500 | typ_modifier: try!(reader.read_i32_be()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:501:27 [INFO] [stdout] | [INFO] [stdout] 501 | format: match try!(reader.read_i16_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:517:24 [INFO] [stdout] | [INFO] [stdout] 517 | let fields_count = try!(reader.read_i16_be()) as usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:521:27 [INFO] [stdout] | [INFO] [stdout] 521 | values.push(match try!(reader.read_i32_be()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:525:17 [INFO] [stdout] | [INFO] [stdout] 525 | try!(reader.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:526:30 [INFO] [stdout] | [INFO] [stdout] 526 | let strval = try!(String::from_utf8(buf).map_err(|err| io::Error::new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:569:9 [INFO] [stdout] | [INFO] [stdout] 569 | try!(self.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:575:9 [INFO] [stdout] | [INFO] [stdout] 575 | try!(self.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:581:9 [INFO] [stdout] | [INFO] [stdout] 581 | try!(self.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/backend.rs:611:35 [INFO] [stdout] | [INFO] [stdout] 611 | while let b @ 1 ... 255 = try!(self.read_u8()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> server/postgres/backend.rs:611:25 [INFO] [stdout] | [INFO] [stdout] 611 | while let b @ 1 ... 255 = try!(self.read_u8()) { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/frontend.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | try!(out.write_u8(ident)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:90:23 [INFO] [stdout] | [INFO] [stdout] 90 | .and_then(|_| (msg.write_payload(out))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 90 - .and_then(|_| (msg.write_payload(out))) [INFO] [stdout] 90 + .and_then(|_| msg.write_payload(out)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | .and_then(|_| (out.flush())) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - .and_then(|_| (out.flush())) [INFO] [stdout] 91 + .and_then(|_| out.flush()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 114 | .and_then(|_| (out.write_cstr("user"))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - .and_then(|_| (out.write_cstr("user"))) [INFO] [stdout] 114 + .and_then(|_| out.write_cstr("user")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:115:27 [INFO] [stdout] | [INFO] [stdout] 115 | .and_then(|_| (out.write_cstr(self.user))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - .and_then(|_| (out.write_cstr(self.user))) [INFO] [stdout] 115 + .and_then(|_| out.write_cstr(self.user)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:116:27 [INFO] [stdout] | [INFO] [stdout] 116 | .and_then(|_| (out.write_cstr("database"))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - .and_then(|_| (out.write_cstr("database"))) [INFO] [stdout] 116 + .and_then(|_| out.write_cstr("database")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | .and_then(|_| (out.write_cstr(self.database))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - .and_then(|_| (out.write_cstr(self.database))) [INFO] [stdout] 117 + .and_then(|_| out.write_cstr(self.database)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:118:27 [INFO] [stdout] | [INFO] [stdout] 118 | .and_then(|_| (out.write_cstr("application_name"))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - .and_then(|_| (out.write_cstr("application_name"))) [INFO] [stdout] 118 + .and_then(|_| out.write_cstr("application_name")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:119:27 [INFO] [stdout] | [INFO] [stdout] 119 | .and_then(|_| (out.write_cstr("pgblackboard"))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 119 - .and_then(|_| (out.write_cstr("pgblackboard"))) [INFO] [stdout] 119 + .and_then(|_| out.write_cstr("pgblackboard")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:120:27 [INFO] [stdout] | [INFO] [stdout] 120 | .and_then(|_| (out.write_u8(0))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 120 - .and_then(|_| (out.write_u8(0))) [INFO] [stdout] 120 + .and_then(|_| out.write_u8(0)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:149:27 [INFO] [stdout] | [INFO] [stdout] 149 | .and_then(|_| (out.write_cstr(self.stmt_body))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 149 - .and_then(|_| (out.write_cstr(self.stmt_body))) [INFO] [stdout] 149 + .and_then(|_| out.write_cstr(self.stmt_body)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:150:27 [INFO] [stdout] | [INFO] [stdout] 150 | .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 150 - .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] 150 + .and_then(|_| out.write_i16_be(0)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:158:27 [INFO] [stdout] | [INFO] [stdout] 158 | .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 - .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] 158 + .and_then(|_| out.write_cstr(self.stmt_name)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:166:27 [INFO] [stdout] | [INFO] [stdout] 166 | .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 166 - .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] 166 + .and_then(|_| out.write_cstr(self.stmt_name)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:167:27 [INFO] [stdout] | [INFO] [stdout] 167 | .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 167 - .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] 167 + .and_then(|_| out.write_i16_be(0)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:168:27 [INFO] [stdout] | [INFO] [stdout] 168 | .and_then(|_| (out.write_i16_be(self.params.len() as i16))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - .and_then(|_| (out.write_i16_be(self.params.len() as i16))) [INFO] [stdout] 168 + .and_then(|_| out.write_i16_be(self.params.len() as i16)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/frontend.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 171 | try!(match *param { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:174:47 [INFO] [stdout] | [INFO] [stdout] 174 | ... .and_then(|_| (out.write_all(val.as_bytes()))), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 174 - .and_then(|_| (out.write_all(val.as_bytes()))), [INFO] [stdout] 174 + .and_then(|_| out.write_all(val.as_bytes())), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:179:27 [INFO] [stdout] | [INFO] [stdout] 179 | .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 179 - .and_then(|_| (out.write_i16_be(0))) [INFO] [stdout] 179 + .and_then(|_| out.write_i16_be(0)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:187:27 [INFO] [stdout] | [INFO] [stdout] 187 | .and_then(|_| (out.write_u32_be(self.rowlimit))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 187 - .and_then(|_| (out.write_u32_be(self.rowlimit))) [INFO] [stdout] 187 + .and_then(|_| out.write_u32_be(self.rowlimit)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:195:27 [INFO] [stdout] | [INFO] [stdout] 195 | .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 195 - .and_then(|_| (out.write_cstr(self.stmt_name))) [INFO] [stdout] 195 + .and_then(|_| out.write_cstr(self.stmt_name)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> server/postgres/frontend.rs:210:32 [INFO] [stdout] | [INFO] [stdout] 210 | fn write_i32_be(&mut self, i32) -> io::Result<()>; [INFO] [stdout] | ^^^ help: try naming the parameter or explicitly ignoring it: `_: i32` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> server/postgres/frontend.rs:211:32 [INFO] [stdout] | [INFO] [stdout] 211 | fn write_u32_be(&mut self, u32) -> io::Result<()>; [INFO] [stdout] | ^^^ help: try naming the parameter or explicitly ignoring it: `_: u32` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> server/postgres/frontend.rs:212:32 [INFO] [stdout] | [INFO] [stdout] 212 | fn write_i16_be(&mut self, i16) -> io::Result<()>; [INFO] [stdout] | ^^^ help: try naming the parameter or explicitly ignoring it: `_: i16` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> server/postgres/frontend.rs:213:28 [INFO] [stdout] | [INFO] [stdout] 213 | fn write_u8(&mut self, u8) -> io::Result<()>; [INFO] [stdout] | ^^ help: try naming the parameter or explicitly ignoring it: `_: u8` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> server/postgres/frontend.rs:214:30 [INFO] [stdout] | [INFO] [stdout] 214 | fn write_cstr(&mut self, &str) -> io::Result<()>; [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: &str` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> server/postgres/frontend.rs:236:27 [INFO] [stdout] | [INFO] [stdout] 236 | .and_then(|_| (self.write_all(&[0]))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 236 - .and_then(|_| (self.write_all(&[0]))) [INFO] [stdout] 236 + .and_then(|_| self.write_all(&[0])) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SqlStateClass` [INFO] [stdout] --> server/postgres/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | SqlStateClass, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FlushMessage` [INFO] [stdout] --> server/postgres/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | FlushMessage, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> server/postgres/mod.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | use std::io::{ self, Read, Write }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 68 | let stream = try!(InternalStream::connect(addr)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | try!(conn.write_message(StartupMessage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | match try!(conn.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:159:15 [INFO] [stdout] | [INFO] [stdout] 159 | match try!(self.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | try!(self.write_message(ParseMessage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | try!(self.write_message(SyncMessage)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:269:15 [INFO] [stdout] | [INFO] [stdout] 269 | match try!(self.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:271:17 [INFO] [stdout] | [INFO] [stdout] 271 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:275:17 [INFO] [stdout] | [INFO] [stdout] 275 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 287 | try!(self.write_message(DescribeStatementMessage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | try!(self.write_message(SyncMessage)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:293:15 [INFO] [stdout] | [INFO] [stdout] 293 | match try!(self.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:298:17 [INFO] [stdout] | [INFO] [stdout] 298 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:304:15 [INFO] [stdout] | [INFO] [stdout] 304 | match try!(self.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:306:17 [INFO] [stdout] | [INFO] [stdout] 306 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:310:17 [INFO] [stdout] | [INFO] [stdout] 310 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | try!(self.write_message(CloseStatementMessage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | try!(self.write_message(SyncMessage)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:332:15 [INFO] [stdout] | [INFO] [stdout] 332 | match try!(self.read_message()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:334:17 [INFO] [stdout] | [INFO] [stdout] 334 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:370:15 [INFO] [stdout] | [INFO] [stdout] 370 | match try!(response) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/postgres/mod.rs:376:17 [INFO] [stdout] | [INFO] [stdout] 376 | try!(self.wait_for_ready()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | try!(w.write_content_type("application/json")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/main.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | let mut w = try!(w.start(self.status)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/main.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | try!(w.write_content_type(&self.content_type)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/main.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | try!(w.write_content(&self.content)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> server/main.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | let mut w = try!(w.start(self.status)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> server/http/mod.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/reqerror.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | fn cause(&self) -> Option<&Error> { None } [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | fn cause(&self) -> Option<&dyn Error> { None } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> server/postgres/sqlstate.rs:392:38 [INFO] [stdout] | [INFO] [stdout] 392 | assert_eq!(sqlstate.class(), SqlState::InvalidAuthorizationSpecification); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `SqlStateClass`, found `SqlState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:50:68 [INFO] [stdout] | [INFO] [stdout] 50 | fn handle_http_req(&self, path: &[&str], req: &Request) -> Box; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 | fn handle_http_req(&self, path: &[&str], req: &Request) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:54:41 [INFO] [stdout] | [INFO] [stdout] 54 | fn get(&self, req: &Request) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn get(&self, req: &Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:58:42 [INFO] [stdout] | [INFO] [stdout] 58 | fn post(&self, req: &Request) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 | fn post(&self, req: &Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:62:43 [INFO] [stdout] | [INFO] [stdout] 62 | fn patch(&self, req: &Request) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 | fn patch(&self, req: &Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:66:56 [INFO] [stdout] | [INFO] [stdout] 66 | fn method_not_allowed(&self, req: &Request) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 66 | fn method_not_allowed(&self, req: &Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/http/mod.rs:84:68 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_http_req(&self, path: &[&str], req: &Request) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_http_req(&self, path: &[&str], req: &Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/sqlexec.rs:14:48 [INFO] [stdout] | [INFO] [stdout] 14 | fn post(&self, req: &http::Request) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 | fn post(&self, req: &http::Request) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/main.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | -> Box [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | -> Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> server/main.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | -> Box [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 | -> Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> server/http/reqerror.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | f.write_str(self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> server/http/mod.rs:178:38 [INFO] [stdout] | [INFO] [stdout] 178 | let http_version = &req_line.trim_right()[(right_space_pos + 1)..]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 178 - let http_version = &req_line.trim_right()[(right_space_pos + 1)..]; [INFO] [stdout] 178 + let http_version = &req_line.trim_end()[(right_space_pos + 1)..]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> server/http/mod.rs:442:48 [INFO] [stdout] | [INFO] [stdout] 442 | let header_value = line[(colon_pos + 1)..].trim_left(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 442 - let header_value = line[(colon_pos + 1)..].trim_left(); [INFO] [stdout] 442 + let header_value = line[(colon_pos + 1)..].trim_start(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> server/postgres/mod.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | use std::io::{ self, Read, Write }; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> server/http/mod.rs:14:52 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{self, BufRead, BufWriter, BufReader, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> server/http/mod.rs:14:58 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{self, BufRead, BufWriter, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> server/http/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> server/http/mod.rs:66:34 [INFO] [stdout] | [INFO] [stdout] 66 | fn method_not_allowed(&self, req: &Request) -> Box { [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: `path` [INFO] [stdout] --> server/http/mod.rs:84:31 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_http_req(&self, path: &[&str], req: &Request) -> Box { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_urlenc_content` is assigned to, but never used [INFO] [stdout] --> server/http/mod.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | let mut is_urlenc_content = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_is_urlenc_content` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_urlenc_content` is never read [INFO] [stdout] --> server/http/mod.rs:221:21 [INFO] [stdout] | [INFO] [stdout] 221 | is_urlenc_content = header_value == "application/x-www-form-urlencoded"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/http/mod.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | let mut credentials = None; [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: `err` [INFO] [stdout] --> server/sqlexec.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | Err(err) => return Box::new(JsonResponse { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/sqlexec.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut chunk_writer = try!(w.start_chunked()); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> server/postgres/mod.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | use std::io::{ self, Read, Write }; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> server/http/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> server/http/mod.rs:14:52 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{self, BufRead, BufWriter, BufReader, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> server/http/mod.rs:14:58 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{self, BufRead, BufWriter, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_oid` [INFO] [stdout] --> server/sqlexec.rs:370:18 [INFO] [stdout] | [INFO] [stdout] 370 | .find(|&(table_oid, ref selected_col_ids, ref key_col_ids)| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_oid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> server/http/mod.rs:66:34 [INFO] [stdout] | [INFO] [stdout] 66 | fn method_not_allowed(&self, req: &Request) -> Box { [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: `path` [INFO] [stdout] --> server/http/mod.rs:84:31 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle_http_req(&self, path: &[&str], req: &Request) -> Box { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_urlenc_content` is assigned to, but never used [INFO] [stdout] --> server/http/mod.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | let mut is_urlenc_content = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_is_urlenc_content` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_urlenc_content` is never read [INFO] [stdout] --> server/http/mod.rs:221:21 [INFO] [stdout] | [INFO] [stdout] 221 | is_urlenc_content = header_value == "application/x-www-form-urlencoded"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/http/mod.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | let mut credentials = None; [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: `err` [INFO] [stdout] --> server/sqlexec.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | Err(err) => return Box::new(JsonResponse { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/sqlexec.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut chunk_writer = try!(w.start_chunked()); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_oid` [INFO] [stdout] --> server/sqlexec.rs:370:18 [INFO] [stdout] | [INFO] [stdout] 370 | .find(|&(table_oid, ref selected_col_ids, ref key_col_ids)| { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_oid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unknown` [INFO] [stdout] --> server/postgres/backend.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | unknown => return Err(io::Error::new( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unknown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unknown` [INFO] [stdout] --> server/postgres/backend.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | unknown => return Err(io::Error::new( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unknown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> server/postgres/frontend.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | fn write_payload(&self, out: &mut W) -> io::Result<()> { Ok(()) } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> server/postgres/frontend.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | fn write_payload(&self, out: &mut W) -> io::Result<()> { Ok(()) } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `password_was_requested` is assigned to, but never used [INFO] [stdout] --> server/postgres/mod.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut password_was_requested = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_password_was_requested` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `password_was_requested` is never read [INFO] [stdout] --> server/postgres/mod.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | password_was_requested = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ_ids` [INFO] [stdout] --> server/postgres/mod.rs:294:52 [INFO] [stdout] | [INFO] [stdout] 294 | BackendMessage::ParameterDescription { typ_ids } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `typ_ids: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> server/main.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | req: &http::Request) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `password_was_requested` is assigned to, but never used [INFO] [stdout] --> server/postgres/mod.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut password_was_requested = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_password_was_requested` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `password_was_requested` is never read [INFO] [stdout] --> server/postgres/mod.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | password_was_requested = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RequestContent` is never used [INFO] [stdout] --> server/http/mod.rs:127:10 [INFO] [stdout] | [INFO] [stdout] 127 | pub enum RequestContent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query_string`, `credentials`, and `if_non_match` are never read [INFO] [stdout] --> server/http/mod.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 140 | pub query_string: Vec<(String, String)>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 141 | pub content: Option>, [INFO] [stdout] 142 | pub credentials: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 143 | pub if_non_match: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Basic` is never constructed [INFO] [stdout] --> server/http/mod.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 148 | pub enum RequestCredentials { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] 149 | Basic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestCredentials` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> server/http/reqerror.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RequestError { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 8 | pub status: Status, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_ok` is never used [INFO] [stdout] --> server/http/response.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ResponseStarter { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn start_ok(self) -> io::Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `finish_without_body` and `write_www_authenticate_basic` are never used [INFO] [stdout] --> server/http/response.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl ResponseWriter { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn finish_without_body(mut self) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn write_www_authenticate_basic(&mut self, realm: &str) -> io::Result<&mut Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pop_notice` is never used [INFO] [stdout] --> server/postgres/mod.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl Connection { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 251 | pub fn pop_notice(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cancel` is never used [INFO] [stdout] --> server/postgres/mod.rs:430:8 [INFO] [stdout] | [INFO] [stdout] 430 | pub fn cancel(addr: &str, process_id: u32, secret_key: u32) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SqlStateClass` is never used [INFO] [stdout] --> server/postgres/sqlstate.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum SqlStateClass { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | / sql_state! { [INFO] [stdout] 51 | | "00" => SuccessfulCompletion { [INFO] [stdout] 52 | | [INFO] [stdout] 53 | | }, [INFO] [stdout] ... | [INFO] [stdout] 382 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `sql_state` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `class` is never used [INFO] [stdout] --> server/postgres/sqlstate.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 25 | impl SqlState { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn class(&self) -> SqlStateClass { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | / sql_state! { [INFO] [stdout] 51 | | "00" => SuccessfulCompletion { [INFO] [stdout] 52 | | [INFO] [stdout] 53 | | }, [INFO] [stdout] ... | [INFO] [stdout] 382 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `sql_state` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `format` and `column_formats` are never read [INFO] [stdout] --> server/postgres/backend.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 403 | CopyInResponse { [INFO] [stdout] | -------------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 409 | format: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 414 | column_formats: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BackendMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pid`, `channel`, and `payload` are never read [INFO] [stdout] --> server/postgres/backend.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 434 | NotificationResponse { [INFO] [stdout] | -------------------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 437 | pid: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 440 | channel: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 443 | payload: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BackendMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `parameter` and `value` are never read [INFO] [stdout] --> server/postgres/backend.rs:450:9 [INFO] [stdout] | [INFO] [stdout] 447 | ParameterStatus { [INFO] [stdout] | --------------- fields in this variant [INFO] [stdout] ... [INFO] [stdout] 450 | parameter: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 453 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BackendMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryMessage` is never constructed [INFO] [stdout] --> server/postgres/frontend.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct QueryMessage<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FlushMessage` is never constructed [INFO] [stdout] --> server/postgres/frontend.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct FlushMessage; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CancelRequestMessage` is never constructed [INFO] [stdout] --> server/postgres/frontend.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct CancelRequestMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> server/sqlexec.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Form` is not local [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Form` and up 2 bodies [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `messageType` should have a snake case name [INFO] [stdout] --> server/sqlexec.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | messageType: &str, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `message_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> server/postgres/sqlstate.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `SqlState` is not local [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_SqlState` [INFO] [stdout] ... [INFO] [stdout] 50 | / sql_state! { [INFO] [stdout] 51 | | "00" => SuccessfulCompletion { [INFO] [stdout] 52 | | [INFO] [stdout] 53 | | }, [INFO] [stdout] ... | [INFO] [stdout] 382 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` which comes from the expansion of the macro `sql_state` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> server/postgres/backend.rs:183:10 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PgErrorOrNotice` is not local [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_PgErrorOrNotice` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> server/postgres/backend.rs:587:13 [INFO] [stdout] | [INFO] [stdout] 587 | mem::transmute(buf) [INFO] [stdout] | --------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> server/postgres/backend.rs:593:13 [INFO] [stdout] | [INFO] [stdout] 593 | mem::transmute(buf) [INFO] [stdout] | --------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> server/postgres/backend.rs:599:13 [INFO] [stdout] | [INFO] [stdout] 599 | mem::transmute(buf) [INFO] [stdout] | --------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> server/postgres/backend.rs:605:13 [INFO] [stdout] | [INFO] [stdout] 605 | mem::transmute(buf) [INFO] [stdout] | --------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::from_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> server/postgres/frontend.rs:219:35 [INFO] [stdout] | [INFO] [stdout] 219 | self.write_all(& unsafe { mem::transmute::<_, [u8; 4]>(value.to_be()) }) [INFO] [stdout] | ----------------------------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> server/postgres/frontend.rs:223:35 [INFO] [stdout] | [INFO] [stdout] 223 | self.write_all(& unsafe { mem::transmute::<_, [u8; 4]>(value.to_be()) }) [INFO] [stdout] | ----------------------------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> server/postgres/frontend.rs:227:35 [INFO] [stdout] | [INFO] [stdout] 227 | self.write_all(& unsafe { mem::transmute::<_, [u8; 2]>(value.to_be()) }) [INFO] [stdout] | ----------------------------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i16::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ_ids` [INFO] [stdout] --> server/postgres/mod.rs:294:52 [INFO] [stdout] | [INFO] [stdout] 294 | BackendMessage::ParameterDescription { typ_ids } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `typ_ids: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> server/main.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | req: &http::Request) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pgblackboard` (bin "pgblackboard" test) due to 1 previous error; 174 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "c1e2bed7297a551a4cc4c1ef3f533da1d59053d32ef609f66e5522ac4ad14d47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1e2bed7297a551a4cc4c1ef3f533da1d59053d32ef609f66e5522ac4ad14d47", kill_on_drop: false }` [INFO] [stdout] c1e2bed7297a551a4cc4c1ef3f533da1d59053d32ef609f66e5522ac4ad14d47