[INFO] cloning repository https://github.com/ArjunKrish7356/shortDbBackend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ArjunKrish7356/shortDbBackend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArjunKrish7356%2FshortDbBackend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArjunKrish7356%2FshortDbBackend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 82d1285656551444fd1228c8dfb13cd7c7cbfe35 [INFO] building ArjunKrish7356/shortDbBackend against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArjunKrish7356%2FshortDbBackend" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ArjunKrish7356/shortDbBackend [INFO] finished tweaking git repo https://github.com/ArjunKrish7356/shortDbBackend [INFO] tweaked toml for git repo https://github.com/ArjunKrish7356/shortDbBackend written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ArjunKrish7356/shortDbBackend on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ArjunKrish7356/shortDbBackend 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded anyhow v1.0.89 [INFO] [stderr] Downloaded tonic-reflection v0.11.0 [INFO] [stderr] Downloaded tonic-build v0.11.0 [INFO] [stderr] Downloaded multimap v0.10.0 [INFO] [stderr] Downloaded prost-build v0.12.6 [INFO] [stderr] Downloaded actix-cors v0.6.5 [INFO] [stderr] Downloaded prettyplease v0.2.22 [INFO] [stderr] Downloaded cc v1.1.25 [INFO] [stderr] Downloaded serde_json v1.0.128 [INFO] [stderr] Downloaded regex v1.11.0 [INFO] [stderr] Downloaded syn v2.0.79 [INFO] [stderr] Downloaded tonic-web v0.11.0 [INFO] [stderr] Downloaded libc v0.2.159 [INFO] [stderr] Downloaded tokio v1.40.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 51de7aec388ff1dfaf16e27d8d1f215efaedb860bf739d97a6218f8ed717058f [INFO] running `Command { std: "docker" "start" "-a" "51de7aec388ff1dfaf16e27d8d1f215efaedb860bf739d97a6218f8ed717058f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "51de7aec388ff1dfaf16e27d8d1f215efaedb860bf739d97a6218f8ed717058f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51de7aec388ff1dfaf16e27d8d1f215efaedb860bf739d97a6218f8ed717058f", kill_on_drop: false }` [INFO] [stdout] 51de7aec388ff1dfaf16e27d8d1f215efaedb860bf739d97a6218f8ed717058f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd08d462c6a5f05cba432346d11128f25af91846b4456d810e728a53fc804b9e [INFO] running `Command { std: "docker" "start" "-a" "fd08d462c6a5f05cba432346d11128f25af91846b4456d810e728a53fc804b9e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling prettyplease v0.2.22 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling cc v1.1.25 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling impl-more v0.1.6 [INFO] [stderr] Compiling http-range-header v0.3.1 [INFO] [stderr] Compiling tower-http v0.4.4 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling pin-project-internal v1.1.6 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling pin-project v1.1.6 [INFO] [stderr] Compiling prost v0.12.6 [INFO] [stderr] Compiling prost-types v0.12.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling prost-build v0.12.6 [INFO] [stderr] Compiling tonic-build v0.11.0 [INFO] [stderr] Compiling shortDbBackend v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling actix-cors v0.6.5 [INFO] [stderr] Compiling tonic v0.11.0 [INFO] [stderr] Compiling tonic-web v0.11.0 [INFO] [stderr] Compiling tonic-reflection v0.11.0 [INFO] [stdout] warning: unused import: `proto::basic_client::BasicClient` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use proto::basic_client::BasicClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tonic::transport::Channel` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tonic::transport::Channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tonic::transport::Channel` [INFO] [stdout] --> src/methods/get.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tonic::transport::Channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/methods/get.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | ) -> Result<(String), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - ) -> Result<(String), Box> { [INFO] [stdout] 12 + ) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tonic::transport::Channel` [INFO] [stdout] --> src/methods/set.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tonic::transport::Channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/methods/set.rs:10:65 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn set(longLink: String, shortCode: String) -> Result<(String), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - pub async fn set(longLink: String, shortCode: String) -> Result<(String), Box> { [INFO] [stdout] 10 + pub async fn set(longLink: String, shortCode: String) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `setResponse` [INFO] [stdout] --> src/methods/set.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let setResponse = client.set(setRequest).await?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_setResponse` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `actix_web::HttpResponseBuilder::header`: Replaced with `append_header((key, value))`. Will be removed in v5. [INFO] [stdout] --> src/main.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | .header("Location", url) // Redirect to the URL [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Get` is never constructed [INFO] [stdout] --> src/main.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Get { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getDataFromDb` should have a snake case name [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | async fn getDataFromDb(path: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_data_from_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setDataToDb` should have a snake case name [INFO] [stdout] --> src/main.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | async fn setDataToDb(data: web::Json) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `set_data_to_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `shortCode` should have a snake case name [INFO] [stdout] --> src/methods/get.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | shortCode: String, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `short_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getFormat` should have a snake case name [INFO] [stdout] --> src/methods/get.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let getFormat = GetRequest { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getRequest` should have a snake case name [INFO] [stdout] --> src/methods/get.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let getRequest = tonic::Request::new(getFormat); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getResponse` should have a snake case name [INFO] [stdout] --> src/methods/get.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let getResponse = client.get(getRequest).await?; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `longLink` should have a snake case name [INFO] [stdout] --> src/methods/set.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn set(longLink: String, shortCode: String) -> Result<(String), Box> { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `long_link` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `shortCode` should have a snake case name [INFO] [stdout] --> src/methods/set.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn set(longLink: String, shortCode: String) -> Result<(String), Box> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `short_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `setFormat` should have a snake case name [INFO] [stdout] --> src/methods/set.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let setFormat = SetRequest { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `set_format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `setRequest` should have a snake case name [INFO] [stdout] --> src/methods/set.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let setRequest = tonic::Request::new(setFormat); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `set_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `setResponse` should have a snake case name [INFO] [stdout] --> src/methods/set.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let setResponse = client.set(setRequest).await?; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `set_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 38s [INFO] running `Command { std: "docker" "inspect" "fd08d462c6a5f05cba432346d11128f25af91846b4456d810e728a53fc804b9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd08d462c6a5f05cba432346d11128f25af91846b4456d810e728a53fc804b9e", kill_on_drop: false }` [INFO] [stdout] fd08d462c6a5f05cba432346d11128f25af91846b4456d810e728a53fc804b9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 09bcb25ae7e4dc96f6bc273145ef47220f7b293e58bd829e915e3c0014572dde [INFO] running `Command { std: "docker" "start" "-a" "09bcb25ae7e4dc96f6bc273145ef47220f7b293e58bd829e915e3c0014572dde", kill_on_drop: false }` [INFO] [stderr] Compiling shortDbBackend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `proto::basic_client::BasicClient` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use proto::basic_client::BasicClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tonic::transport::Channel` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tonic::transport::Channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tonic::transport::Channel` [INFO] [stdout] --> src/methods/get.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tonic::transport::Channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/methods/get.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | ) -> Result<(String), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - ) -> Result<(String), Box> { [INFO] [stdout] 12 + ) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tonic::transport::Channel` [INFO] [stdout] --> src/methods/set.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tonic::transport::Channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/methods/set.rs:10:65 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn set(longLink: String, shortCode: String) -> Result<(String), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - pub async fn set(longLink: String, shortCode: String) -> Result<(String), Box> { [INFO] [stdout] 10 + pub async fn set(longLink: String, shortCode: String) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `setResponse` [INFO] [stdout] --> src/methods/set.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let setResponse = client.set(setRequest).await?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_setResponse` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `actix_web::HttpResponseBuilder::header`: Replaced with `append_header((key, value))`. Will be removed in v5. [INFO] [stdout] --> src/main.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | .header("Location", url) // Redirect to the URL [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Get` is never constructed [INFO] [stdout] --> src/main.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Get { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getDataFromDb` should have a snake case name [INFO] [stdout] --> src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | async fn getDataFromDb(path: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_data_from_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setDataToDb` should have a snake case name [INFO] [stdout] --> src/main.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | async fn setDataToDb(data: web::Json) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `set_data_to_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `shortCode` should have a snake case name [INFO] [stdout] --> src/methods/get.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | shortCode: String, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `short_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getFormat` should have a snake case name [INFO] [stdout] --> src/methods/get.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let getFormat = GetRequest { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getRequest` should have a snake case name [INFO] [stdout] --> src/methods/get.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let getRequest = tonic::Request::new(getFormat); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getResponse` should have a snake case name [INFO] [stdout] --> src/methods/get.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let getResponse = client.get(getRequest).await?; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `longLink` should have a snake case name [INFO] [stdout] --> src/methods/set.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn set(longLink: String, shortCode: String) -> Result<(String), Box> { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `long_link` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `shortCode` should have a snake case name [INFO] [stdout] --> src/methods/set.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn set(longLink: String, shortCode: String) -> Result<(String), Box> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `short_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `setFormat` should have a snake case name [INFO] [stdout] --> src/methods/set.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let setFormat = SetRequest { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `set_format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `setRequest` should have a snake case name [INFO] [stdout] --> src/methods/set.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let setRequest = tonic::Request::new(setFormat); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `set_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `setResponse` should have a snake case name [INFO] [stdout] --> src/methods/set.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let setResponse = client.set(setRequest).await?; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `set_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.24s [INFO] running `Command { std: "docker" "inspect" "09bcb25ae7e4dc96f6bc273145ef47220f7b293e58bd829e915e3c0014572dde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09bcb25ae7e4dc96f6bc273145ef47220f7b293e58bd829e915e3c0014572dde", kill_on_drop: false }` [INFO] [stdout] 09bcb25ae7e4dc96f6bc273145ef47220f7b293e58bd829e915e3c0014572dde