[INFO] cloning repository https://github.com/Egidijus01/rust_api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Egidijus01/rust_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEgidijus01%2Frust_api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEgidijus01%2Frust_api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4962ba49f34abc9de0b4909880ea4125901adeeb [INFO] testing Egidijus01/rust_api against 1.85.0 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEgidijus01%2Frust_api" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Egidijus01/rust_api on toolchain 1.85.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Egidijus01/rust_api [INFO] finished tweaking git repo https://github.com/Egidijus01/rust_api [INFO] tweaked toml for git repo https://github.com/Egidijus01/rust_api written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Egidijus01/rust_api 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" "+1.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded worker-macros v0.0.10 [INFO] [stderr] Downloaded worker-kv v0.6.0 [INFO] [stderr] Downloaded chrono-tz-build v0.2.0 [INFO] [stderr] Downloaded worker-sys v0.0.10 [INFO] [stderr] Downloaded rust-embed-impl v6.8.1 [INFO] [stderr] Downloaded sqlx-macros v0.7.1 [INFO] [stderr] Downloaded rust-embed-utils v7.8.1 [INFO] [stderr] Downloaded errno v0.3.3 [INFO] [stderr] Downloaded pem v0.8.3 [INFO] [stderr] Downloaded simple_asn1 v0.4.1 [INFO] [stderr] Downloaded jsonwebtoken v7.2.0 [INFO] [stderr] Downloaded sqlx-macros-core v0.7.1 [INFO] [stderr] Downloaded rsa v0.9.2 [INFO] [stderr] Downloaded sqlx-sqlite v0.7.1 [INFO] [stderr] Downloaded sqlx-postgres v0.7.1 [INFO] [stderr] Downloaded sqlx-core v0.7.1 [INFO] [stderr] Downloaded worker v0.0.18 [INFO] [stderr] Downloaded sqlx v0.7.1 [INFO] [stderr] Downloaded utoipa-gen v3.5.0 [INFO] [stderr] Downloaded sqlx-mysql v0.7.1 [INFO] [stderr] Downloaded warp v0.3.5 [INFO] [stderr] Downloaded utoipa v3.5.0 [INFO] [stderr] Downloaded rustix v0.38.14 [INFO] [stderr] Downloaded chrono-tz v0.8.3 [INFO] [stderr] Downloaded linux-raw-sys v0.4.7 [INFO] [stderr] Downloaded rust-embed v6.8.1 [INFO] [stderr] Downloaded utoipa-swagger-ui v3.1.5 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2aadcdbe97da048487061095775263d3466fc0db10bcfdb158998feb9a945046 [INFO] running `Command { std: "docker" "start" "-a" "2aadcdbe97da048487061095775263d3466fc0db10bcfdb158998feb9a945046", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2aadcdbe97da048487061095775263d3466fc0db10bcfdb158998feb9a945046", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2aadcdbe97da048487061095775263d3466fc0db10bcfdb158998feb9a945046", kill_on_drop: false }` [INFO] [stdout] 2aadcdbe97da048487061095775263d3466fc0db10bcfdb158998feb9a945046 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99d752aaffcaa2d9d3b2cbb88cd9c66fa0a7defe1004c4554f43a32e03ebab4d [INFO] running `Command { std: "docker" "start" "-a" "99d752aaffcaa2d9d3b2cbb88cd9c66fa0a7defe1004c4554f43a32e03ebab4d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling memchr v2.6.3 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling ahash v0.8.3 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling cpufeatures v0.2.9 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.86 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling bumpalo v3.14.0 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling wasm-bindgen v0.2.86 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling openssl v0.10.57 [INFO] [stderr] Compiling sha2 v0.10.7 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling aho-corasick v1.1.1 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling socket2 v0.5.4 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc-catalog v2.2.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crc v3.0.1 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling openssl-sys v0.9.93 [INFO] [stderr] Compiling libsqlite3-sys v0.26.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling tokio v1.32.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling rustix v0.38.14 [INFO] [stderr] Compiling regex-automata v0.3.8 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling iana-time-zone v0.1.57 [INFO] [stderr] Compiling linux-raw-sys v0.4.7 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling walkdir v2.4.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling flate2 v1.0.27 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling fastrand v2.0.0 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling rust-embed-utils v7.8.1 [INFO] [stderr] Compiling futures-executor v0.3.28 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling shellexpand v2.1.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling base64 v0.21.4 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling regex v1.9.5 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.3 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling matchit v0.4.6 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling tempfile v3.8.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.86 [INFO] [stderr] Compiling chrono-tz-build v0.2.0 [INFO] [stderr] Compiling chrono-tz v0.8.3 [INFO] [stderr] Compiling utoipa-swagger-ui v3.1.5 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling utoipa-gen v3.5.0 [INFO] [stderr] Compiling rust-embed-impl v6.8.1 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.86 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.86 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling rust-embed v6.8.1 [INFO] [stderr] Compiling tungstenite v0.18.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling js-sys v0.3.63 [INFO] [stderr] Compiling futures v0.3.28 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.36 [INFO] [stderr] Compiling web-sys v0.3.63 [INFO] [stderr] Compiling tokio-util v0.7.9 [INFO] [stderr] Compiling tokio-tungstenite v0.18.0 [INFO] [stderr] Compiling worker-sys v0.0.10 [INFO] [stderr] Compiling h2 v0.3.21 [INFO] [stderr] Compiling wasm-streams v0.3.0 [INFO] [stderr] Compiling worker-macros v0.0.10 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling serde-wasm-bindgen v0.5.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling utoipa v3.5.0 [INFO] [stderr] Compiling worker-kv v0.6.0 [INFO] [stderr] Compiling sqlformat v0.2.2 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling worker v0.0.18 [INFO] [stderr] Compiling sqlx-core v0.7.1 [INFO] [stderr] Compiling sqlx-sqlite v0.7.1 [INFO] [stderr] Compiling warp v0.3.5 [INFO] [stderr] Compiling sqlx-macros-core v0.7.1 [INFO] [stderr] Compiling sqlx-macros v0.7.1 [INFO] [stderr] Compiling sqlx v0.7.1 [INFO] [stderr] Compiling rest_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::models::posts::Post` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::posts::Post; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::authors::Author` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::models::authors::Author; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/author_handler.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use base64::decode; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/author_handler.rs:175:27 [INFO] [stdout] | [INFO] [stdout] 175 | let decoded = decode(photo); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/author_handler.rs:257:27 [INFO] [stdout] | [INFO] [stdout] 257 | let decoded = decode(photo); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/posts_handler.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use base64::decode; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/posts_handler.rs:155:31 [INFO] [stdout] | [INFO] [stdout] 155 | let decoded = decode(file); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/posts_handler.rs:311:31 [INFO] [stdout] | [INFO] [stdout] 311 | let decoded = decode(file); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/handlers/posts_handler.rs:482:55 [INFO] [stdout] | [INFO] [stdout] 482 | let file_data_base64_single = base64::encode(&file_data); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/ws/ws_handler.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | while let Some(result) = client_ws_rcv.next().await { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_file_format` is never used [INFO] [stdout] --> src/Middleware/mime_check.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn check_file_format(data: &[u8]) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/handlers/author_handler.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | Io(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `FileError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 | Io(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/handlers/author_handler.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | struct MyError(sqlx::Error); [INFO] [stdout] | ------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `MyError` 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 `WrongCredentialsError` is never constructed [INFO] [stdout] --> src/handlers/user_handlers.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct WrongCredentialsError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client_id` is never read [INFO] [stdout] --> src/ws/clients.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Client { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 8 | pub client_id: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Client` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DB_URL` is never used [INFO] [stdout] --> src/swagger.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DB_URL: &str = "sqlite://sqlite.db"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecurityAddon` is never constructed [INFO] [stdout] --> src/swagger.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | struct SecurityAddon; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Middleware` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod Middleware; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `middleware` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 23s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.86 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "99d752aaffcaa2d9d3b2cbb88cd9c66fa0a7defe1004c4554f43a32e03ebab4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99d752aaffcaa2d9d3b2cbb88cd9c66fa0a7defe1004c4554f43a32e03ebab4d", kill_on_drop: false }` [INFO] [stdout] 99d752aaffcaa2d9d3b2cbb88cd9c66fa0a7defe1004c4554f43a32e03ebab4d [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bac56571de78ea9a9c1d71ce4365d08552e6904f9ad0e025e912d3f4ba0e1253 [INFO] running `Command { std: "docker" "start" "-a" "bac56571de78ea9a9c1d71ce4365d08552e6904f9ad0e025e912d3f4ba0e1253", kill_on_drop: false }` [INFO] [stderr] Compiling rest_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::models::posts::Post` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::posts::Post; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::authors::Author` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::models::authors::Author; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/author_handler.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use base64::decode; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/author_handler.rs:175:27 [INFO] [stdout] | [INFO] [stdout] 175 | let decoded = decode(photo); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/author_handler.rs:257:27 [INFO] [stdout] | [INFO] [stdout] 257 | let decoded = decode(photo); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/posts_handler.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use base64::decode; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/posts_handler.rs:155:31 [INFO] [stdout] | [INFO] [stdout] 155 | let decoded = decode(file); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/handlers/posts_handler.rs:311:31 [INFO] [stdout] | [INFO] [stdout] 311 | let decoded = decode(file); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/handlers/posts_handler.rs:482:55 [INFO] [stdout] | [INFO] [stdout] 482 | let file_data_base64_single = base64::encode(&file_data); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/ws/ws_handler.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | while let Some(result) = client_ws_rcv.next().await { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_file_format` is never used [INFO] [stdout] --> src/Middleware/mime_check.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn check_file_format(data: &[u8]) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/handlers/author_handler.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | Io(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `FileError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 | Io(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/handlers/author_handler.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | struct MyError(sqlx::Error); [INFO] [stdout] | ------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `MyError` 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 `WrongCredentialsError` is never constructed [INFO] [stdout] --> src/handlers/user_handlers.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct WrongCredentialsError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client_id` is never read [INFO] [stdout] --> src/ws/clients.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Client { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 8 | pub client_id: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Client` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DB_URL` is never used [INFO] [stdout] --> src/swagger.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DB_URL: &str = "sqlite://sqlite.db"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecurityAddon` is never constructed [INFO] [stdout] --> src/swagger.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | struct SecurityAddon; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Middleware` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod Middleware; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `middleware` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.93s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.86 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "bac56571de78ea9a9c1d71ce4365d08552e6904f9ad0e025e912d3f4ba0e1253", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bac56571de78ea9a9c1d71ce4365d08552e6904f9ad0e025e912d3f4ba0e1253", kill_on_drop: false }` [INFO] [stdout] bac56571de78ea9a9c1d71ce4365d08552e6904f9ad0e025e912d3f4ba0e1253 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d8bd5ff44f781becf8dc64107db20748410ec7159a8c636f9f0771eecf2717ca [INFO] running `Command { std: "docker" "start" "-a" "d8bd5ff44f781becf8dc64107db20748410ec7159a8c636f9f0771eecf2717ca", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::models::posts::Post` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::models::posts::Post; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::models::authors::Author` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::models::authors::Author; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stderr] --> src/handlers/author_handler.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use base64::decode; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stderr] --> src/handlers/author_handler.rs:175:27 [INFO] [stderr] | [INFO] [stderr] 175 | let decoded = decode(photo); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stderr] --> src/handlers/author_handler.rs:257:27 [INFO] [stderr] | [INFO] [stderr] 257 | let decoded = decode(photo); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stderr] --> src/handlers/posts_handler.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | use base64::decode; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stderr] --> src/handlers/posts_handler.rs:155:31 [INFO] [stderr] | [INFO] [stderr] 155 | let decoded = decode(file); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stderr] --> src/handlers/posts_handler.rs:311:31 [INFO] [stderr] | [INFO] [stderr] 311 | let decoded = decode(file); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stderr] --> src/handlers/posts_handler.rs:482:55 [INFO] [stderr] | [INFO] [stderr] 482 | let file_data_base64_single = base64::encode(&file_data); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/ws/ws_handler.rs:32:20 [INFO] [stderr] | [INFO] [stderr] 32 | while let Some(result) = client_ws_rcv.next().await { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `check_file_format` is never used [INFO] [stderr] --> src/Middleware/mime_check.rs:86:8 [INFO] [stderr] | [INFO] [stderr] 86 | pub fn check_file_format(data: &[u8]) -> Option<&str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/handlers/author_handler.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 31 | Io(io::Error), [INFO] [stderr] | -- ^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `FileError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 31 | Io(()), [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/handlers/author_handler.rs:43:16 [INFO] [stderr] | [INFO] [stderr] 43 | struct MyError(sqlx::Error); [INFO] [stderr] | ------- ^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing this field [INFO] [stderr] = note: `MyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `WrongCredentialsError` is never constructed [INFO] [stderr] --> src/handlers/user_handlers.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | struct WrongCredentialsError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `client_id` is never read [INFO] [stderr] --> src/ws/clients.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct Client { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] 8 | pub client_id: String, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Client` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: constant `DB_URL` is never used [INFO] [stderr] --> src/swagger.rs:9:7 [INFO] [stderr] | [INFO] [stderr] 9 | const DB_URL: &str = "sqlite://sqlite.db"; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SecurityAddon` is never constructed [INFO] [stderr] --> src/swagger.rs:45:16 [INFO] [stderr] | [INFO] [stderr] 45 | struct SecurityAddon; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: module `Middleware` should have a snake case name [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | mod Middleware; [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `middleware` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rest_api` (bin "rest_api" test) generated 18 warnings (run `cargo fix --bin "rest_api" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.86 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rest_api-c68d2d9f15627060) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d8bd5ff44f781becf8dc64107db20748410ec7159a8c636f9f0771eecf2717ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8bd5ff44f781becf8dc64107db20748410ec7159a8c636f9f0771eecf2717ca", kill_on_drop: false }` [INFO] [stdout] d8bd5ff44f781becf8dc64107db20748410ec7159a8c636f9f0771eecf2717ca