[INFO] cloning repository https://github.com/Nugine/pastebin-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nugine/pastebin-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNugine%2Fpastebin-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNugine%2Fpastebin-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d93bf6b2023078497f3929a8da10ab822e3e5c9f [INFO] testing Nugine/pastebin-server against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNugine%2Fpastebin-server" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nugine/pastebin-server on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Nugine/pastebin-server [INFO] finished tweaking git repo https://github.com/Nugine/pastebin-server [INFO] tweaked toml for git repo https://github.com/Nugine/pastebin-server written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/Nugine/pastebin-server already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redis v0.10.0 [INFO] [stderr] Downloaded base64-url v1.1.7 [INFO] [stderr] Downloaded ascii v0.9.2 [INFO] [stderr] Downloaded base32 v0.4.0 [INFO] [stderr] Downloaded crc-any v2.0.0 [INFO] [stderr] Downloaded short-crypt v1.0.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 38d0e62f92523032332484f590f3e681631506d3e3a014ce4335165512c864b9 [INFO] running `Command { std: "docker" "start" "-a" "38d0e62f92523032332484f590f3e681631506d3e3a014ce4335165512c864b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "38d0e62f92523032332484f590f3e681631506d3e3a014ce4335165512c864b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38d0e62f92523032332484f590f3e681631506d3e3a014ce4335165512c864b9", kill_on_drop: false }` [INFO] [stdout] 38d0e62f92523032332484f590f3e681631506d3e3a014ce4335165512c864b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b7fa3566ff4b02e5141c22a0c10e9137b0c205590912ec30e9bf4be7db7e5f0 [INFO] running `Command { std: "docker" "start" "-a" "6b7fa3566ff4b02e5141c22a0c10e9137b0c205590912ec30e9bf4be7db7e5f0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.59 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling log v0.4.7 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling arc-swap v0.3.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.5 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling hashbrown v0.5.0 [INFO] [stderr] Compiling redis v0.10.0 [INFO] [stderr] Compiling ascii v0.9.2 [INFO] [stderr] Compiling crc-any v2.0.0 [INFO] [stderr] Compiling termcolor v1.0.5 [INFO] [stderr] Compiling base32 v0.4.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling backtrace-sys v0.1.30 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling actix-service v0.4.1 [INFO] [stderr] Compiling miniz-sys v0.1.12 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling crossbeam-utils v0.6.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding_rs v0.8.17 [INFO] [stderr] Compiling lock_api v0.2.0 [INFO] [stderr] Compiling humantime v1.2.0 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling tokio-executor v0.1.8 [INFO] [stderr] Compiling c2-chacha v0.2.2 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling tokio-timer v0.2.11 [INFO] [stderr] Compiling tokio-current-thread v0.1.6 [INFO] [stderr] Compiling unicase v2.4.0 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling base64-url v1.1.7 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling socket2 v0.3.9 [INFO] [stderr] Compiling hostname v0.1.5 [INFO] [stderr] Compiling getrandom v0.1.6 [INFO] [stderr] Compiling signal-hook-registry v1.0.1 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling atty v0.2.12 [INFO] [stderr] Compiling mime v0.3.13 [INFO] [stderr] Compiling short-crypt v1.0.8 [INFO] [stderr] Compiling flate2 v1.0.9 [INFO] [stderr] Compiling aho-corasick v0.7.4 [INFO] [stderr] Compiling combine v3.8.1 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling resolv-conf v0.6.2 [INFO] [stderr] Compiling rand_core v0.5.0 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling signal-hook v0.1.10 [INFO] [stderr] Compiling backtrace v0.3.32 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling threadpool v1.7.1 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Compiling rand_chacha v0.2.0 [INFO] [stderr] Compiling chrono v0.4.7 [INFO] [stderr] Compiling regex v1.1.9 [INFO] [stderr] Compiling rand v0.7.0 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling http v0.1.17 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling tokio-codec v0.1.1 [INFO] [stderr] Compiling actix-codec v0.1.2 [INFO] [stderr] Compiling actix-utils v0.4.2 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling tokio-reactor v0.1.9 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling tokio-udp v0.1.3 [INFO] [stderr] Compiling tokio-signal v0.2.7 [INFO] [stderr] Compiling actix-server-config v0.1.1 [INFO] [stderr] Compiling h2 v0.1.25 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling serde_derive v1.0.94 [INFO] [stderr] Compiling derive_more v0.14.1 [INFO] [stderr] Compiling enum-as-inner v0.2.1 [INFO] [stderr] Compiling derive_more v0.15.0 [INFO] [stderr] Compiling actix-web-codegen v0.1.2 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling trust-dns-proto v0.7.4 [INFO] [stderr] Compiling dotenv v0.14.1 [INFO] [stderr] Compiling actix-threadpool v0.1.1 [INFO] [stderr] Compiling trust-dns-resolver v0.11.1 [INFO] [stderr] Compiling actix-rt v0.2.3 [INFO] [stderr] Compiling actix-server v0.5.1 [INFO] [stderr] Compiling actix-connect v0.2.0 [INFO] [stderr] Compiling serde v1.0.94 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling serde_urlencoded v0.5.5 [INFO] [stderr] Compiling actix-router v0.1.5 [INFO] [stderr] Compiling actix-http v0.2.5 [INFO] [stderr] Compiling awc v0.2.2 [INFO] [stderr] Compiling actix-web v1.0.3 [INFO] [stderr] Compiling pastebin-server v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/data/key.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | static ref SC: ShortCrypt = { ShortCrypt::new(&*CRYPT_KEY) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:31:44 [INFO] [stdout] | [INFO] [stdout] 31 | pub static ref MAX_STORE_SIZE: usize = { parse("PASTEBIN_MAX_STORE_SIZE", 100 * 1024 * 1024) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:32:43 [INFO] [stdout] | [INFO] [stdout] 32 | pub static ref MAX_POST_SIZE: usize = { parse("PASTEBIN_MAX_POST_SIZE", 32 * 1024) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:33:46 [INFO] [stdout] | [INFO] [stdout] 33 | pub static ref MAX_EXPIRATION: SecTime = { parse("PASTEBIN_MAX_EXPIRATION", 7 * 24 * 60 * 60) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:34:42 [INFO] [stdout] | [INFO] [stdout] 34 | pub static ref CLEAN_DURATION: u64 = { parse("PASTEBIN_CLEAN_DURATION", 5000) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:35:35 [INFO] [stdout] | [INFO] [stdout] 35 | pub static ref ADDR: String = { env::var("PASTEBIN_ADDR").unwrap_or(DEFAULT_ADDR.into()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | { env::var("PASTEBIN_CRYPT_KEY").unwrap_or(DEFAULT_CRYPT_KEY.into()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:38:48 [INFO] [stdout] | [INFO] [stdout] 38 | pub static ref REDIS_URL: Option = { env::var("PASTEBIN_REDIS_URL").ok() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 39s [INFO] running `Command { std: "docker" "inspect" "6b7fa3566ff4b02e5141c22a0c10e9137b0c205590912ec30e9bf4be7db7e5f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b7fa3566ff4b02e5141c22a0c10e9137b0c205590912ec30e9bf4be7db7e5f0", kill_on_drop: false }` [INFO] [stdout] 6b7fa3566ff4b02e5141c22a0c10e9137b0c205590912ec30e9bf4be7db7e5f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22ad8352c3bdfd139c7e257bf4de754b3daa137ff82db57c32c214905055b4f7 [INFO] running `Command { std: "docker" "start" "-a" "22ad8352c3bdfd139c7e257bf4de754b3daa137ff82db57c32c214905055b4f7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling pastebin-server v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/data/key.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | static ref SC: ShortCrypt = { ShortCrypt::new(&*CRYPT_KEY) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:31:44 [INFO] [stdout] | [INFO] [stdout] 31 | pub static ref MAX_STORE_SIZE: usize = { parse("PASTEBIN_MAX_STORE_SIZE", 100 * 1024 * 1024) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:32:43 [INFO] [stdout] | [INFO] [stdout] 32 | pub static ref MAX_POST_SIZE: usize = { parse("PASTEBIN_MAX_POST_SIZE", 32 * 1024) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:33:46 [INFO] [stdout] | [INFO] [stdout] 33 | pub static ref MAX_EXPIRATION: SecTime = { parse("PASTEBIN_MAX_EXPIRATION", 7 * 24 * 60 * 60) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:34:42 [INFO] [stdout] | [INFO] [stdout] 34 | pub static ref CLEAN_DURATION: u64 = { parse("PASTEBIN_CLEAN_DURATION", 5000) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:35:35 [INFO] [stdout] | [INFO] [stdout] 35 | pub static ref ADDR: String = { env::var("PASTEBIN_ADDR").unwrap_or(DEFAULT_ADDR.into()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | { env::var("PASTEBIN_CRYPT_KEY").unwrap_or(DEFAULT_CRYPT_KEY.into()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/env.rs:38:48 [INFO] [stdout] | [INFO] [stdout] 38 | pub static ref REDIS_URL: Option = { env::var("PASTEBIN_REDIS_URL").ok() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.44s [INFO] running `Command { std: "docker" "inspect" "22ad8352c3bdfd139c7e257bf4de754b3daa137ff82db57c32c214905055b4f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22ad8352c3bdfd139c7e257bf4de754b3daa137ff82db57c32c214905055b4f7", kill_on_drop: false }` [INFO] [stdout] 22ad8352c3bdfd139c7e257bf4de754b3daa137ff82db57c32c214905055b4f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 373a52000e811d3d4a582f5a9facd7064bbf9520b0ab7570060b00a4b03106f6 [INFO] running `Command { std: "docker" "start" "-a" "373a52000e811d3d4a582f5a9facd7064bbf9520b0ab7570060b00a4b03106f6", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> src/data/key.rs:9:33 [INFO] [stderr] | [INFO] [stderr] 9 | static ref SC: ShortCrypt = { ShortCrypt::new(&*CRYPT_KEY) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_braces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> src/env.rs:31:44 [INFO] [stderr] | [INFO] [stderr] 31 | pub static ref MAX_STORE_SIZE: usize = { parse("PASTEBIN_MAX_STORE_SIZE", 100 * 1024 * 1024) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> src/env.rs:32:43 [INFO] [stderr] | [INFO] [stderr] 32 | pub static ref MAX_POST_SIZE: usize = { parse("PASTEBIN_MAX_POST_SIZE", 32 * 1024) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> src/env.rs:33:46 [INFO] [stderr] | [INFO] [stderr] 33 | pub static ref MAX_EXPIRATION: SecTime = { parse("PASTEBIN_MAX_EXPIRATION", 7 * 24 * 60 * 60) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> src/env.rs:34:42 [INFO] [stderr] | [INFO] [stderr] 34 | pub static ref CLEAN_DURATION: u64 = { parse("PASTEBIN_CLEAN_DURATION", 5000) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> src/env.rs:35:35 [INFO] [stderr] | [INFO] [stderr] 35 | pub static ref ADDR: String = { env::var("PASTEBIN_ADDR").unwrap_or(DEFAULT_ADDR.into()) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> src/env.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | { env::var("PASTEBIN_CRYPT_KEY").unwrap_or(DEFAULT_CRYPT_KEY.into()) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> src/env.rs:38:48 [INFO] [stderr] | [INFO] [stderr] 38 | pub static ref REDIS_URL: Option = { env::var("PASTEBIN_REDIS_URL").ok() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: 8 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/pastebin_server-669c7aa8d664a25e) [INFO] [stdout] running 4 tests [INFO] [stdout] test data::dto::test_err_res ... ok [INFO] [stdout] test time::test_now_nano ... ok [INFO] [stdout] test data::key::test_key_nano ... ok [INFO] [stdout] test mem_store::store::test_store ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "373a52000e811d3d4a582f5a9facd7064bbf9520b0ab7570060b00a4b03106f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "373a52000e811d3d4a582f5a9facd7064bbf9520b0ab7570060b00a4b03106f6", kill_on_drop: false }` [INFO] [stdout] 373a52000e811d3d4a582f5a9facd7064bbf9520b0ab7570060b00a4b03106f6