[INFO] cloning repository https://github.com/lmk6/LearningRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lmk6/LearningRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flmk6%2FLearningRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flmk6%2FLearningRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1b8007d9f05775944d3b72fba8549645fd5086cf [INFO] testing lmk6/LearningRust against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flmk6%2FLearningRust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lmk6/LearningRust [INFO] finished tweaking git repo https://github.com/lmk6/LearningRust [INFO] tweaked toml for git repo https://github.com/lmk6/LearningRust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lmk6/LearningRust on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lmk6/LearningRust 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sval_ref v2.13.0 [INFO] [stderr] Downloaded sval_buffer v2.13.0 [INFO] [stderr] Downloaded sval_serde v2.13.0 [INFO] [stderr] Downloaded sval v2.13.0 [INFO] [stderr] Downloaded value-bag-sval2 v1.9.0 [INFO] [stderr] Downloaded route-recognizer v0.2.0 [INFO] [stderr] Downloaded sval_json v2.13.0 [INFO] [stderr] Downloaded value-bag-serde1 v1.9.0 [INFO] [stderr] Downloaded hmac v0.10.1 [INFO] [stderr] Downloaded async-session v2.0.1 [INFO] [stderr] Downloaded async-dup v1.2.4 [INFO] [stderr] Downloaded async-signal v0.2.6 [INFO] [stderr] Downloaded async-h1 v2.3.4 [INFO] [stderr] Downloaded http-client v6.5.3 [INFO] [stderr] Downloaded serde_qs v0.8.5 [INFO] [stderr] Downloaded cookie v0.14.4 [INFO] [stderr] Downloaded serde_fmt v1.0.3 [INFO] [stderr] Downloaded aes-gcm v0.8.0 [INFO] [stderr] Downloaded blake3 v0.3.8 [INFO] [stderr] Downloaded tide v0.16.0 [INFO] [stderr] Downloaded hkdf v0.10.0 [INFO] [stderr] Downloaded const_fn v0.4.10 [INFO] [stderr] Downloaded blocking v1.6.0 [INFO] [stderr] Downloaded ctr v0.6.0 [INFO] [stderr] Downloaded polyval v0.4.5 [INFO] [stderr] Downloaded ghash v0.3.1 [INFO] [stderr] Downloaded crypto-mac v0.10.1 [INFO] [stderr] Downloaded infer v0.2.3 [INFO] [stderr] Downloaded sval_fmt v2.13.0 [INFO] [stderr] Downloaded async-sse v4.1.0 [INFO] [stderr] Downloaded piper v0.2.2 [INFO] [stderr] Downloaded sval_dynamic v2.13.0 [INFO] [stderr] Downloaded sval_nested v2.13.0 [INFO] [stderr] Downloaded femme v2.2.1 [INFO] [stderr] Downloaded http-types v2.12.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de5ccb86d6f9a3778e50d7788e93185961359f3af6ee5a40440be8a5c9248ec1 [INFO] running `Command { std: "docker" "start" "-a" "de5ccb86d6f9a3778e50d7788e93185961359f3af6ee5a40440be8a5c9248ec1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de5ccb86d6f9a3778e50d7788e93185961359f3af6ee5a40440be8a5c9248ec1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de5ccb86d6f9a3778e50d7788e93185961359f3af6ee5a40440be8a5c9248ec1", kill_on_drop: false }` [INFO] [stdout] de5ccb86d6f9a3778e50d7788e93185961359f3af6ee5a40440be8a5c9248ec1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7db0d44234f0639675fe9ba000f65b9047debc1d01dbe9d7c532e0f6c9607065 [INFO] running `Command { std: "docker" "start" "-a" "7db0d44234f0639675fe9ba000f65b9047debc1d01dbe9d7c532e0f6c9607065", kill_on_drop: false }` [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling serde v1.0.202 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling syn v2.0.64 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling piper v0.2.2 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Compiling const_fn v0.4.10 [INFO] [stderr] Compiling cpuid-bool v0.2.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling blake3 v0.3.8 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling event-listener v4.0.3 [INFO] [stderr] Compiling event-listener v5.3.0 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling async-executor v1.11.0 [INFO] [stderr] Compiling event-listener v3.1.0 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling libsqlite3-sys v0.28.0 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling event-listener-strategy v0.4.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling route-recognizer v0.2.0 [INFO] [stderr] Compiling async-lock v3.3.0 [INFO] [stderr] Compiling blocking v1.6.0 [INFO] [stderr] Compiling async-dup v1.2.4 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling serde_derive v1.0.202 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling polling v3.7.0 [INFO] [stderr] Compiling async-io v2.3.2 [INFO] [stderr] Compiling async-signal v0.2.6 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling serde_fmt v1.0.3 [INFO] [stderr] Compiling erased-serde v0.4.5 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling serde_qs v0.8.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling value-bag-serde1 v1.9.0 [INFO] [stderr] Compiling value-bag v1.9.0 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling femme v2.2.1 [INFO] [stderr] Compiling async-process v1.8.1 [INFO] [stderr] Compiling async-std v1.12.0 [INFO] [stderr] Compiling rusqlite v0.31.0 [INFO] [stderr] Compiling async-session v2.0.1 [INFO] [stderr] Compiling async-h1 v2.3.4 [INFO] [stderr] Compiling http-client v6.5.3 [INFO] [stderr] Compiling async-sse v4.1.0 [INFO] [stderr] Compiling tide v0.16.0 [INFO] [stderr] Compiling learningRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn get_entries(mut req: Request>) -> tide::Result { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `body_json` found for struct `tide::Response` in the current scope [INFO] [stdout] --> src/handlers.rs:32:57 [INFO] [stdout] | [INFO] [stdout] 32 | Some(entry) => Ok(Response::new(StatusCode::Ok).body_json(&entry)?), [INFO] [stdout] | ^^^^^^^^^ method not found in `tide::Response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn delete_entry(mut req: Request>) -> tide::Result { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `body_string` found for struct `tide::Response` in the current scope [INFO] [stdout] --> src/handlers.rs:53:57 [INFO] [stdout] | [INFO] [stdout] 53 | return Ok(Response::new(StatusCode::BadRequest).body_string("Name in URL does not match")) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `tide::Response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `RefCell` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | let mut app = tide::with_state(state); [INFO] [stdout] | ---------------- ^^^^^ `RefCell` cannot be shared between threads safely [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: within `Database`, the trait `Sync` is not implemented for `RefCell` [INFO] [stdout] = note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead [INFO] [stdout] note: required because it appears within the type `rusqlite::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rusqlite-0.31.0/src/lib.rs:377:12 [INFO] [stdout] | [INFO] [stdout] 377 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `Database` [INFO] [stdout] --> src/db_controller.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Database { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `std::marker::Send` [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/main.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: required by a bound in `with_state` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tide-0.16.0/src/lib.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn with_state(state: State) -> server::Server [INFO] [stdout] | ---------- required by a bound in this function [INFO] [stdout] 152 | where [INFO] [stdout] 153 | State: Clone + Send + Sync + 'static, [INFO] [stdout] | ^^^^ required by this bound in `with_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `RefCell, rusqlite::raw_statement::RawStatement>>` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | let mut app = tide::with_state(state); [INFO] [stdout] | ---------------- ^^^^^ `RefCell, rusqlite::raw_statement::RawStatement>>` cannot be shared between threads safely [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: within `Database`, the trait `Sync` is not implemented for `RefCell, rusqlite::raw_statement::RawStatement>>` [INFO] [stdout] = note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead [INFO] [stdout] note: required because it appears within the type `rusqlite::cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rusqlite-0.31.0/src/cache.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct StatementCache(RefCell, RawStatement>>); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `rusqlite::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rusqlite-0.31.0/src/lib.rs:377:12 [INFO] [stdout] | [INFO] [stdout] 377 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `Database` [INFO] [stdout] --> src/db_controller.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Database { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `std::marker::Send` [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/main.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: required by a bound in `with_state` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tide-0.16.0/src/lib.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn with_state(state: State) -> server::Server [INFO] [stdout] | ---------- required by a bound in this function [INFO] [stdout] 152 | where [INFO] [stdout] 153 | State: Clone + Send + Sync + 'static, [INFO] [stdout] | ^^^^ required by this bound in `with_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `at` exists for struct `Server`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 11 | struct AppState { [INFO] [stdout] | --------------- doesn't satisfy `AppState: std::marker::Send` [INFO] [stdout] ... [INFO] [stdout] 23 | app.at("/entries") [INFO] [stdout] | ^^ method cannot be called on `Server` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `RefCell: Sync` [INFO] [stdout] which is required by `AppState: std::marker::Send` [INFO] [stdout] `RefCell, rusqlite::raw_statement::RawStatement>>: Sync` [INFO] [stdout] which is required by `AppState: std::marker::Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `at` exists for struct `Server`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 11 | struct AppState { [INFO] [stdout] | --------------- doesn't satisfy `AppState: std::marker::Send` [INFO] [stdout] ... [INFO] [stdout] 26 | app.at("/entries/:name") [INFO] [stdout] | ^^ method cannot be called on `Server` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `RefCell: Sync` [INFO] [stdout] which is required by `AppState: std::marker::Send` [INFO] [stdout] `RefCell, rusqlite::raw_statement::RawStatement>>: Sync` [INFO] [stdout] which is required by `AppState: std::marker::Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `listen` exists for struct `Server`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 11 | struct AppState { [INFO] [stdout] | --------------- doesn't satisfy `AppState: std::marker::Send` [INFO] [stdout] ... [INFO] [stdout] 31 | app.listen("127.0.0.1:8080").await?; [INFO] [stdout] | ^^^^^^ method cannot be called on `Server` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `RefCell: Sync` [INFO] [stdout] which is required by `AppState: std::marker::Send` [INFO] [stdout] `RefCell, rusqlite::raw_statement::RawStatement>>: Sync` [INFO] [stdout] which is required by `AppState: std::marker::Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 63 | match db.get_all_entries() { [INFO] [stdout] | -------------------- this expression has type `Result, rusqlite::Error>` [INFO] [stdout] 64 | Ok(()) => { [INFO] [stdout] | ^^ expected `HashMap`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 105 | match db.remove_entry(&key) { [INFO] [stdout] | --------------------- this expression has type `Result` [INFO] [stdout] 106 | Ok(()) => println!("Deletion Successful!"), [INFO] [stdout] | ^^ expected `usize`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `learningRust` (bin "learningRust") due to 9 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7db0d44234f0639675fe9ba000f65b9047debc1d01dbe9d7c532e0f6c9607065", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7db0d44234f0639675fe9ba000f65b9047debc1d01dbe9d7c532e0f6c9607065", kill_on_drop: false }` [INFO] [stdout] 7db0d44234f0639675fe9ba000f65b9047debc1d01dbe9d7c532e0f6c9607065