[INFO] cloning repository https://github.com/suculent/rusocks [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/suculent/rusocks" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuculent%2Frusocks", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuculent%2Frusocks'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ae9fe06de75fca87b0f4257f3b170a957bc6bf9 [INFO] checking suculent/rusocks 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%2Fsuculent%2Frusocks" "/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/suculent/rusocks [INFO] finished tweaking git repo https://github.com/suculent/rusocks [INFO] tweaked toml for git repo https://github.com/suculent/rusocks written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/suculent/rusocks 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/suculent/rusocks 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] 67eb60170e2947788b38af4b0237bc5d15377789b9a05479f65a77c6163c3efe [INFO] running `Command { std: "docker" "start" "-a" "67eb60170e2947788b38af4b0237bc5d15377789b9a05479f65a77c6163c3efe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67eb60170e2947788b38af4b0237bc5d15377789b9a05479f65a77c6163c3efe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67eb60170e2947788b38af4b0237bc5d15377789b9a05479f65a77c6163c3efe", kill_on_drop: false }` [INFO] [stdout] 67eb60170e2947788b38af4b0237bc5d15377789b9a05479f65a77c6163c3efe [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] 9e67c0addfe5f9417490e9a8f8235cd8bce67b27daeab6fb1d985e9ff358b0fb [INFO] running `Command { std: "docker" "start" "-a" "9e67c0addfe5f9417490e9a8f8235cd8bce67b27daeab6fb1d985e9ff358b0fb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Checking anstyle v1.0.13 [INFO] [stderr] Checking anstyle-query v1.1.4 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Checking humantime v2.3.0 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking clap_builder v4.5.48 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking indexmap v2.11.4 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking regex-automata v0.4.11 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.11.3 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking clap v4.5.48 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking rusocks v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:62:98 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | __________________________________________________________________________________________________^ [INFO] [stdout] 63 | | let auth_header = req.headers().get("X-API-Key"); [INFO] [stdout] 64 | | if auth_header.is_none() [INFO] [stdout] 65 | | || auth_header [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [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, Infallible> [INFO] [stdout] --> src/api.rs:62:98 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | __________________________________________________________________________________________________^ [INFO] [stdout] 63 | | let auth_header = req.headers().get("X-API-Key"); [INFO] [stdout] 64 | | if auth_header.is_none() [INFO] [stdout] 65 | | || auth_header [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | return self.json( [INFO] [stdout] | ____________________^ [INFO] [stdout] 71 | | StatusCode::UNAUTHORIZED, [INFO] [stdout] 72 | | ApiResponse::<()> { [INFO] [stdout] 73 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 76 | | }, [INFO] [stdout] 77 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | / match (req.method(), req.uri().path()) { [INFO] [stdout] 81 | | (&Method::GET, "/api/status") => self.handle_status().await, [INFO] [stdout] 82 | | (&Method::GET, "/api/tokens") => self.handle_list_tokens().await, [INFO] [stdout] 83 | | (&Method::POST, "/api/tokens") => self.handle_add_token(req).await, [INFO] [stdout] ... | [INFO] [stdout] 100 | | ), [INFO] [stdout] 101 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | (&Method::GET, "/api/status") => self.handle_status().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:81:67 [INFO] [stdout] | [INFO] [stdout] 81 | (&Method::GET, "/api/status") => self.handle_status().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | (&Method::GET, "/api/status") => self.handle_status().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:82:46 [INFO] [stdout] | [INFO] [stdout] 82 | (&Method::GET, "/api/tokens") => self.handle_list_tokens().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:82:72 [INFO] [stdout] | [INFO] [stdout] 82 | (&Method::GET, "/api/tokens") => self.handle_list_tokens().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:82:46 [INFO] [stdout] | [INFO] [stdout] 82 | (&Method::GET, "/api/tokens") => self.handle_list_tokens().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:83:47 [INFO] [stdout] | [INFO] [stdout] 83 | (&Method::POST, "/api/tokens") => self.handle_add_token(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:83:74 [INFO] [stdout] | [INFO] [stdout] 83 | (&Method::POST, "/api/tokens") => self.handle_add_token(req).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:83:47 [INFO] [stdout] | [INFO] [stdout] 83 | (&Method::POST, "/api/tokens") => self.handle_add_token(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:84:76 [INFO] [stdout] | [INFO] [stdout] 84 | (&Method::DELETE, path) if path.starts_with("/api/tokens/") => { [INFO] [stdout] | ____________________________________________________________________________^ [INFO] [stdout] 85 | | self.handle_remove_token(path.trim_start_matches("/api/tokens/")) [INFO] [stdout] 86 | | .await [INFO] [stdout] 87 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | / self.handle_remove_token(path.trim_start_matches("/api/tokens/")) [INFO] [stdout] 86 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | / self.handle_remove_token(path.trim_start_matches("/api/tokens/")) [INFO] [stdout] 86 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:88:51 [INFO] [stdout] | [INFO] [stdout] 88 | (&Method::POST, "/api/connectors") => self.handle_add_connector(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:88:82 [INFO] [stdout] | [INFO] [stdout] 88 | (&Method::POST, "/api/connectors") => self.handle_add_connector(req).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:88:51 [INFO] [stdout] | [INFO] [stdout] 88 | (&Method::POST, "/api/connectors") => self.handle_add_connector(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:89:80 [INFO] [stdout] | [INFO] [stdout] 89 | (&Method::DELETE, path) if path.starts_with("/api/connectors/") => { [INFO] [stdout] | ________________________________________________________________________________^ [INFO] [stdout] 90 | | self.handle_remove_connector(path.trim_start_matches("/api/connectors/")) [INFO] [stdout] 91 | | .await [INFO] [stdout] 92 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | / self.handle_remove_connector(path.trim_start_matches("/api/connectors/")) [INFO] [stdout] 91 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 91 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | / self.handle_remove_connector(path.trim_start_matches("/api/connectors/")) [INFO] [stdout] 91 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | _ => self.json( [INFO] [stdout] | __________________^ [INFO] [stdout] 94 | | StatusCode::NOT_FOUND, [INFO] [stdout] 95 | | ApiResponse::<()> { [INFO] [stdout] 96 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 99 | | }, [INFO] [stdout] 100 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:104:73 [INFO] [stdout] | [INFO] [stdout] 104 | async fn handle_status(&self) -> Result, Infallible> { [INFO] [stdout] | _________________________________________________________________________^ [INFO] [stdout] 105 | | let StatusSnapshot { [INFO] [stdout] 106 | | client_count, [INFO] [stdout] 107 | | forward_token_count, [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:104:73 [INFO] [stdout] | [INFO] [stdout] 104 | async fn handle_status(&self) -> Result, Infallible> { [INFO] [stdout] | _________________________________________________________________________^ [INFO] [stdout] 105 | | let StatusSnapshot { [INFO] [stdout] 106 | | client_count, [INFO] [stdout] 107 | | forward_token_count, [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | / self.json( [INFO] [stdout] 113 | | StatusCode::OK, [INFO] [stdout] 114 | | ApiResponse { [INFO] [stdout] 115 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 123 | | }, [INFO] [stdout] 124 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:127:78 [INFO] [stdout] | [INFO] [stdout] 127 | async fn handle_list_tokens(&self) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 128 | | let snapshots: Vec = self.server.token_snapshot().await; [INFO] [stdout] 129 | | [INFO] [stdout] 130 | | let tokens: Vec = snapshots [INFO] [stdout] ... | [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:127:78 [INFO] [stdout] | [INFO] [stdout] 127 | async fn handle_list_tokens(&self) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 128 | | let snapshots: Vec = self.server.token_snapshot().await; [INFO] [stdout] 129 | | [INFO] [stdout] 130 | | let tokens: Vec = snapshots [INFO] [stdout] ... | [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | / self.json( [INFO] [stdout] 140 | | StatusCode::OK, [INFO] [stdout] 141 | | ApiResponse { [INFO] [stdout] 142 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 145 | | }, [INFO] [stdout] 146 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:149:96 [INFO] [stdout] | [INFO] [stdout] 149 | async fn handle_add_token(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 150 | | let body = hyper::body::to_bytes(req.into_body()) [INFO] [stdout] 151 | | .await [INFO] [stdout] 152 | | .unwrap_or_default(); [INFO] [stdout] ... | [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/api.rs:149:96 [INFO] [stdout] | [INFO] [stdout] 149 | async fn handle_add_token(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 150 | | let body = hyper::body::to_bytes(req.into_body()) [INFO] [stdout] 151 | | .await [INFO] [stdout] 152 | | .unwrap_or_default(); [INFO] [stdout] ... | [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/api.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 156 | return self.json( [INFO] [stdout] | ________________________^ [INFO] [stdout] 157 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 158 | | ApiResponse::<()> { [INFO] [stdout] 159 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 162 | | }, [INFO] [stdout] 163 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | / if payload.reverse { [INFO] [stdout] 168 | | let options = ReverseTokenOptions { [INFO] [stdout] 169 | | token: payload.token, [INFO] [stdout] 170 | | port: payload.port, [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:167:28 [INFO] [stdout] | [INFO] [stdout] 167 | if payload.reverse { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 168 | | let options = ReverseTokenOptions { [INFO] [stdout] 169 | | token: payload.token, [INFO] [stdout] 170 | | port: payload.port, [INFO] [stdout] ... | [INFO] [stdout] 201 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / match self.server.add_reverse_token(options).await { [INFO] [stdout] 177 | | Ok(result) => { [INFO] [stdout] 178 | | let token_info = TokenInfo { [INFO] [stdout] 179 | | token: result.token, [INFO] [stdout] ... | [INFO] [stdout] 199 | | ), [INFO] [stdout] 200 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:177:31 [INFO] [stdout] | [INFO] [stdout] 177 | Ok(result) => { [INFO] [stdout] | _______________________________^ [INFO] [stdout] 178 | | let token_info = TokenInfo { [INFO] [stdout] 179 | | token: result.token, [INFO] [stdout] 180 | | port: result.port, [INFO] [stdout] ... | [INFO] [stdout] 191 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:183:21 [INFO] [stdout] | [INFO] [stdout] 183 | / self.json( [INFO] [stdout] 184 | | StatusCode::OK, [INFO] [stdout] 185 | | ApiResponse { [INFO] [stdout] 186 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 189 | | }, [INFO] [stdout] 190 | | ) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | Err(err) => self.json( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 193 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 194 | | ApiResponse::<()> { [INFO] [stdout] 195 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 198 | | }, [INFO] [stdout] 199 | | ), [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:201:16 [INFO] [stdout] | [INFO] [stdout] 201 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 202 | | match self.server.add_forward_token(payload.token).await { [INFO] [stdout] 203 | | Ok(token) => { [INFO] [stdout] 204 | | let token_info = TokenInfo { [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | / match self.server.add_forward_token(payload.token).await { [INFO] [stdout] 203 | | Ok(token) => { [INFO] [stdout] 204 | | let token_info = TokenInfo { [INFO] [stdout] 205 | | token, [INFO] [stdout] ... | [INFO] [stdout] 225 | | ), [INFO] [stdout] 226 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:203:30 [INFO] [stdout] | [INFO] [stdout] 203 | Ok(token) => { [INFO] [stdout] | ______________________________^ [INFO] [stdout] 204 | | let token_info = TokenInfo { [INFO] [stdout] 205 | | token, [INFO] [stdout] 206 | | port: None, [INFO] [stdout] ... | [INFO] [stdout] 217 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | / self.json( [INFO] [stdout] 210 | | StatusCode::OK, [INFO] [stdout] 211 | | ApiResponse { [INFO] [stdout] 212 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 215 | | }, [INFO] [stdout] 216 | | ) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:218:29 [INFO] [stdout] | [INFO] [stdout] 218 | Err(err) => self.json( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 219 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 220 | | ApiResponse::<()> { [INFO] [stdout] 221 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 224 | | }, [INFO] [stdout] 225 | | ), [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:230:92 [INFO] [stdout] | [INFO] [stdout] 230 | async fn handle_remove_token(&self, token: &str) -> Result, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 231 | | if token.is_empty() { [INFO] [stdout] 232 | | return self.json( [INFO] [stdout] 233 | | StatusCode::BAD_REQUEST, [INFO] [stdout] ... | [INFO] [stdout] 262 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:230:92 [INFO] [stdout] | [INFO] [stdout] 230 | async fn handle_remove_token(&self, token: &str) -> Result, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 231 | | if token.is_empty() { [INFO] [stdout] 232 | | return self.json( [INFO] [stdout] 233 | | StatusCode::BAD_REQUEST, [INFO] [stdout] ... | [INFO] [stdout] 262 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:232:20 [INFO] [stdout] | [INFO] [stdout] 232 | return self.json( [INFO] [stdout] | ____________________^ [INFO] [stdout] 233 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 234 | | ApiResponse::<()> { [INFO] [stdout] 235 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 238 | | }, [INFO] [stdout] 239 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | / if removed { [INFO] [stdout] 244 | | self.json( [INFO] [stdout] 245 | | StatusCode::OK, [INFO] [stdout] 246 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 261 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:243:20 [INFO] [stdout] | [INFO] [stdout] 243 | if removed { [INFO] [stdout] | ____________________^ [INFO] [stdout] 244 | | self.json( [INFO] [stdout] 245 | | StatusCode::OK, [INFO] [stdout] 246 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 252 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | / self.json( [INFO] [stdout] 245 | | StatusCode::OK, [INFO] [stdout] 246 | | ApiResponse::<()> { [INFO] [stdout] 247 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 250 | | }, [INFO] [stdout] 251 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:252:16 [INFO] [stdout] | [INFO] [stdout] 252 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 253 | | self.json( [INFO] [stdout] 254 | | StatusCode::NOT_FOUND, [INFO] [stdout] 255 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 261 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / self.json( [INFO] [stdout] 254 | | StatusCode::NOT_FOUND, [INFO] [stdout] 255 | | ApiResponse::<()> { [INFO] [stdout] 256 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 259 | | }, [INFO] [stdout] 260 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:264:100 [INFO] [stdout] | [INFO] [stdout] 264 | async fn handle_add_connector(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 265 | | let body = hyper::body::to_bytes(req.into_body()) [INFO] [stdout] 266 | | .await [INFO] [stdout] 267 | | .unwrap_or_default(); [INFO] [stdout] ... | [INFO] [stdout] 322 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:264:100 [INFO] [stdout] | [INFO] [stdout] 264 | async fn handle_add_connector(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 265 | | let body = hyper::body::to_bytes(req.into_body()) [INFO] [stdout] 266 | | .await [INFO] [stdout] 267 | | .unwrap_or_default(); [INFO] [stdout] ... | [INFO] [stdout] 322 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:271:24 [INFO] [stdout] | [INFO] [stdout] 271 | return self.json( [INFO] [stdout] | ________________________^ [INFO] [stdout] 272 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 273 | | ApiResponse::<()> { [INFO] [stdout] 274 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 277 | | }, [INFO] [stdout] 278 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:283:20 [INFO] [stdout] | [INFO] [stdout] 283 | return self.json( [INFO] [stdout] | ____________________^ [INFO] [stdout] 284 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 285 | | ApiResponse::<()> { [INFO] [stdout] 286 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 289 | | }, [INFO] [stdout] 290 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | / match self [INFO] [stdout] 294 | | .server [INFO] [stdout] 295 | | .add_connector_token(payload.connector_token, &payload.reverse_token) [INFO] [stdout] 296 | | .await [INFO] [stdout] ... | [INFO] [stdout] 320 | | ), [INFO] [stdout] 321 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:298:26 [INFO] [stdout] | [INFO] [stdout] 298 | Ok(token) => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 299 | | let info = TokenInfo { [INFO] [stdout] 300 | | token, [INFO] [stdout] 301 | | port: None, [INFO] [stdout] ... | [INFO] [stdout] 312 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | / self.json( [INFO] [stdout] 305 | | StatusCode::OK, [INFO] [stdout] 306 | | ApiResponse { [INFO] [stdout] 307 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 310 | | }, [INFO] [stdout] 311 | | ) [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:313:25 [INFO] [stdout] | [INFO] [stdout] 313 | Err(err) => self.json( [INFO] [stdout] | _________________________^ [INFO] [stdout] 314 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 315 | | ApiResponse::<()> { [INFO] [stdout] 316 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 319 | | }, [INFO] [stdout] 320 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:324:96 [INFO] [stdout] | [INFO] [stdout] 324 | async fn handle_remove_connector(&self, token: &str) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 325 | | if token.is_empty() { [INFO] [stdout] 326 | | return self.json( [INFO] [stdout] 327 | | StatusCode::BAD_REQUEST, [INFO] [stdout] ... | [INFO] [stdout] 356 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:324:96 [INFO] [stdout] | [INFO] [stdout] 324 | async fn handle_remove_connector(&self, token: &str) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 325 | | if token.is_empty() { [INFO] [stdout] 326 | | return self.json( [INFO] [stdout] 327 | | StatusCode::BAD_REQUEST, [INFO] [stdout] ... | [INFO] [stdout] 356 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:326:20 [INFO] [stdout] | [INFO] [stdout] 326 | return self.json( [INFO] [stdout] | ____________________^ [INFO] [stdout] 327 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 328 | | ApiResponse::<()> { [INFO] [stdout] 329 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 332 | | }, [INFO] [stdout] 333 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | / if removed { [INFO] [stdout] 338 | | self.json( [INFO] [stdout] 339 | | StatusCode::OK, [INFO] [stdout] 340 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 355 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:337:20 [INFO] [stdout] | [INFO] [stdout] 337 | if removed { [INFO] [stdout] | ____________________^ [INFO] [stdout] 338 | | self.json( [INFO] [stdout] 339 | | StatusCode::OK, [INFO] [stdout] 340 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 346 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | / self.json( [INFO] [stdout] 339 | | StatusCode::OK, [INFO] [stdout] 340 | | ApiResponse::<()> { [INFO] [stdout] 341 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 344 | | }, [INFO] [stdout] 345 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:346:16 [INFO] [stdout] | [INFO] [stdout] 346 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 347 | | self.json( [INFO] [stdout] 348 | | StatusCode::NOT_FOUND, [INFO] [stdout] 349 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 355 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | / self.json( [INFO] [stdout] 348 | | StatusCode::NOT_FOUND, [INFO] [stdout] 349 | | ApiResponse::<()> { [INFO] [stdout] 350 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 353 | | }, [INFO] [stdout] 354 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:362:45 [INFO] [stdout] | [INFO] [stdout] 362 | ) -> Result, Infallible> { [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 363 | | let body = serde_json::to_vec(&payload).unwrap_or_else(|_| { [INFO] [stdout] 364 | | serde_json::to_vec(&ApiResponse::<()> { [INFO] [stdout] 365 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 376 | | .unwrap()) [INFO] [stdout] 377 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | / Ok(Response::builder() [INFO] [stdout] 373 | | .status(status) [INFO] [stdout] 374 | | .header(hyper::header::CONTENT_TYPE, "application/json") [INFO] [stdout] 375 | | .body(Body::from(body)) [INFO] [stdout] 376 | | .unwrap()) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rusocks` (lib) due to 71 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:62:98 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | __________________________________________________________________________________________________^ [INFO] [stdout] 63 | | let auth_header = req.headers().get("X-API-Key"); [INFO] [stdout] 64 | | if auth_header.is_none() [INFO] [stdout] 65 | | || auth_header [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [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, Infallible> [INFO] [stdout] --> src/api.rs:62:98 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn handle_request(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | __________________________________________________________________________________________________^ [INFO] [stdout] 63 | | let auth_header = req.headers().get("X-API-Key"); [INFO] [stdout] 64 | | if auth_header.is_none() [INFO] [stdout] 65 | | || auth_header [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | return self.json( [INFO] [stdout] | ____________________^ [INFO] [stdout] 71 | | StatusCode::UNAUTHORIZED, [INFO] [stdout] 72 | | ApiResponse::<()> { [INFO] [stdout] 73 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 76 | | }, [INFO] [stdout] 77 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | / match (req.method(), req.uri().path()) { [INFO] [stdout] 81 | | (&Method::GET, "/api/status") => self.handle_status().await, [INFO] [stdout] 82 | | (&Method::GET, "/api/tokens") => self.handle_list_tokens().await, [INFO] [stdout] 83 | | (&Method::POST, "/api/tokens") => self.handle_add_token(req).await, [INFO] [stdout] ... | [INFO] [stdout] 100 | | ), [INFO] [stdout] 101 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | (&Method::GET, "/api/status") => self.handle_status().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:81:67 [INFO] [stdout] | [INFO] [stdout] 81 | (&Method::GET, "/api/status") => self.handle_status().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | (&Method::GET, "/api/status") => self.handle_status().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:82:46 [INFO] [stdout] | [INFO] [stdout] 82 | (&Method::GET, "/api/tokens") => self.handle_list_tokens().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:82:72 [INFO] [stdout] | [INFO] [stdout] 82 | (&Method::GET, "/api/tokens") => self.handle_list_tokens().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:82:46 [INFO] [stdout] | [INFO] [stdout] 82 | (&Method::GET, "/api/tokens") => self.handle_list_tokens().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:83:47 [INFO] [stdout] | [INFO] [stdout] 83 | (&Method::POST, "/api/tokens") => self.handle_add_token(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:83:74 [INFO] [stdout] | [INFO] [stdout] 83 | (&Method::POST, "/api/tokens") => self.handle_add_token(req).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:83:47 [INFO] [stdout] | [INFO] [stdout] 83 | (&Method::POST, "/api/tokens") => self.handle_add_token(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:84:76 [INFO] [stdout] | [INFO] [stdout] 84 | (&Method::DELETE, path) if path.starts_with("/api/tokens/") => { [INFO] [stdout] | ____________________________________________________________________________^ [INFO] [stdout] 85 | | self.handle_remove_token(path.trim_start_matches("/api/tokens/")) [INFO] [stdout] 86 | | .await [INFO] [stdout] 87 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | / self.handle_remove_token(path.trim_start_matches("/api/tokens/")) [INFO] [stdout] 86 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | / self.handle_remove_token(path.trim_start_matches("/api/tokens/")) [INFO] [stdout] 86 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:88:51 [INFO] [stdout] | [INFO] [stdout] 88 | (&Method::POST, "/api/connectors") => self.handle_add_connector(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:88:82 [INFO] [stdout] | [INFO] [stdout] 88 | (&Method::POST, "/api/connectors") => self.handle_add_connector(req).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:88:51 [INFO] [stdout] | [INFO] [stdout] 88 | (&Method::POST, "/api/connectors") => self.handle_add_connector(req).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:89:80 [INFO] [stdout] | [INFO] [stdout] 89 | (&Method::DELETE, path) if path.starts_with("/api/connectors/") => { [INFO] [stdout] | ________________________________________________________________________________^ [INFO] [stdout] 90 | | self.handle_remove_connector(path.trim_start_matches("/api/connectors/")) [INFO] [stdout] 91 | | .await [INFO] [stdout] 92 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | / self.handle_remove_connector(path.trim_start_matches("/api/connectors/")) [INFO] [stdout] 91 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 91 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | / self.handle_remove_connector(path.trim_start_matches("/api/connectors/")) [INFO] [stdout] 91 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | _ => self.json( [INFO] [stdout] | __________________^ [INFO] [stdout] 94 | | StatusCode::NOT_FOUND, [INFO] [stdout] 95 | | ApiResponse::<()> { [INFO] [stdout] 96 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 99 | | }, [INFO] [stdout] 100 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:104:73 [INFO] [stdout] | [INFO] [stdout] 104 | async fn handle_status(&self) -> Result, Infallible> { [INFO] [stdout] | _________________________________________________________________________^ [INFO] [stdout] 105 | | let StatusSnapshot { [INFO] [stdout] 106 | | client_count, [INFO] [stdout] 107 | | forward_token_count, [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:104:73 [INFO] [stdout] | [INFO] [stdout] 104 | async fn handle_status(&self) -> Result, Infallible> { [INFO] [stdout] | _________________________________________________________________________^ [INFO] [stdout] 105 | | let StatusSnapshot { [INFO] [stdout] 106 | | client_count, [INFO] [stdout] 107 | | forward_token_count, [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | / self.json( [INFO] [stdout] 113 | | StatusCode::OK, [INFO] [stdout] 114 | | ApiResponse { [INFO] [stdout] 115 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 123 | | }, [INFO] [stdout] 124 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:127:78 [INFO] [stdout] | [INFO] [stdout] 127 | async fn handle_list_tokens(&self) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 128 | | let snapshots: Vec = self.server.token_snapshot().await; [INFO] [stdout] 129 | | [INFO] [stdout] 130 | | let tokens: Vec = snapshots [INFO] [stdout] ... | [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:127:78 [INFO] [stdout] | [INFO] [stdout] 127 | async fn handle_list_tokens(&self) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 128 | | let snapshots: Vec = self.server.token_snapshot().await; [INFO] [stdout] 129 | | [INFO] [stdout] 130 | | let tokens: Vec = snapshots [INFO] [stdout] ... | [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | / self.json( [INFO] [stdout] 140 | | StatusCode::OK, [INFO] [stdout] 141 | | ApiResponse { [INFO] [stdout] 142 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 145 | | }, [INFO] [stdout] 146 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:149:96 [INFO] [stdout] | [INFO] [stdout] 149 | async fn handle_add_token(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 150 | | let body = hyper::body::to_bytes(req.into_body()) [INFO] [stdout] 151 | | .await [INFO] [stdout] 152 | | .unwrap_or_default(); [INFO] [stdout] ... | [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/api.rs:149:96 [INFO] [stdout] | [INFO] [stdout] 149 | async fn handle_add_token(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 150 | | let body = hyper::body::to_bytes(req.into_body()) [INFO] [stdout] 151 | | .await [INFO] [stdout] 152 | | .unwrap_or_default(); [INFO] [stdout] ... | [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/api.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 156 | return self.json( [INFO] [stdout] | ________________________^ [INFO] [stdout] 157 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 158 | | ApiResponse::<()> { [INFO] [stdout] 159 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 162 | | }, [INFO] [stdout] 163 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | / if payload.reverse { [INFO] [stdout] 168 | | let options = ReverseTokenOptions { [INFO] [stdout] 169 | | token: payload.token, [INFO] [stdout] 170 | | port: payload.port, [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:167:28 [INFO] [stdout] | [INFO] [stdout] 167 | if payload.reverse { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 168 | | let options = ReverseTokenOptions { [INFO] [stdout] 169 | | token: payload.token, [INFO] [stdout] 170 | | port: payload.port, [INFO] [stdout] ... | [INFO] [stdout] 201 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | / match self.server.add_reverse_token(options).await { [INFO] [stdout] 177 | | Ok(result) => { [INFO] [stdout] 178 | | let token_info = TokenInfo { [INFO] [stdout] 179 | | token: result.token, [INFO] [stdout] ... | [INFO] [stdout] 199 | | ), [INFO] [stdout] 200 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:177:31 [INFO] [stdout] | [INFO] [stdout] 177 | Ok(result) => { [INFO] [stdout] | _______________________________^ [INFO] [stdout] 178 | | let token_info = TokenInfo { [INFO] [stdout] 179 | | token: result.token, [INFO] [stdout] 180 | | port: result.port, [INFO] [stdout] ... | [INFO] [stdout] 191 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:183:21 [INFO] [stdout] | [INFO] [stdout] 183 | / self.json( [INFO] [stdout] 184 | | StatusCode::OK, [INFO] [stdout] 185 | | ApiResponse { [INFO] [stdout] 186 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 189 | | }, [INFO] [stdout] 190 | | ) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | Err(err) => self.json( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 193 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 194 | | ApiResponse::<()> { [INFO] [stdout] 195 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 198 | | }, [INFO] [stdout] 199 | | ), [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:201:16 [INFO] [stdout] | [INFO] [stdout] 201 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 202 | | match self.server.add_forward_token(payload.token).await { [INFO] [stdout] 203 | | Ok(token) => { [INFO] [stdout] 204 | | let token_info = TokenInfo { [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | / match self.server.add_forward_token(payload.token).await { [INFO] [stdout] 203 | | Ok(token) => { [INFO] [stdout] 204 | | let token_info = TokenInfo { [INFO] [stdout] 205 | | token, [INFO] [stdout] ... | [INFO] [stdout] 225 | | ), [INFO] [stdout] 226 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:203:30 [INFO] [stdout] | [INFO] [stdout] 203 | Ok(token) => { [INFO] [stdout] | ______________________________^ [INFO] [stdout] 204 | | let token_info = TokenInfo { [INFO] [stdout] 205 | | token, [INFO] [stdout] 206 | | port: None, [INFO] [stdout] ... | [INFO] [stdout] 217 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | / self.json( [INFO] [stdout] 210 | | StatusCode::OK, [INFO] [stdout] 211 | | ApiResponse { [INFO] [stdout] 212 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 215 | | }, [INFO] [stdout] 216 | | ) [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:218:29 [INFO] [stdout] | [INFO] [stdout] 218 | Err(err) => self.json( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 219 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 220 | | ApiResponse::<()> { [INFO] [stdout] 221 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 224 | | }, [INFO] [stdout] 225 | | ), [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:230:92 [INFO] [stdout] | [INFO] [stdout] 230 | async fn handle_remove_token(&self, token: &str) -> Result, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 231 | | if token.is_empty() { [INFO] [stdout] 232 | | return self.json( [INFO] [stdout] 233 | | StatusCode::BAD_REQUEST, [INFO] [stdout] ... | [INFO] [stdout] 262 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:230:92 [INFO] [stdout] | [INFO] [stdout] 230 | async fn handle_remove_token(&self, token: &str) -> Result, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 231 | | if token.is_empty() { [INFO] [stdout] 232 | | return self.json( [INFO] [stdout] 233 | | StatusCode::BAD_REQUEST, [INFO] [stdout] ... | [INFO] [stdout] 262 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:232:20 [INFO] [stdout] | [INFO] [stdout] 232 | return self.json( [INFO] [stdout] | ____________________^ [INFO] [stdout] 233 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 234 | | ApiResponse::<()> { [INFO] [stdout] 235 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 238 | | }, [INFO] [stdout] 239 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | / if removed { [INFO] [stdout] 244 | | self.json( [INFO] [stdout] 245 | | StatusCode::OK, [INFO] [stdout] 246 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 261 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:243:20 [INFO] [stdout] | [INFO] [stdout] 243 | if removed { [INFO] [stdout] | ____________________^ [INFO] [stdout] 244 | | self.json( [INFO] [stdout] 245 | | StatusCode::OK, [INFO] [stdout] 246 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 252 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | / self.json( [INFO] [stdout] 245 | | StatusCode::OK, [INFO] [stdout] 246 | | ApiResponse::<()> { [INFO] [stdout] 247 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 250 | | }, [INFO] [stdout] 251 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:252:16 [INFO] [stdout] | [INFO] [stdout] 252 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 253 | | self.json( [INFO] [stdout] 254 | | StatusCode::NOT_FOUND, [INFO] [stdout] 255 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 261 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | / self.json( [INFO] [stdout] 254 | | StatusCode::NOT_FOUND, [INFO] [stdout] 255 | | ApiResponse::<()> { [INFO] [stdout] 256 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 259 | | }, [INFO] [stdout] 260 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:264:100 [INFO] [stdout] | [INFO] [stdout] 264 | async fn handle_add_connector(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 265 | | let body = hyper::body::to_bytes(req.into_body()) [INFO] [stdout] 266 | | .await [INFO] [stdout] 267 | | .unwrap_or_default(); [INFO] [stdout] ... | [INFO] [stdout] 322 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:264:100 [INFO] [stdout] | [INFO] [stdout] 264 | async fn handle_add_connector(&self, req: Request) -> Result, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 265 | | let body = hyper::body::to_bytes(req.into_body()) [INFO] [stdout] 266 | | .await [INFO] [stdout] 267 | | .unwrap_or_default(); [INFO] [stdout] ... | [INFO] [stdout] 322 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:271:24 [INFO] [stdout] | [INFO] [stdout] 271 | return self.json( [INFO] [stdout] | ________________________^ [INFO] [stdout] 272 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 273 | | ApiResponse::<()> { [INFO] [stdout] 274 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 277 | | }, [INFO] [stdout] 278 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:283:20 [INFO] [stdout] | [INFO] [stdout] 283 | return self.json( [INFO] [stdout] | ____________________^ [INFO] [stdout] 284 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 285 | | ApiResponse::<()> { [INFO] [stdout] 286 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 289 | | }, [INFO] [stdout] 290 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | / match self [INFO] [stdout] 294 | | .server [INFO] [stdout] 295 | | .add_connector_token(payload.connector_token, &payload.reverse_token) [INFO] [stdout] 296 | | .await [INFO] [stdout] ... | [INFO] [stdout] 320 | | ), [INFO] [stdout] 321 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:298:26 [INFO] [stdout] | [INFO] [stdout] 298 | Ok(token) => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 299 | | let info = TokenInfo { [INFO] [stdout] 300 | | token, [INFO] [stdout] 301 | | port: None, [INFO] [stdout] ... | [INFO] [stdout] 312 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | / self.json( [INFO] [stdout] 305 | | StatusCode::OK, [INFO] [stdout] 306 | | ApiResponse { [INFO] [stdout] 307 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 310 | | }, [INFO] [stdout] 311 | | ) [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:313:25 [INFO] [stdout] | [INFO] [stdout] 313 | Err(err) => self.json( [INFO] [stdout] | _________________________^ [INFO] [stdout] 314 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 315 | | ApiResponse::<()> { [INFO] [stdout] 316 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 319 | | }, [INFO] [stdout] 320 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:324:96 [INFO] [stdout] | [INFO] [stdout] 324 | async fn handle_remove_connector(&self, token: &str) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 325 | | if token.is_empty() { [INFO] [stdout] 326 | | return self.json( [INFO] [stdout] 327 | | StatusCode::BAD_REQUEST, [INFO] [stdout] ... | [INFO] [stdout] 356 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:324:96 [INFO] [stdout] | [INFO] [stdout] 324 | async fn handle_remove_connector(&self, token: &str) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 325 | | if token.is_empty() { [INFO] [stdout] 326 | | return self.json( [INFO] [stdout] 327 | | StatusCode::BAD_REQUEST, [INFO] [stdout] ... | [INFO] [stdout] 356 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:326:20 [INFO] [stdout] | [INFO] [stdout] 326 | return self.json( [INFO] [stdout] | ____________________^ [INFO] [stdout] 327 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 328 | | ApiResponse::<()> { [INFO] [stdout] 329 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 332 | | }, [INFO] [stdout] 333 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | / if removed { [INFO] [stdout] 338 | | self.json( [INFO] [stdout] 339 | | StatusCode::OK, [INFO] [stdout] 340 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 355 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:337:20 [INFO] [stdout] | [INFO] [stdout] 337 | if removed { [INFO] [stdout] | ____________________^ [INFO] [stdout] 338 | | self.json( [INFO] [stdout] 339 | | StatusCode::OK, [INFO] [stdout] 340 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 346 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | / self.json( [INFO] [stdout] 339 | | StatusCode::OK, [INFO] [stdout] 340 | | ApiResponse::<()> { [INFO] [stdout] 341 | | success: true, [INFO] [stdout] ... | [INFO] [stdout] 344 | | }, [INFO] [stdout] 345 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:346:16 [INFO] [stdout] | [INFO] [stdout] 346 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 347 | | self.json( [INFO] [stdout] 348 | | StatusCode::NOT_FOUND, [INFO] [stdout] 349 | | ApiResponse::<()> { [INFO] [stdout] ... | [INFO] [stdout] 355 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | / self.json( [INFO] [stdout] 348 | | StatusCode::NOT_FOUND, [INFO] [stdout] 349 | | ApiResponse::<()> { [INFO] [stdout] 350 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 353 | | }, [INFO] [stdout] 354 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:362:45 [INFO] [stdout] | [INFO] [stdout] 362 | ) -> Result, Infallible> { [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 363 | | let body = serde_json::to_vec(&payload).unwrap_or_else(|_| { [INFO] [stdout] 364 | | serde_json::to_vec(&ApiResponse::<()> { [INFO] [stdout] 365 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 376 | | .unwrap()) [INFO] [stdout] 377 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | / Ok(Response::builder() [INFO] [stdout] 373 | | .status(status) [INFO] [stdout] 374 | | .header(hyper::header::CONTENT_TYPE, "application/json") [INFO] [stdout] 375 | | .body(Body::from(body)) [INFO] [stdout] 376 | | .unwrap()) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rusocks` (lib test) due to 71 previous errors [INFO] running `Command { std: "docker" "inspect" "9e67c0addfe5f9417490e9a8f8235cd8bce67b27daeab6fb1d985e9ff358b0fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e67c0addfe5f9417490e9a8f8235cd8bce67b27daeab6fb1d985e9ff358b0fb", kill_on_drop: false }` [INFO] [stdout] 9e67c0addfe5f9417490e9a8f8235cd8bce67b27daeab6fb1d985e9ff358b0fb