[INFO] cloning repository https://github.com/vmednis/social-music [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vmednis/social-music" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvmednis%2Fsocial-music", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvmednis%2Fsocial-music'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 049771f93d8931cbdc496ccaca6762e7147f6198 [INFO] checking vmednis/social-music 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%2Fvmednis%2Fsocial-music" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vmednis/social-music [INFO] finished tweaking git repo https://github.com/vmednis/social-music [INFO] tweaked toml for git repo https://github.com/vmednis/social-music written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vmednis/social-music 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/vmednis/social-music 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 6bb771ca0c4a0ca70674db565a1e8a0c43c280729f3421761d429b36c3034222 [INFO] running `Command { std: "docker" "start" "-a" "6bb771ca0c4a0ca70674db565a1e8a0c43c280729f3421761d429b36c3034222", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bb771ca0c4a0ca70674db565a1e8a0c43c280729f3421761d429b36c3034222", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bb771ca0c4a0ca70674db565a1e8a0c43c280729f3421761d429b36c3034222", kill_on_drop: false }` [INFO] [stdout] 6bb771ca0c4a0ca70674db565a1e8a0c43c280729f3421761d429b36c3034222 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 9dfe26e9d3140d930a6855a65ac6ff639535b29b0dfc0b4561bb7617ee65ce9f [INFO] running `Command { std: "docker" "start" "-a" "9dfe26e9d3140d930a6855a65ac6ff639535b29b0dfc0b4561bb7617ee65ce9f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Checking once_cell v1.14.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Compiling tokio v1.21.0 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking futures-sink v0.3.25 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling futures-task v0.3.25 [INFO] [stderr] Checking tracing-core v0.1.30 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Compiling futures-channel v0.3.24 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Checking cpufeatures v0.2.4 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling serde_json v1.0.87 [INFO] [stderr] Checking fastrand v1.8.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Compiling async-trait v0.1.58 [INFO] [stderr] Checking buf_redux v0.8.4 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Compiling libsodium-sys v0.2.7 [INFO] [stderr] Checking aho-corasick v0.7.19 [INFO] [stderr] Checking twoway v0.1.8 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking sha1 v0.10.4 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking ed25519 v1.5.2 [INFO] [stderr] Checking sha1_smol v1.0.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking ipnet v2.5.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling social-music v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking headers v0.3.8 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking multipart v0.18.0 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling futures-macro v0.3.25 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.33 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Checking thiserror v1.0.33 [INFO] [stderr] Checking tungstenite v0.14.0 [INFO] [stderr] Checking pin-project v1.0.12 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-tungstenite v0.15.0 [INFO] [stderr] Checking tokio-util v0.6.10 [INFO] [stderr] Checking tokio-stream v0.1.9 [INFO] [stderr] Checking h2 v0.3.14 [INFO] [stderr] Checking combine v4.6.6 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking hyper v0.14.20 [INFO] [stderr] Checking redis v0.22.1 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking warp v0.3.2 [INFO] [stderr] Checking reqwest v0.11.11 [INFO] [stderr] Checking sodiumoxide v0.2.7 [INFO] [stdout] warning: fields `href`, `limit`, `offset`, `previous`, `next`, and `total` are never read [INFO] [stdout] --> src/spotify/search.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct SearchResultTracks { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 103 | pub href: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 104 | pub items: Vec, [INFO] [stdout] 105 | pub limit: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 106 | pub offset: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 107 | pub previous: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 108 | pub next: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 109 | pub total: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchResultTracks` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/spotify/tracks.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Track { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 111 | pub available_markets: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 112 | pub disc_number: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 113 | pub duration_ms: u64, [INFO] [stdout] 114 | pub explicit: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 115 | pub external_ids: ExternalIds, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 116 | pub external_urls: ExternalUrls, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 117 | pub href: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 118 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 119 | pub is_playable: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 120 | pub linked_from: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 121 | pub restrictions: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 122 | pub is_local: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 123 | pub name: String, [INFO] [stdout] 124 | pub popularity: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 125 | pub preview_url: Option, [INFO] [stdout] 126 | pub track_number: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 127 | #[serde(rename = "type")] [INFO] [stdout] 128 | pub obj_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Track` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/spotify/tracks.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Album { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 134 | pub album_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 135 | pub total_tracks: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 136 | pub available_markets: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 137 | pub external_urls: ExternalUrls, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 138 | pub href: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 139 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 140 | pub images: Vec, [INFO] [stdout] 141 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 142 | pub release_date: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 143 | pub restrictions: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 144 | #[serde(rename = "type")] [INFO] [stdout] 145 | pub obj_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 146 | pub uri: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 147 | pub album_group: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 148 | pub artists: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Album` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/spotify/tracks.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct Artist { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 153 | pub external_urls: ExternalUrls, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 154 | pub followers: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 155 | pub genres: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 156 | pub href: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 157 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 158 | pub images: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 159 | pub name: String, [INFO] [stdout] 160 | pub popularity: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 161 | #[serde(rename = "type")] [INFO] [stdout] 162 | pub obj_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 163 | pub uri: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Artist` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `isrc`, `ean`, and `upc` are never read [INFO] [stdout] --> src/spotify/tracks.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct ExternalIds { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 168 | pub isrc: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 169 | pub ean: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 170 | pub upc: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExternalIds` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `spotify` is never read [INFO] [stdout] --> src/spotify/tracks.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 174 | pub struct ExternalUrls { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 175 | pub spotify: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExternalUrls` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> src/spotify/tracks.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 179 | pub struct Restrictions { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 180 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Restrictions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `href` and `total` are never read [INFO] [stdout] --> src/spotify/tracks.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 191 | pub struct Followers { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 192 | pub href: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 193 | pub total: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Followers` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/cookie.rs:67:38 [INFO] [stdout] | [INFO] [stdout] 67 | .and_then(|cookie| async { [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 68 | | let res: Result = Ok(cookie); [INFO] [stdout] 69 | | res [INFO] [stdout] 70 | | }); [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 [INFO] [stdout] --> src/cookie.rs:68:56 [INFO] [stdout] | [INFO] [stdout] 68 | let res: Result = Ok(cookie); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/cookie.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | res [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:11:91 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn get_test_endpoint(user_id: String, db: Db) -> Result { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 12 | | //Used only for testing [INFO] [stdout] 13 | | let mut db = db.lock().await; [INFO] [stdout] 14 | | let key = db.get_auth(user_id.clone()).await; [INFO] [stdout] 15 | | Ok(format!("Hello, {} your token is {:?}!", user_id, key)) [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:11:91 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn get_test_endpoint(user_id: String, db: Db) -> Result { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 12 | | //Used only for testing [INFO] [stdout] 13 | | let mut db = db.lock().await; [INFO] [stdout] 14 | | let key = db.get_auth(user_id.clone()).await; [INFO] [stdout] 15 | | Ok(format!("Hello, {} your token is {:?}!", user_id, key)) [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(format!("Hello, {} your token is {:?}!", user_id, key)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 22 | ) -> Result { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 23 | | //Get users token from database [INFO] [stdout] 24 | | let mut inner_db = db.lock().await; [INFO] [stdout] 25 | | let token = inner_db.get_auth(user_id.clone()).await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 35 | | Ok(format!("{}", token.access_token)) [INFO] [stdout] 36 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 22 | ) -> Result { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 23 | | //Get users token from database [INFO] [stdout] 24 | | let mut inner_db = db.lock().await; [INFO] [stdout] 25 | | let token = inner_db.get_auth(user_id.clone()).await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 35 | | Ok(format!("{}", token.access_token)) [INFO] [stdout] 36 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | Ok(format!("{}", token.access_token)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:38:60 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn get_login() -> Result { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 39 | | let return_url = std::env::var("SPOTIFY_RETURN_URL").unwrap(); [INFO] [stdout] 40 | | let client_id = std::env::var("SPOTIFY_CLIENT_ID").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 54 | | Ok(warp::redirect::see_other(spotify_uri)) [INFO] [stdout] 55 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:38:60 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn get_login() -> Result { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 39 | | let return_url = std::env::var("SPOTIFY_RETURN_URL").unwrap(); [INFO] [stdout] 40 | | let client_id = std::env::var("SPOTIFY_CLIENT_ID").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 54 | | Ok(warp::redirect::see_other(spotify_uri)) [INFO] [stdout] 55 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | Ok(warp::redirect::see_other(spotify_uri)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:61:43 [INFO] [stdout] | [INFO] [stdout] 61 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 62 | | let return_url = std::env::var("SPOTIFY_RETURN_URL").unwrap(); [INFO] [stdout] 63 | | let code = query.get("code").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 94 | | Ok(reply) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:61:43 [INFO] [stdout] | [INFO] [stdout] 61 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 62 | | let return_url = std::env::var("SPOTIFY_RETURN_URL").unwrap(); [INFO] [stdout] 63 | | let code = query.get("code").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 94 | | Ok(reply) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | Ok(reply) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:97:61 [INFO] [stdout] | [INFO] [stdout] 97 | pub async fn get_logout() -> Result { [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 98 | | //Set an expiration for the cookie and redirect to / [INFO] [stdout] 99 | | let redirect = warp::redirect::see_other(warp::http::Uri::from_static("/")); [INFO] [stdout] 100 | | let reply = warp::reply::with_header( [INFO] [stdout] ... | [INFO] [stdout] 106 | | Ok(reply) [INFO] [stdout] 107 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:97:61 [INFO] [stdout] | [INFO] [stdout] 97 | pub async fn get_logout() -> Result { [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 98 | | //Set an expiration for the cookie and redirect to / [INFO] [stdout] 99 | | let redirect = warp::redirect::see_other(warp::http::Uri::from_static("/")); [INFO] [stdout] 100 | | let reply = warp::reply::with_header( [INFO] [stdout] ... | [INFO] [stdout] 106 | | Ok(reply) [INFO] [stdout] 107 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | Ok(reply) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:113:43 [INFO] [stdout] | [INFO] [stdout] 113 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 114 | | //Extract room information fromm parameters [INFO] [stdout] 115 | | let id = body.get("id").unwrap_or(&"".to_string()).clone(); [INFO] [stdout] 116 | | let title = body.get("title").unwrap_or(&"".to_string()).clone(); [INFO] [stdout] ... | [INFO] [stdout] 145 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:113:43 [INFO] [stdout] | [INFO] [stdout] 113 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 114 | | //Extract room information fromm parameters [INFO] [stdout] 115 | | let id = body.get("id").unwrap_or(&"".to_string()).clone(); [INFO] [stdout] 116 | | let title = body.get("title").unwrap_or(&"".to_string()).clone(); [INFO] [stdout] ... | [INFO] [stdout] 145 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | / match db.create_room(room).await { [INFO] [stdout] 127 | | Ok(_) => { [INFO] [stdout] 128 | | //If successfuly reply with no errors [INFO] [stdout] 129 | | let reply: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 127 | Ok(_) => { [INFO] [stdout] | __________________^ [INFO] [stdout] 128 | | //If successfuly reply with no errors [INFO] [stdout] 129 | | let reply: Vec = Vec::new(); [INFO] [stdout] 130 | | let json = warp::reply::json(&reply); [INFO] [stdout] ... | [INFO] [stdout] 134 | | )) [INFO] [stdout] 135 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | / Ok(warp::reply::with_status( [INFO] [stdout] 132 | | json, [INFO] [stdout] 133 | | warp::http::StatusCode::CREATED, [INFO] [stdout] 134 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | Err(errors) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 137 | | //If failed to insert room (i.e. failing validation) reply with errors [INFO] [stdout] 138 | | let json = warp::reply::json(&errors); [INFO] [stdout] 139 | | Ok(warp::reply::with_status( [INFO] [stdout] ... | [INFO] [stdout] 142 | | )) [INFO] [stdout] 143 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | / Ok(warp::reply::with_status( [INFO] [stdout] 140 | | json, [INFO] [stdout] 141 | | warp::http::StatusCode::BAD_REQUEST, [INFO] [stdout] 142 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:147:96 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn list_rooms(_user_id: String, db: Db) -> Result { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 148 | | //Acquire room information from the database [INFO] [stdout] 149 | | let mut db = db.lock().await; [INFO] [stdout] 150 | | let rooms = db.list_rooms().await; [INFO] [stdout] 151 | | [INFO] [stdout] 152 | | Ok(warp::reply::json(&rooms).into_response()) [INFO] [stdout] 153 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:147:96 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn list_rooms(_user_id: String, db: Db) -> Result { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 148 | | //Acquire room information from the database [INFO] [stdout] 149 | | let mut db = db.lock().await; [INFO] [stdout] 150 | | let rooms = db.list_rooms().await; [INFO] [stdout] 151 | | [INFO] [stdout] 152 | | Ok(warp::reply::json(&rooms).into_response()) [INFO] [stdout] 153 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | Ok(warp::reply::json(&rooms).into_response()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:159:48 [INFO] [stdout] | [INFO] [stdout] 159 | ) -> Result { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 160 | | //Acquire information about the room from database [INFO] [stdout] 161 | | let mut db = db.lock().await; [INFO] [stdout] 162 | | let room = db.get_room(room_id).await; [INFO] [stdout] ... | [INFO] [stdout] 173 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:159:48 [INFO] [stdout] | [INFO] [stdout] 159 | ) -> Result { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 160 | | //Acquire information about the room from database [INFO] [stdout] 161 | | let mut db = db.lock().await; [INFO] [stdout] 162 | | let room = db.get_room(room_id).await; [INFO] [stdout] ... | [INFO] [stdout] 173 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | / match room { [INFO] [stdout] 166 | | Some(room) => Ok(warp::reply::json(&room).into_response()), [INFO] [stdout] 167 | | None => Ok(warp::reply::with_status( [INFO] [stdout] 168 | | "Couldn't find room with this id.", [INFO] [stdout] ... | [INFO] [stdout] 171 | | .into_response()), [INFO] [stdout] 172 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:166:23 [INFO] [stdout] | [INFO] [stdout] 166 | Some(room) => Ok(warp::reply::json(&room).into_response()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | None => Ok(warp::reply::with_status( [INFO] [stdout] | _________________^ [INFO] [stdout] 168 | | "Couldn't find room with this id.", [INFO] [stdout] 169 | | warp::http::StatusCode::NOT_FOUND, [INFO] [stdout] 170 | | ) [INFO] [stdout] 171 | | .into_response()), [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:181:43 [INFO] [stdout] | [INFO] [stdout] 181 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 182 | | //Finish connecting the websocket [INFO] [stdout] 183 | | Ok(ws.on_upgrade(move |websocket| socket::connected(websocket, room_id, user_id, db, spotify))) [INFO] [stdout] 184 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:181:43 [INFO] [stdout] | [INFO] [stdout] 181 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 182 | | //Finish connecting the websocket [INFO] [stdout] 183 | | Ok(ws.on_upgrade(move |websocket| socket::connected(websocket, room_id, user_id, db, spotify))) [INFO] [stdout] 184 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | Ok(ws.on_upgrade(move |websocket| socket::connected(websocket, room_id, user_id, db, spotify))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:191:43 [INFO] [stdout] | [INFO] [stdout] 191 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 192 | | //Extract query from query parameters [INFO] [stdout] 193 | | let query = query.get("q"); [INFO] [stdout] ... | [INFO] [stdout] 235 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:191:43 [INFO] [stdout] | [INFO] [stdout] 191 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 192 | | //Extract query from query parameters [INFO] [stdout] 193 | | let query = query.get("q"); [INFO] [stdout] ... | [INFO] [stdout] 235 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:195:5 [INFO] [stdout] | [INFO] [stdout] 195 | / match query { [INFO] [stdout] 196 | | Some(query) => { [INFO] [stdout] 197 | | //Get users token from database [INFO] [stdout] 198 | | let mut db = db.lock().await; [INFO] [stdout] ... | [INFO] [stdout] 233 | | .into_response()), [INFO] [stdout] 234 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:196:24 [INFO] [stdout] | [INFO] [stdout] 196 | Some(query) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 197 | | //Get users token from database [INFO] [stdout] 198 | | let mut db = db.lock().await; [INFO] [stdout] 199 | | let token = db.get_auth(user_id).await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 227 | | Ok(warp::reply::json(&response).into_response()) [INFO] [stdout] 228 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | Ok(warp::reply::json(&response).into_response()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:229:17 [INFO] [stdout] | [INFO] [stdout] 229 | None => Ok(warp::reply::with_status( [INFO] [stdout] | _________________^ [INFO] [stdout] 230 | | "Missing query parameter", [INFO] [stdout] 231 | | warp::http::StatusCode::BAD_REQUEST, [INFO] [stdout] 232 | | ) [INFO] [stdout] 233 | | .into_response()), [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:242:48 [INFO] [stdout] | [INFO] [stdout] 242 | ) -> Result { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 243 | | //Acquire list of ids from database [INFO] [stdout] 244 | | let mut db = db.lock().await; [INFO] [stdout] 245 | | let token = db.get_auth(user_id.clone()).await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 269 | | Ok(warp::reply::json(&response).into_response()) [INFO] [stdout] 270 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:242:48 [INFO] [stdout] | [INFO] [stdout] 242 | ) -> Result { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 243 | | //Acquire list of ids from database [INFO] [stdout] 244 | | let mut db = db.lock().await; [INFO] [stdout] 245 | | let token = db.get_auth(user_id.clone()).await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 269 | | Ok(warp::reply::json(&response).into_response()) [INFO] [stdout] 270 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | Ok(warp::reply::json(&response).into_response()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `social-music` (bin "social-music" test) due to 45 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `href`, `limit`, `offset`, `previous`, `next`, and `total` are never read [INFO] [stdout] --> src/spotify/search.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct SearchResultTracks { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 103 | pub href: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 104 | pub items: Vec, [INFO] [stdout] 105 | pub limit: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 106 | pub offset: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 107 | pub previous: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 108 | pub next: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 109 | pub total: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchResultTracks` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/spotify/tracks.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Track { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 111 | pub available_markets: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 112 | pub disc_number: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 113 | pub duration_ms: u64, [INFO] [stdout] 114 | pub explicit: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 115 | pub external_ids: ExternalIds, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 116 | pub external_urls: ExternalUrls, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 117 | pub href: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 118 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 119 | pub is_playable: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 120 | pub linked_from: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 121 | pub restrictions: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 122 | pub is_local: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 123 | pub name: String, [INFO] [stdout] 124 | pub popularity: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 125 | pub preview_url: Option, [INFO] [stdout] 126 | pub track_number: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 127 | #[serde(rename = "type")] [INFO] [stdout] 128 | pub obj_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Track` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/spotify/tracks.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Album { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 134 | pub album_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 135 | pub total_tracks: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 136 | pub available_markets: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 137 | pub external_urls: ExternalUrls, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 138 | pub href: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 139 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 140 | pub images: Vec, [INFO] [stdout] 141 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 142 | pub release_date: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 143 | pub restrictions: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 144 | #[serde(rename = "type")] [INFO] [stdout] 145 | pub obj_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 146 | pub uri: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 147 | pub album_group: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 148 | pub artists: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Album` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/spotify/tracks.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct Artist { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 153 | pub external_urls: ExternalUrls, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 154 | pub followers: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 155 | pub genres: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 156 | pub href: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 157 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 158 | pub images: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 159 | pub name: String, [INFO] [stdout] 160 | pub popularity: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 161 | #[serde(rename = "type")] [INFO] [stdout] 162 | pub obj_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 163 | pub uri: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Artist` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `isrc`, `ean`, and `upc` are never read [INFO] [stdout] --> src/spotify/tracks.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct ExternalIds { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 168 | pub isrc: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 169 | pub ean: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 170 | pub upc: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExternalIds` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `spotify` is never read [INFO] [stdout] --> src/spotify/tracks.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 174 | pub struct ExternalUrls { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 175 | pub spotify: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExternalUrls` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> src/spotify/tracks.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 179 | pub struct Restrictions { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 180 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Restrictions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `href` and `total` are never read [INFO] [stdout] --> src/spotify/tracks.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 191 | pub struct Followers { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 192 | pub href: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 193 | pub total: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Followers` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:11:91 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn get_test_endpoint(user_id: String, db: Db) -> Result { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 12 | | //Used only for testing [INFO] [stdout] 13 | | let mut db = db.lock().await; [INFO] [stdout] 14 | | let key = db.get_auth(user_id.clone()).await; [INFO] [stdout] 15 | | Ok(format!("Hello, {} your token is {:?}!", user_id, key)) [INFO] [stdout] 16 | | } [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 [INFO] [stdout] --> src/endpoint.rs:11:91 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn get_test_endpoint(user_id: String, db: Db) -> Result { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 12 | | //Used only for testing [INFO] [stdout] 13 | | let mut db = db.lock().await; [INFO] [stdout] 14 | | let key = db.get_auth(user_id.clone()).await; [INFO] [stdout] 15 | | Ok(format!("Hello, {} your token is {:?}!", user_id, key)) [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(format!("Hello, {} your token is {:?}!", user_id, key)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 22 | ) -> Result { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 23 | | //Get users token from database [INFO] [stdout] 24 | | let mut inner_db = db.lock().await; [INFO] [stdout] 25 | | let token = inner_db.get_auth(user_id.clone()).await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 35 | | Ok(format!("{}", token.access_token)) [INFO] [stdout] 36 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 22 | ) -> Result { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 23 | | //Get users token from database [INFO] [stdout] 24 | | let mut inner_db = db.lock().await; [INFO] [stdout] 25 | | let token = inner_db.get_auth(user_id.clone()).await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 35 | | Ok(format!("{}", token.access_token)) [INFO] [stdout] 36 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | Ok(format!("{}", token.access_token)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:38:60 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn get_login() -> Result { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 39 | | let return_url = std::env::var("SPOTIFY_RETURN_URL").unwrap(); [INFO] [stdout] 40 | | let client_id = std::env::var("SPOTIFY_CLIENT_ID").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 54 | | Ok(warp::redirect::see_other(spotify_uri)) [INFO] [stdout] 55 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:38:60 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn get_login() -> Result { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 39 | | let return_url = std::env::var("SPOTIFY_RETURN_URL").unwrap(); [INFO] [stdout] 40 | | let client_id = std::env::var("SPOTIFY_CLIENT_ID").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 54 | | Ok(warp::redirect::see_other(spotify_uri)) [INFO] [stdout] 55 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | Ok(warp::redirect::see_other(spotify_uri)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:61:43 [INFO] [stdout] | [INFO] [stdout] 61 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 62 | | let return_url = std::env::var("SPOTIFY_RETURN_URL").unwrap(); [INFO] [stdout] 63 | | let code = query.get("code").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 94 | | Ok(reply) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:61:43 [INFO] [stdout] | [INFO] [stdout] 61 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 62 | | let return_url = std::env::var("SPOTIFY_RETURN_URL").unwrap(); [INFO] [stdout] 63 | | let code = query.get("code").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 94 | | Ok(reply) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | Ok(reply) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:97:61 [INFO] [stdout] | [INFO] [stdout] 97 | pub async fn get_logout() -> Result { [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 98 | | //Set an expiration for the cookie and redirect to / [INFO] [stdout] 99 | | let redirect = warp::redirect::see_other(warp::http::Uri::from_static("/")); [INFO] [stdout] 100 | | let reply = warp::reply::with_header( [INFO] [stdout] ... | [INFO] [stdout] 106 | | Ok(reply) [INFO] [stdout] 107 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:97:61 [INFO] [stdout] | [INFO] [stdout] 97 | pub async fn get_logout() -> Result { [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 98 | | //Set an expiration for the cookie and redirect to / [INFO] [stdout] 99 | | let redirect = warp::redirect::see_other(warp::http::Uri::from_static("/")); [INFO] [stdout] 100 | | let reply = warp::reply::with_header( [INFO] [stdout] ... | [INFO] [stdout] 106 | | Ok(reply) [INFO] [stdout] 107 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | Ok(reply) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:113:43 [INFO] [stdout] | [INFO] [stdout] 113 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 114 | | //Extract room information fromm parameters [INFO] [stdout] 115 | | let id = body.get("id").unwrap_or(&"".to_string()).clone(); [INFO] [stdout] 116 | | let title = body.get("title").unwrap_or(&"".to_string()).clone(); [INFO] [stdout] ... | [INFO] [stdout] 145 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:113:43 [INFO] [stdout] | [INFO] [stdout] 113 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 114 | | //Extract room information fromm parameters [INFO] [stdout] 115 | | let id = body.get("id").unwrap_or(&"".to_string()).clone(); [INFO] [stdout] 116 | | let title = body.get("title").unwrap_or(&"".to_string()).clone(); [INFO] [stdout] ... | [INFO] [stdout] 145 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | / match db.create_room(room).await { [INFO] [stdout] 127 | | Ok(_) => { [INFO] [stdout] 128 | | //If successfuly reply with no errors [INFO] [stdout] 129 | | let reply: Vec = Vec::new(); [INFO] [stdout] ... | [INFO] [stdout] 144 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 127 | Ok(_) => { [INFO] [stdout] | __________________^ [INFO] [stdout] 128 | | //If successfuly reply with no errors [INFO] [stdout] 129 | | let reply: Vec = Vec::new(); [INFO] [stdout] 130 | | let json = warp::reply::json(&reply); [INFO] [stdout] ... | [INFO] [stdout] 134 | | )) [INFO] [stdout] 135 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | / Ok(warp::reply::with_status( [INFO] [stdout] 132 | | json, [INFO] [stdout] 133 | | warp::http::StatusCode::CREATED, [INFO] [stdout] 134 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | Err(errors) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 137 | | //If failed to insert room (i.e. failing validation) reply with errors [INFO] [stdout] 138 | | let json = warp::reply::json(&errors); [INFO] [stdout] 139 | | Ok(warp::reply::with_status( [INFO] [stdout] ... | [INFO] [stdout] 142 | | )) [INFO] [stdout] 143 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | / Ok(warp::reply::with_status( [INFO] [stdout] 140 | | json, [INFO] [stdout] 141 | | warp::http::StatusCode::BAD_REQUEST, [INFO] [stdout] 142 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:147:96 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn list_rooms(_user_id: String, db: Db) -> Result { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 148 | | //Acquire room information from the database [INFO] [stdout] 149 | | let mut db = db.lock().await; [INFO] [stdout] 150 | | let rooms = db.list_rooms().await; [INFO] [stdout] 151 | | [INFO] [stdout] 152 | | Ok(warp::reply::json(&rooms).into_response()) [INFO] [stdout] 153 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:147:96 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn list_rooms(_user_id: String, db: Db) -> Result { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 148 | | //Acquire room information from the database [INFO] [stdout] 149 | | let mut db = db.lock().await; [INFO] [stdout] 150 | | let rooms = db.list_rooms().await; [INFO] [stdout] 151 | | [INFO] [stdout] 152 | | Ok(warp::reply::json(&rooms).into_response()) [INFO] [stdout] 153 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | Ok(warp::reply::json(&rooms).into_response()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:159:48 [INFO] [stdout] | [INFO] [stdout] 159 | ) -> Result { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 160 | | //Acquire information about the room from database [INFO] [stdout] 161 | | let mut db = db.lock().await; [INFO] [stdout] 162 | | let room = db.get_room(room_id).await; [INFO] [stdout] ... | [INFO] [stdout] 173 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:159:48 [INFO] [stdout] | [INFO] [stdout] 159 | ) -> Result { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 160 | | //Acquire information about the room from database [INFO] [stdout] 161 | | let mut db = db.lock().await; [INFO] [stdout] 162 | | let room = db.get_room(room_id).await; [INFO] [stdout] ... | [INFO] [stdout] 173 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | / match room { [INFO] [stdout] 166 | | Some(room) => Ok(warp::reply::json(&room).into_response()), [INFO] [stdout] 167 | | None => Ok(warp::reply::with_status( [INFO] [stdout] 168 | | "Couldn't find room with this id.", [INFO] [stdout] ... | [INFO] [stdout] 171 | | .into_response()), [INFO] [stdout] 172 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:166:23 [INFO] [stdout] | [INFO] [stdout] 166 | Some(room) => Ok(warp::reply::json(&room).into_response()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | None => Ok(warp::reply::with_status( [INFO] [stdout] | _________________^ [INFO] [stdout] 168 | | "Couldn't find room with this id.", [INFO] [stdout] 169 | | warp::http::StatusCode::NOT_FOUND, [INFO] [stdout] 170 | | ) [INFO] [stdout] 171 | | .into_response()), [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:181:43 [INFO] [stdout] | [INFO] [stdout] 181 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 182 | | //Finish connecting the websocket [INFO] [stdout] 183 | | Ok(ws.on_upgrade(move |websocket| socket::connected(websocket, room_id, user_id, db, spotify))) [INFO] [stdout] 184 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:181:43 [INFO] [stdout] | [INFO] [stdout] 181 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 182 | | //Finish connecting the websocket [INFO] [stdout] 183 | | Ok(ws.on_upgrade(move |websocket| socket::connected(websocket, room_id, user_id, db, spotify))) [INFO] [stdout] 184 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/endpoint.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | Ok(ws.on_upgrade(move |websocket| socket::connected(websocket, room_id, user_id, db, spotify))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:191:43 [INFO] [stdout] | [INFO] [stdout] 191 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 192 | | //Extract query from query parameters [INFO] [stdout] 193 | | let query = query.get("q"); [INFO] [stdout] ... | [INFO] [stdout] 235 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:191:43 [INFO] [stdout] | [INFO] [stdout] 191 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 192 | | //Extract query from query parameters [INFO] [stdout] 193 | | let query = query.get("q"); [INFO] [stdout] ... | [INFO] [stdout] 235 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:195:5 [INFO] [stdout] | [INFO] [stdout] 195 | / match query { [INFO] [stdout] 196 | | Some(query) => { [INFO] [stdout] 197 | | //Get users token from database [INFO] [stdout] 198 | | let mut db = db.lock().await; [INFO] [stdout] ... | [INFO] [stdout] 233 | | .into_response()), [INFO] [stdout] 234 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:196:24 [INFO] [stdout] | [INFO] [stdout] 196 | Some(query) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 197 | | //Get users token from database [INFO] [stdout] 198 | | let mut db = db.lock().await; [INFO] [stdout] 199 | | let token = db.get_auth(user_id).await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 227 | | Ok(warp::reply::json(&response).into_response()) [INFO] [stdout] 228 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | Ok(warp::reply::json(&response).into_response()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:229:17 [INFO] [stdout] | [INFO] [stdout] 229 | None => Ok(warp::reply::with_status( [INFO] [stdout] | _________________^ [INFO] [stdout] 230 | | "Missing query parameter", [INFO] [stdout] 231 | | warp::http::StatusCode::BAD_REQUEST, [INFO] [stdout] 232 | | ) [INFO] [stdout] 233 | | .into_response()), [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:242:48 [INFO] [stdout] | [INFO] [stdout] 242 | ) -> Result { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 243 | | //Acquire list of ids from database [INFO] [stdout] 244 | | let mut db = db.lock().await; [INFO] [stdout] 245 | | let token = db.get_auth(user_id.clone()).await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 269 | | Ok(warp::reply::json(&response).into_response()) [INFO] [stdout] 270 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:242:48 [INFO] [stdout] | [INFO] [stdout] 242 | ) -> Result { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 243 | | //Acquire list of ids from database [INFO] [stdout] 244 | | let mut db = db.lock().await; [INFO] [stdout] 245 | | let token = db.get_auth(user_id.clone()).await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 269 | | Ok(warp::reply::json(&response).into_response()) [INFO] [stdout] 270 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/endpoint.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | Ok(warp::reply::json(&response).into_response()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `social-music` (bin "social-music") due to 42 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9dfe26e9d3140d930a6855a65ac6ff639535b29b0dfc0b4561bb7617ee65ce9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9dfe26e9d3140d930a6855a65ac6ff639535b29b0dfc0b4561bb7617ee65ce9f", kill_on_drop: false }` [INFO] [stdout] 9dfe26e9d3140d930a6855a65ac6ff639535b29b0dfc0b4561bb7617ee65ce9f