[INFO] fetching crate taitan 0.1.5... [INFO] checking taitan-0.1.5 against master#eb10639928a2781cf0a12440007fbcc1e3a6888f for pr-127827-1 [INFO] extracting crate taitan 0.1.5 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate taitan 0.1.5 on toolchain eb10639928a2781cf0a12440007fbcc1e3a6888f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate taitan 0.1.5 [INFO] finished tweaking crates.io crate taitan 0.1.5 [INFO] tweaked toml for crates.io crate taitan 0.1.5 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 306 packages to latest compatible versions [INFO] [stderr] Adding addr2line v0.22.0 (latest: v0.24.1) [INFO] [stderr] Adding base64 v0.21.7 (latest: v0.22.1) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.6.0) [INFO] [stderr] Adding event-listener v2.5.3 (latest: v5.3.1) [INFO] [stderr] Adding foreign-types v0.3.2 (latest: v0.5.0) [INFO] [stderr] Adding foreign-types-shared v0.1.1 (latest: v0.3.1) [INFO] [stderr] Adding generic-array v0.14.7 (latest: v1.1.0) [INFO] [stderr] Adding gimli v0.29.0 (latest: v0.31.0) [INFO] [stderr] Adding h2 v0.3.26 (latest: v0.4.5) [INFO] [stderr] Adding hashbrown v0.12.3 (latest: v0.14.5) [INFO] [stderr] Adding hashlink v0.8.4 (latest: v0.9.1) [INFO] [stderr] Adding heck v0.4.1 (latest: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (latest: v0.4.0) [INFO] [stderr] Adding http v0.2.12 (latest: v1.1.0) [INFO] [stderr] Adding http-body v0.4.6 (latest: v1.0.1) [INFO] [stderr] Adding hyper v0.14.30 (latest: v1.4.1) [INFO] [stderr] Adding hyper-tls v0.5.0 (latest: v0.6.0) [INFO] [stderr] Adding idna v0.5.0 (latest: v1.0.2) [INFO] [stderr] Adding indexmap v1.9.3 (latest: v2.2.6) [INFO] [stderr] Adding libsqlite3-sys v0.27.0 (latest: v0.30.1) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (latest: v0.6.4) [INFO] [stderr] Adding matchit v0.7.3 (latest: v0.8.4) [INFO] [stderr] Adding nu-ansi-term v0.46.0 (latest: v0.50.1) [INFO] [stderr] Adding redox_syscall v0.4.1 (latest: v0.5.3) [INFO] [stderr] Adding reqwest v0.11.27 (latest: v0.12.5) [INFO] [stderr] Adding rustls v0.21.12 (latest: v0.23.12) [INFO] [stderr] Adding rustls-pemfile v1.0.4 (latest: v2.1.2) [INFO] [stderr] Adding rustls-webpki v0.101.7 (latest: v0.102.6) [INFO] [stderr] Adding sqlx v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding sqlx-core v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding sqlx-macros v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding sqlx-macros-core v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding sqlx-mysql v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding sqlx-postgres v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding sqlx-sqlite v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.72) [INFO] [stderr] Adding sync_wrapper v0.1.2 (latest: v1.0.1) [INFO] [stderr] Adding system-configuration v0.5.1 (latest: v0.6.0) [INFO] [stderr] Adding system-configuration-sys v0.5.0 (latest: v0.6.0) [INFO] [stderr] Adding tokio-rustls v0.24.1 (latest: v0.26.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0) [INFO] [stderr] Adding windows-core v0.52.0 (latest: v0.58.0) [INFO] [stderr] Adding windows-sys v0.48.0 (latest: v0.52.0) [INFO] [stderr] Adding windows-targets v0.48.5 (latest: v0.52.6) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.48.5 (latest: v0.52.6) [INFO] [stderr] Adding windows_aarch64_msvc v0.48.5 (latest: v0.52.6) [INFO] [stderr] Adding windows_i686_gnu v0.48.5 (latest: v0.52.6) [INFO] [stderr] Adding windows_i686_msvc v0.48.5 (latest: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnu v0.48.5 (latest: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.48.5 (latest: v0.52.6) [INFO] [stderr] Adding windows_x86_64_msvc v0.48.5 (latest: v0.52.6) [INFO] [stderr] Adding winreg v0.50.0 (latest: v0.52.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded path-absolutize v3.1.1 [INFO] [stderr] Downloaded path-dedot v3.1.1 [INFO] [stderr] Downloaded case v1.0.0 [INFO] [stderr] Downloaded typetag v0.2.16 [INFO] [stderr] Downloaded luna-orm-macro v0.3.6 [INFO] [stderr] Downloaded typetag-impl v0.2.16 [INFO] [stderr] Downloaded luna-orm-trait v0.3.6 [INFO] [stderr] Downloaded luna-orm v0.3.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b21cb783fc2a9418d8571ab8cd1a3d43a8e6b0f83e61ac23005366ab4f88676 [INFO] running `Command { std: "docker" "start" "-a" "1b21cb783fc2a9418d8571ab8cd1a3d43a8e6b0f83e61ac23005366ab4f88676", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b21cb783fc2a9418d8571ab8cd1a3d43a8e6b0f83e61ac23005366ab4f88676", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b21cb783fc2a9418d8571ab8cd1a3d43a8e6b0f83e61ac23005366ab4f88676", kill_on_drop: false }` [INFO] [stdout] 1b21cb783fc2a9418d8571ab8cd1a3d43a8e6b0f83e61ac23005366ab4f88676 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd5a3917d4d234081d2006065f411b6f49864954da843057c015d42e77b6c471 [INFO] running `Command { std: "docker" "start" "-a" "cd5a3917d4d234081d2006065f411b6f49864954da843057c015d42e77b6c471", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking tokio v1.39.1 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling typetag-impl v0.2.16 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling sqlformat v0.2.4 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling typeid v1.0.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling erased-serde v0.4.5 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling inventory v0.3.15 [INFO] [stderr] Compiling typetag v0.2.16 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling serde_with v3.9.0 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Checking rsa v0.9.6 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking path-dedot v3.1.1 [INFO] [stderr] Compiling case v1.0.0 [INFO] [stderr] Checking rustls-pki-types v1.7.0 [INFO] [stderr] Checking clap_builder v4.5.11 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking path-absolutize v3.1.1 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking pem v3.0.4 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking http-range-header v0.4.1 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking jsonwebtoken v9.3.0 [INFO] [stderr] Checking clap v4.5.11 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking sqlx-mysql v0.7.4 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking sqlx-sqlite v0.7.4 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking axum-server v0.6.0 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Checking luna-orm-trait v0.3.6 [INFO] [stderr] Compiling luna-orm-macro v0.3.6 [INFO] [stderr] Checking luna-orm v0.3.6 [INFO] [stderr] Checking taitan v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `StaticFilesConfig` [INFO] [stdout] --> src/application.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::config::{self, Args, StaticFilesConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/application.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | routing::{get, post}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::response::build_response` [INFO] [stdout] --> src/error.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::response::build_response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::http::StatusCode` [INFO] [stdout] --> src/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::http::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Html`, `Path`, `Redirect`, `Request`, `Router`, `get`, `http::StatusCode`, and `post` [INFO] [stdout] --> src/file.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | extract::{Multipart, Path, Request}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 6 | http::StatusCode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | response::{Html, Redirect}, [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] 8 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 9 | BoxError, Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::error::Category` [INFO] [stdout] --> src/file.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serde_json::error::Category; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::SeekFrom` [INFO] [stdout] --> src/file.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::SeekFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncSeekExt` [INFO] [stdout] --> src/file.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::io::{AsyncReadExt, AsyncSeekExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::info` [INFO] [stdout] --> src/file.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use tracing::info; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::error` [INFO] [stdout] --> src/response.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ApiFailure`, `ApiSuccessOpt`, and `ApiSuccess` [INFO] [stdout] --> src/result.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::response::{ApiFailure, ApiResponse, ApiSuccess, ApiSuccessOpt}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handler::HandlerWithoutStateExt`, `http::StatusCode`, and `routing::get` [INFO] [stdout] --> src/spa.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | extract::Request, handler::HandlerWithoutStateExt, http::StatusCode, routing::get, Router, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> src/spa.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/spa.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower::ServiceExt` [INFO] [stdout] --> src/spa.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tower::ServiceExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `trace::TraceLayer` [INFO] [stdout] --> src/spa.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | trace::TraceLayer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StaticFilesConfig` [INFO] [stdout] --> src/application.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::config::{self, Args, StaticFilesConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/application.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | routing::{get, post}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::response::build_response` [INFO] [stdout] --> src/error.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::response::build_response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::http::StatusCode` [INFO] [stdout] --> src/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::http::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Html`, `Path`, `Redirect`, `Request`, `Router`, `get`, `http::StatusCode`, and `post` [INFO] [stdout] --> src/file.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | extract::{Multipart, Path, Request}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 6 | http::StatusCode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | response::{Html, Redirect}, [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] 8 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 9 | BoxError, Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::error::Category` [INFO] [stdout] --> src/file.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serde_json::error::Category; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::SeekFrom` [INFO] [stdout] --> src/file.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::SeekFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncSeekExt` [INFO] [stdout] --> src/file.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::io::{AsyncReadExt, AsyncSeekExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::info` [INFO] [stdout] --> src/file.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use tracing::info; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::error` [INFO] [stdout] --> src/response.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ApiFailure`, `ApiSuccessOpt`, and `ApiSuccess` [INFO] [stdout] --> src/result.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::response::{ApiFailure, ApiResponse, ApiSuccess, ApiSuccessOpt}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `handler::HandlerWithoutStateExt`, `http::StatusCode`, and `routing::get` [INFO] [stdout] --> src/spa.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | extract::Request, handler::HandlerWithoutStateExt, http::StatusCode, routing::get, Router, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> src/spa.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/spa.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower::ServiceExt` [INFO] [stdout] --> src/spa.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tower::ServiceExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `trace::TraceLayer` [INFO] [stdout] --> src/spa.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | trace::TraceLayer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/file.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let file_name = if let Some(file_name) = field.file_name() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/file.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let file_name = if let Some(file_name) = field.file_name() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/file.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | fn check_etag(file_name: &str, etag: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `etag` [INFO] [stdout] --> src/file.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 55 | fn check_etag(file_name: &str, etag: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_etag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/file.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | fn save_etag(file_name: &str, etag: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `etag` [INFO] [stdout] --> src/file.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | fn save_etag(file_name: &str, etag: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_etag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MTU` is never used [INFO] [stdout] --> src/const_val.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const MTU: usize = 1450; // Byte [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_MULTIPART_FILE_SIZE` is never used [INFO] [stdout] --> src/const_val.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const MAX_MULTIPART_FILE_SIZE: u64 = 2048 * 1024; // 2MB [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FDB_MAX_KEY_SIZE` is never used [INFO] [stdout] --> src/const_val.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const FDB_MAX_KEY_SIZE: usize = 10_000; //Bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FDB_MAX_VAL_SIZE` is never used [INFO] [stdout] --> src/const_val.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const FDB_MAX_VAL_SIZE: usize = 100_000; //Bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FDB_MAX_TRX_SIZE` is never used [INFO] [stdout] --> src/const_val.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const FDB_MAX_TRX_SIZE: usize = 10_000_000; //Bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_origin_file_name` is never used [INFO] [stdout] --> src/file.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_origin_file_name(file_name: impl AsRef) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_etag` is never used [INFO] [stdout] --> src/file.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn check_etag(file_name: &str, etag: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_etag` is never used [INFO] [stdout] --> src/file.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn save_etag(file_name: &str, etag: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_to_file` is never used [INFO] [stdout] --> src/file.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | async fn save_to_file(dir: impl AsRef, mut multipart: Multipart) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_file` is never used [INFO] [stdout] --> src/file.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | async fn create_file(dir: impl AsRef, file_name: impl AsRef) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stream_to_file` is never used [INFO] [stdout] --> src/file.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | async fn stream_to_file(file: &mut File, stream: S) -> Result<()> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_spa_router` is never used [INFO] [stdout] --> src/spa.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn get_spa_router<'a, I>(dist: impl Into>, index: Option) -> Router [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/file.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | async fn list_files( [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 22 ~ fn list_files( [INFO] [stdout] 23 | owner: impl AsRef, [INFO] [stdout] 24 | category: impl AsRef<[T]>, [INFO] [stdout] 25 ~ ) -> impl std::future::Future>> + Send [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/file.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | async fn write_file(file_name: impl AsRef, data: Bytes) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 30 - async fn write_file(file_name: impl AsRef, data: Bytes) -> Result; [INFO] [stdout] 30 + fn write_file(file_name: impl AsRef, data: Bytes) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/file.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | async fn write_seg(file_name: impl AsRef, seg_no: u32, file_seg: Bytes) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 33 - async fn write_seg(file_name: impl AsRef, seg_no: u32, file_seg: Bytes) -> Result; [INFO] [stdout] 33 + fn write_seg(file_name: impl AsRef, seg_no: u32, file_seg: Bytes) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/file.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | async fn check_etag(file_name: impl AsRef, etag: impl AsRef) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 36 - async fn check_etag(file_name: impl AsRef, etag: impl AsRef) -> Result; [INFO] [stdout] 36 + fn check_etag(file_name: impl AsRef, etag: impl AsRef) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/file.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | fn check_etag(file_name: &str, etag: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `etag` [INFO] [stdout] --> src/file.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 55 | fn check_etag(file_name: &str, etag: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_etag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/file.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | fn save_etag(file_name: &str, etag: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `etag` [INFO] [stdout] --> src/file.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | fn save_etag(file_name: &str, etag: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_etag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MTU` is never used [INFO] [stdout] --> src/const_val.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const MTU: usize = 1450; // Byte [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_MULTIPART_FILE_SIZE` is never used [INFO] [stdout] --> src/const_val.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const MAX_MULTIPART_FILE_SIZE: u64 = 2048 * 1024; // 2MB [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FDB_MAX_KEY_SIZE` is never used [INFO] [stdout] --> src/const_val.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const FDB_MAX_KEY_SIZE: usize = 10_000; //Bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FDB_MAX_VAL_SIZE` is never used [INFO] [stdout] --> src/const_val.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const FDB_MAX_VAL_SIZE: usize = 100_000; //Bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FDB_MAX_TRX_SIZE` is never used [INFO] [stdout] --> src/const_val.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const FDB_MAX_TRX_SIZE: usize = 10_000_000; //Bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_origin_file_name` is never used [INFO] [stdout] --> src/file.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_origin_file_name(file_name: impl AsRef) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_etag` is never used [INFO] [stdout] --> src/file.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn check_etag(file_name: &str, etag: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_etag` is never used [INFO] [stdout] --> src/file.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn save_etag(file_name: &str, etag: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_to_file` is never used [INFO] [stdout] --> src/file.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | async fn save_to_file(dir: impl AsRef, mut multipart: Multipart) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_file` is never used [INFO] [stdout] --> src/file.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | async fn create_file(dir: impl AsRef, file_name: impl AsRef) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stream_to_file` is never used [INFO] [stdout] --> src/file.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | async fn stream_to_file(file: &mut File, stream: S) -> Result<()> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_spa_router` is never used [INFO] [stdout] --> src/spa.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn get_spa_router<'a, I>(dist: impl Into>, index: Option) -> Router [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/file.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | async fn list_files( [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 22 ~ fn list_files( [INFO] [stdout] 23 | owner: impl AsRef, [INFO] [stdout] 24 | category: impl AsRef<[T]>, [INFO] [stdout] 25 ~ ) -> impl std::future::Future>> + Send [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/file.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | async fn write_file(file_name: impl AsRef, data: Bytes) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 30 - async fn write_file(file_name: impl AsRef, data: Bytes) -> Result; [INFO] [stdout] 30 + fn write_file(file_name: impl AsRef, data: Bytes) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/file.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | async fn write_seg(file_name: impl AsRef, seg_no: u32, file_seg: Bytes) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 33 - async fn write_seg(file_name: impl AsRef, seg_no: u32, file_seg: Bytes) -> Result; [INFO] [stdout] 33 + fn write_seg(file_name: impl AsRef, seg_no: u32, file_seg: Bytes) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/file.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | async fn check_etag(file_name: impl AsRef, etag: impl AsRef) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 36 - async fn check_etag(file_name: impl AsRef, etag: impl AsRef) -> Result; [INFO] [stdout] 36 + fn check_etag(file_name: impl AsRef, etag: impl AsRef) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "cd5a3917d4d234081d2006065f411b6f49864954da843057c015d42e77b6c471", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd5a3917d4d234081d2006065f411b6f49864954da843057c015d42e77b6c471", kill_on_drop: false }` [INFO] [stdout] cd5a3917d4d234081d2006065f411b6f49864954da843057c015d42e77b6c471