[INFO] cloning repository https://github.com/SyedHzf/Basic-API
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SyedHzf/Basic-API" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSyedHzf%2FBasic-API", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSyedHzf%2FBasic-API'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 2a899ac01eeb4f0da371f486e4305f5dcc2d9baf
[INFO] checking SyedHzf/Basic-API against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSyedHzf%2FBasic-API" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/SyedHzf/Basic-API
[INFO] finished tweaking git repo https://github.com/SyedHzf/Basic-API
[INFO] tweaked toml for git repo https://github.com/SyedHzf/Basic-API written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/SyedHzf/Basic-API on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/SyedHzf/Basic-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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4873558cdb4334d760f744926e1ffacb8c57c4b0078a700e9b1a0d8749ee8ce2
[INFO] running `Command { std: "docker" "start" "-a" "4873558cdb4334d760f744926e1ffacb8c57c4b0078a700e9b1a0d8749ee8ce2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4873558cdb4334d760f744926e1ffacb8c57c4b0078a700e9b1a0d8749ee8ce2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4873558cdb4334d760f744926e1ffacb8c57c4b0078a700e9b1a0d8749ee8ce2", kill_on_drop: false }`
[INFO] [stdout] 4873558cdb4334d760f744926e1ffacb8c57c4b0078a700e9b1a0d8749ee8ce2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1bea0399598348609f1b66364fdc01caa92d00dbc1e6da939df7893d36214cbd
[INFO] running `Command { std: "docker" "start" "-a" "1bea0399598348609f1b66364fdc01caa92d00dbc1e6da939df7893d36214cbd", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.103
[INFO] [stderr]    Compiling version_check v0.9.3
[INFO] [stderr]    Compiling proc-macro2 v1.0.29
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling syn v1.0.77
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]     Checking bytes v1.1.0
[INFO] [stderr]     Checking pin-project-lite v0.2.7
[INFO] [stderr]    Compiling futures-core v0.3.17
[INFO] [stderr]    Compiling typenum v1.14.0
[INFO] [stderr]     Checking instant v0.1.11
[INFO] [stderr]     Checking smallvec v1.7.0
[INFO] [stderr]     Checking lock_api v0.4.5
[INFO] [stderr]    Compiling tokio v1.12.0
[INFO] [stderr]     Checking futures-sink v0.3.17
[INFO] [stderr]    Compiling futures-task v0.3.17
[INFO] [stderr]    Compiling futures-util v0.3.17
[INFO] [stderr]    Compiling httparse v1.5.1
[INFO] [stderr]     Checking once_cell v1.8.0
[INFO] [stderr]     Checking matches v0.1.9
[INFO] [stderr]     Checking tinyvec v1.5.0
[INFO] [stderr]    Compiling serde_derive v1.0.130
[INFO] [stderr]     Checking slab v0.4.4
[INFO] [stderr]     Checking form_urlencoded v1.0.1
[INFO] [stderr]     Checking http v0.2.5
[INFO] [stderr]    Compiling indexmap v1.7.0
[INFO] [stderr]     Checking unicode-bidi v0.3.6
[INFO] [stderr]    Compiling generic-array v0.14.4
[INFO] [stderr]    Compiling unicase v2.6.0
[INFO] [stderr]    Compiling futures-channel v0.3.17
[INFO] [stderr]     Checking cpufeatures v0.2.1
[INFO] [stderr]    Compiling ryu v1.0.5
[INFO] [stderr]    Compiling serde v1.0.130
[INFO] [stderr]     Checking tracing-core v0.1.20
[INFO] [stderr]     Checking mime v0.3.16
[INFO] [stderr]     Checking base64 v0.13.0
[INFO] [stderr]     Checking hashbrown v0.11.2
[INFO] [stderr]     Checking aho-corasick v0.7.18
[INFO] [stderr]     Checking input_buffer v0.4.0
[INFO] [stderr]     Checking regex-syntax v0.6.25
[INFO] [stderr]     Checking unicode-normalization v0.1.19
[INFO] [stderr]     Checking safemem v0.3.3
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]     Checking try-lock v0.2.3
[INFO] [stderr]    Compiling serde_json v1.0.68
[INFO] [stderr]     Checking parking_lot_core v0.8.5
[INFO] [stderr]     Checking getrandom v0.2.3
[INFO] [stderr]     Checking mio v0.7.13
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking signal-hook-registry v1.4.0
[INFO] [stderr]     Checking getrandom v0.1.16
[INFO] [stderr]    Compiling mime_guess v2.0.3
[INFO] [stderr]     Checking tracing v0.1.28
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking rand_core v0.6.3
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking want v0.3.0
[INFO] [stderr]     Checking time v0.1.43
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking socket2 v0.4.2
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking buf_redux v0.8.4
[INFO] [stderr]     Checking twoway v0.1.8
[INFO] [stderr]     Checking futures-io v0.3.17
[INFO] [stderr]     Checking termcolor v1.1.2
[INFO] [stderr]     Checking headers-core v0.2.0
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking rand v0.8.4
[INFO] [stderr]     Checking http-body v0.4.3
[INFO] [stderr]     Checking tower-service v0.3.1
[INFO] [stderr]     Checking httpdate v1.0.1
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]     Checking sha-1 v0.9.8
[INFO] [stderr]     Checking headers v0.3.4
[INFO] [stderr]     Checking idna v0.2.3
[INFO] [stderr]     Checking tempfile v3.2.0
[INFO] [stderr]     Checking multipart v0.17.1
[INFO] [stderr]     Checking url v2.2.2
[INFO] [stderr]     Checking futures v0.3.17
[INFO] [stderr]     Checking regex v1.5.4
[INFO] [stderr]     Checking tungstenite v0.12.0
[INFO] [stderr]     Checking env_logger v0.7.1
[INFO] [stderr]     Checking pretty_env_logger v0.4.0
[INFO] [stderr]    Compiling tokio-macros v1.4.1
[INFO] [stderr]    Compiling pin-project-internal v1.0.8
[INFO] [stderr]     Checking pin-project v1.0.8
[INFO] [stderr]     Checking tokio-util v0.6.8
[INFO] [stderr]     Checking tokio-stream v0.1.7
[INFO] [stderr]     Checking tokio-tungstenite v0.13.0
[INFO] [stderr]     Checking h2 v0.3.5
[INFO] [stderr]     Checking serde_urlencoded v0.7.0
[INFO] [stderr]     Checking hyper v0.14.13
[INFO] [stderr]     Checking warp v0.3.1
[INFO] [stderr]     Checking basic-api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::sync::Arc;
[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:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::sync::Arc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Files` should have a snake case name
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod Files;
[INFO] [stdout]   |     ^^^^^ help: convert the identifier to snake case (notice the capitalization): `files`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Database` should have a snake case name
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | mod Database;
[INFO] [stdout]   |     ^^^^^^^^ help: convert the identifier to snake case: `database`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:6:99
[INFO] [stdout]    |
[INFO] [stdout]  6 |       pub async fn create_file(create: FileCreator, db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ___________________________________________________________________________________________________^
[INFO] [stdout]  7 | |         let mut file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 19 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:6:99
[INFO] [stdout]    |
[INFO] [stdout]  6 |       pub async fn create_file(create: FileCreator, db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ___________________________________________________________________________________________________^
[INFO] [stdout]  7 | |         let mut file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 19 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 | /         if file.file_name == create.file_name {
[INFO] [stdout] 11 | |                 return Ok(StatusCode::BAD_REQUEST); }
[INFO] [stdout] 12 | |         // No existing , so insert and return `201 Created`.
[INFO] [stdout] 13 | |         else{
[INFO] [stdout] ...  |
[INFO] [stdout] 17 | |             Ok(StatusCode::CREATED)
[INFO] [stdout] 18 | |     } 
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:11:24
[INFO] [stdout]    |
[INFO] [stdout] 11 |                 return Ok(StatusCode::BAD_REQUEST); }
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |           else{
[INFO] [stdout]    |  _____________^
[INFO] [stdout] 14 | |             file.file_name = create.file_name;
[INFO] [stdout] 15 | |             file.content = create.content;
[INFO] [stdout] 16 | |             file.extension = create.extension;
[INFO] [stdout] 17 | |             Ok(StatusCode::CREATED)
[INFO] [stdout] 18 | |     } 
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:17:13
[INFO] [stdout]    |
[INFO] [stdout] 17 |             Ok(StatusCode::CREATED)
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<warp::reply::Json, Infallible>
[INFO] [stdout]   --> src/Files.rs:22:75
[INFO] [stdout]    |
[INFO] [stdout] 22 |       pub async fn get_file(db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ___________________________________________________________________________^
[INFO] [stdout] 23 | |         // Trying to fetch the struct 
[INFO] [stdout] 24 | |
[INFO] [stdout] 25 | |         let file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 31 | |         Ok(warp::reply::json(&todos))
[INFO] [stdout] 32 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<warp::reply::Json, Infallible>
[INFO] [stdout]   --> src/Files.rs:22:75
[INFO] [stdout]    |
[INFO] [stdout] 22 |       pub async fn get_file(db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ___________________________________________________________________________^
[INFO] [stdout] 23 | |         // Trying to fetch the struct 
[INFO] [stdout] 24 | |
[INFO] [stdout] 25 | |         let file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 31 | |         Ok(warp::reply::json(&todos))
[INFO] [stdout] 32 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<warp::reply::Json, Infallible>
[INFO] [stdout]   --> src/Files.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         Ok(warp::reply::json(&todos))
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:35:112
[INFO] [stdout]    |
[INFO] [stdout] 35 |   pub async fn update_file(filename: String,update: FileCreator,db: Db,) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ________________________________________________________________________________________________________________^
[INFO] [stdout] 36 | |     let mut file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 46 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:35:112
[INFO] [stdout]    |
[INFO] [stdout] 35 |   pub async fn update_file(filename: String,update: FileCreator,db: Db,) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ________________________________________________________________________________________________________________^
[INFO] [stdout] 36 | |     let mut file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 46 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | /     if file.file_name == filename {
[INFO] [stdout] 40 | |             *file = update;
[INFO] [stdout] 41 | |             return Ok(StatusCode::OK);
[INFO] [stdout] 42 | |     }// otherwise not found error
[INFO] [stdout] 43 | |     else{
[INFO] [stdout] 44 | |               Ok(StatusCode::NOT_FOUND)
[INFO] [stdout] 45 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:41:20
[INFO] [stdout]    |
[INFO] [stdout] 41 |             return Ok(StatusCode::OK);
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |       else{
[INFO] [stdout]    |  _________^
[INFO] [stdout] 44 | |               Ok(StatusCode::NOT_FOUND)
[INFO] [stdout] 45 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:44:15
[INFO] [stdout]    |
[INFO] [stdout] 44 |               Ok(StatusCode::NOT_FOUND)
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:49:90
[INFO] [stdout]    |
[INFO] [stdout] 49 |   pub async fn delete_file(filename:String,db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  __________________________________________________________________________________________^
[INFO] [stdout] 50 | |     let mut file  = db.lock().await;
[INFO] [stdout] 51 | | // if file name match it will be deleted
[INFO] [stdout] 52 | |     if file.file_name == filename {
[INFO] [stdout] ...  |
[INFO] [stdout] 65 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:49:90
[INFO] [stdout]    |
[INFO] [stdout] 49 |   pub async fn delete_file(filename:String,db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  __________________________________________________________________________________________^
[INFO] [stdout] 50 | |     let mut file  = db.lock().await;
[INFO] [stdout] 51 | | // if file name match it will be deleted
[INFO] [stdout] 52 | |     if file.file_name == filename {
[INFO] [stdout] ...  |
[INFO] [stdout] 65 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | /     if file.file_name == filename {
[INFO] [stdout] 53 | |         *file = FileCreator{
[INFO] [stdout] 54 | |             
[INFO] [stdout] 55 | |             file_name: String::from(""),
[INFO] [stdout] ...  |
[INFO] [stdout] 63 | |         Ok(StatusCode::NOT_FOUND)
[INFO] [stdout] 64 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:52:35
[INFO] [stdout]    |
[INFO] [stdout] 52 |       if file.file_name == filename {
[INFO] [stdout]    |  ___________________________________^
[INFO] [stdout] 53 | |         *file = FileCreator{
[INFO] [stdout] 54 | |             
[INFO] [stdout] 55 | |             file_name: String::from(""),
[INFO] [stdout] ...  |
[INFO] [stdout] 59 | |         Ok(StatusCode::NO_CONTENT)
[INFO] [stdout] 60 | |     } //otherwie notefound status will rise 
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |         Ok(StatusCode::NO_CONTENT)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:61:10
[INFO] [stdout]    |
[INFO] [stdout] 61 |       else {
[INFO] [stdout]    |  __________^
[INFO] [stdout] 62 | | //
[INFO] [stdout] 63 | |         Ok(StatusCode::NOT_FOUND)
[INFO] [stdout] 64 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |         Ok(StatusCode::NOT_FOUND)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `basic-api` (bin "basic-api" test) due to 22 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: module `Files` should have a snake case name
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod Files;
[INFO] [stdout]   |     ^^^^^ help: convert the identifier to snake case (notice the capitalization): `files`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Database` should have a snake case name
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | mod Database;
[INFO] [stdout]   |     ^^^^^^^^ help: convert the identifier to snake case: `database`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:6:99
[INFO] [stdout]    |
[INFO] [stdout]  6 |       pub async fn create_file(create: FileCreator, db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ___________________________________________________________________________________________________^
[INFO] [stdout]  7 | |         let mut file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 19 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:6:99
[INFO] [stdout]    |
[INFO] [stdout]  6 |       pub async fn create_file(create: FileCreator, db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ___________________________________________________________________________________________________^
[INFO] [stdout]  7 | |         let mut file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 19 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 | /         if file.file_name == create.file_name {
[INFO] [stdout] 11 | |                 return Ok(StatusCode::BAD_REQUEST); }
[INFO] [stdout] 12 | |         // No existing , so insert and return `201 Created`.
[INFO] [stdout] 13 | |         else{
[INFO] [stdout] ...  |
[INFO] [stdout] 17 | |             Ok(StatusCode::CREATED)
[INFO] [stdout] 18 | |     } 
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:11:24
[INFO] [stdout]    |
[INFO] [stdout] 11 |                 return Ok(StatusCode::BAD_REQUEST); }
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |           else{
[INFO] [stdout]    |  _____________^
[INFO] [stdout] 14 | |             file.file_name = create.file_name;
[INFO] [stdout] 15 | |             file.content = create.content;
[INFO] [stdout] 16 | |             file.extension = create.extension;
[INFO] [stdout] 17 | |             Ok(StatusCode::CREATED)
[INFO] [stdout] 18 | |     } 
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:17:13
[INFO] [stdout]    |
[INFO] [stdout] 17 |             Ok(StatusCode::CREATED)
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Json, Infallible>
[INFO] [stdout]   --> src/Files.rs:22:75
[INFO] [stdout]    |
[INFO] [stdout] 22 |       pub async fn get_file(db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ___________________________________________________________________________^
[INFO] [stdout] 23 | |         // Trying to fetch the struct 
[INFO] [stdout] 24 | |
[INFO] [stdout] 25 | |         let file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 31 | |         Ok(warp::reply::json(&todos))
[INFO] [stdout] 32 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Json, Infallible>
[INFO] [stdout]   --> src/Files.rs:22:75
[INFO] [stdout]    |
[INFO] [stdout] 22 |       pub async fn get_file(db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ___________________________________________________________________________^
[INFO] [stdout] 23 | |         // Trying to fetch the struct 
[INFO] [stdout] 24 | |
[INFO] [stdout] 25 | |         let file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 31 | |         Ok(warp::reply::json(&todos))
[INFO] [stdout] 32 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Json, Infallible>
[INFO] [stdout]   --> src/Files.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         Ok(warp::reply::json(&todos))
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:35:112
[INFO] [stdout]    |
[INFO] [stdout] 35 |   pub async fn update_file(filename: String,update: FileCreator,db: Db,) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ________________________________________________________________________________________________________________^
[INFO] [stdout] 36 | |     let mut file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 46 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:35:112
[INFO] [stdout]    |
[INFO] [stdout] 35 |   pub async fn update_file(filename: String,update: FileCreator,db: Db,) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  ________________________________________________________________________________________________________________^
[INFO] [stdout] 36 | |     let mut file = db.lock().await;
[INFO] [stdout] ...  |
[INFO] [stdout] 46 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | /     if file.file_name == filename {
[INFO] [stdout] 40 | |             *file = update;
[INFO] [stdout] 41 | |             return Ok(StatusCode::OK);
[INFO] [stdout] 42 | |     }// otherwise not found error
[INFO] [stdout] 43 | |     else{
[INFO] [stdout] 44 | |               Ok(StatusCode::NOT_FOUND)
[INFO] [stdout] 45 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:41:20
[INFO] [stdout]    |
[INFO] [stdout] 41 |             return Ok(StatusCode::OK);
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |       else{
[INFO] [stdout]    |  _________^
[INFO] [stdout] 44 | |               Ok(StatusCode::NOT_FOUND)
[INFO] [stdout] 45 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:44:15
[INFO] [stdout]    |
[INFO] [stdout] 44 |               Ok(StatusCode::NOT_FOUND)
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:49:90
[INFO] [stdout]    |
[INFO] [stdout] 49 |   pub async fn delete_file(filename:String,db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  __________________________________________________________________________________________^
[INFO] [stdout] 50 | |     let mut file  = db.lock().await;
[INFO] [stdout] 51 | | // if file name match it will be deleted
[INFO] [stdout] 52 | |     if file.file_name == filename {
[INFO] [stdout] ...  |
[INFO] [stdout] 65 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:49:90
[INFO] [stdout]    |
[INFO] [stdout] 49 |   pub async fn delete_file(filename:String,db: Db) -> Result<impl warp::Reply, Infallible> {
[INFO] [stdout]    |  __________________________________________________________________________________________^
[INFO] [stdout] 50 | |     let mut file  = db.lock().await;
[INFO] [stdout] 51 | | // if file name match it will be deleted
[INFO] [stdout] 52 | |     if file.file_name == filename {
[INFO] [stdout] ...  |
[INFO] [stdout] 65 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | /     if file.file_name == filename {
[INFO] [stdout] 53 | |         *file = FileCreator{
[INFO] [stdout] 54 | |             
[INFO] [stdout] 55 | |             file_name: String::from(""),
[INFO] [stdout] ...  |
[INFO] [stdout] 63 | |         Ok(StatusCode::NOT_FOUND)
[INFO] [stdout] 64 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:52:35
[INFO] [stdout]    |
[INFO] [stdout] 52 |       if file.file_name == filename {
[INFO] [stdout]    |  ___________________________________^
[INFO] [stdout] 53 | |         *file = FileCreator{
[INFO] [stdout] 54 | |             
[INFO] [stdout] 55 | |             file_name: String::from(""),
[INFO] [stdout] ...  |
[INFO] [stdout] 59 | |         Ok(StatusCode::NO_CONTENT)
[INFO] [stdout] 60 | |     } //otherwie notefound status will rise 
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |         Ok(StatusCode::NO_CONTENT)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:61:10
[INFO] [stdout]    |
[INFO] [stdout] 61 |       else {
[INFO] [stdout]    |  __________^
[INFO] [stdout] 62 | | //
[INFO] [stdout] 63 | |         Ok(StatusCode::NOT_FOUND)
[INFO] [stdout] 64 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<StatusCode, Infallible>
[INFO] [stdout]   --> src/Files.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |         Ok(StatusCode::NOT_FOUND)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `basic-api` (bin "basic-api") due to 22 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "1bea0399598348609f1b66364fdc01caa92d00dbc1e6da939df7893d36214cbd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1bea0399598348609f1b66364fdc01caa92d00dbc1e6da939df7893d36214cbd", kill_on_drop: false }`
[INFO] [stdout] 1bea0399598348609f1b66364fdc01caa92d00dbc1e6da939df7893d36214cbd
