[INFO] fetching crate etchdns 0.1.2... [INFO] checking etchdns-0.1.2 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate etchdns 0.1.2 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate etchdns 0.1.2 [INFO] finished tweaking crates.io crate etchdns 0.1.2 [INFO] tweaked toml for crates.io crate etchdns 0.1.2 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate etchdns 0.1.2 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 crates.io crate etchdns 0.1.2 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 75a24fbf7bc5651354e8058fa22f1ad09f284e397691012996b47a4daab58e0f [INFO] running `Command { std: "docker" "start" "-a" "75a24fbf7bc5651354e8058fa22f1ad09f284e397691012996b47a4daab58e0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75a24fbf7bc5651354e8058fa22f1ad09f284e397691012996b47a4daab58e0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75a24fbf7bc5651354e8058fa22f1ad09f284e397691012996b47a4daab58e0f", kill_on_drop: false }` [INFO] [stdout] 75a24fbf7bc5651354e8058fa22f1ad09f284e397691012996b47a4daab58e0f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 76a8aad2b2d9a6378da9a612c08476cba8c3660b739458d1298266dff56f0f3f [INFO] running `Command { std: "docker" "start" "-a" "76a8aad2b2d9a6378da9a612c08476cba8c3660b739458d1298266dff56f0f3f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking winnow v0.7.11 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking clap_builder v4.5.40 [INFO] [stderr] Checking toml_writer v1.0.0 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking jiff v0.2.15 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking sieve-cache v1.1.6 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking time-format v1.2.1 [INFO] [stderr] Checking slabigator v0.9.5 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking bpf v0.1.4 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking toml_parser v1.0.0 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Checking privdrop v0.5.6 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tokio v1.46.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking clap v4.5.40 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking serde_spanned v1.0.0 [INFO] [stderr] Checking toml_datetime v0.7.0 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking h2 v0.4.11 [INFO] [stderr] Checking toml v0.9.0 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.15 [INFO] [stderr] Checking etchdns v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function `create_and_broadcast_response` is never used [INFO] [stdout] --> src/query_manager.rs:470:8 [INFO] [stdout] | [INFO] [stdout] 116 | impl QueryManager { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 470 | fn create_and_broadcast_response( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:59:48 [INFO] [stdout] | [INFO] [stdout] 59 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 60 | | let path = req.uri().path(); [INFO] [stdout] 61 | | let method = req.method(); [INFO] [stdout] ... | [INFO] [stdout] 403 | | } [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/control.rs:59:48 [INFO] [stdout] | [INFO] [stdout] 59 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 60 | | let path = req.uri().path(); [INFO] [stdout] 61 | | let method = req.method(); [INFO] [stdout] ... | [INFO] [stdout] 403 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | / match (method, endpoint) { [INFO] [stdout] 78 | | // GET /status - Return server status [INFO] [stdout] 79 | | (&Method::GET, "status") => { [INFO] [stdout] 80 | | let response = ApiResponse { [INFO] [stdout] ... | [INFO] [stdout] 402 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:79:37 [INFO] [stdout] | [INFO] [stdout] 79 | (&Method::GET, "status") => { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 80 | | let response = ApiResponse { [INFO] [stdout] 81 | | success: true, [INFO] [stdout] 82 | | message: "Server is running".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 94 | | Ok(response) [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/control.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:98:36 [INFO] [stdout] | [INFO] [stdout] 98 | (&Method::GET, "cache") => { [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 99 | | if let Some(cache) = dns_cache { [INFO] [stdout] 100 | | // Get cache size and capacity [INFO] [stdout] 101 | | let size = cache.len(); [INFO] [stdout] ... | [INFO] [stdout] 167 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | / if let Some(cache) = dns_cache { [INFO] [stdout] 100 | | // Get cache size and capacity [INFO] [stdout] 101 | | let size = cache.len(); [INFO] [stdout] 102 | | let capacity = cache.capacity(); [INFO] [stdout] ... | [INFO] [stdout] 165 | | Ok(response) [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:99:44 [INFO] [stdout] | [INFO] [stdout] 99 | if let Some(cache) = dns_cache { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 100 | | // Get cache size and capacity [INFO] [stdout] 101 | | let size = cache.len(); [INFO] [stdout] 102 | | let capacity = cache.capacity(); [INFO] [stdout] ... | [INFO] [stdout] 147 | | Ok(response) [INFO] [stdout] 148 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 148 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 149 | | // DNS cache not available [INFO] [stdout] 150 | | let response = ApiResponse { [INFO] [stdout] 151 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 165 | | Ok(response) [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:170:39 [INFO] [stdout] | [INFO] [stdout] 170 | (&Method::DELETE, "cache") => { [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 171 | | if let Some(cache) = dns_cache { [INFO] [stdout] 172 | | // Clear the cache [INFO] [stdout] 173 | | cache.clear(); [INFO] [stdout] ... | [INFO] [stdout] 212 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | / if let Some(cache) = dns_cache { [INFO] [stdout] 172 | | // Clear the cache [INFO] [stdout] 173 | | cache.clear(); [INFO] [stdout] ... | [INFO] [stdout] 210 | | Ok(response) [INFO] [stdout] 211 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:171:44 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(cache) = dns_cache { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 172 | | // Clear the cache [INFO] [stdout] 173 | | cache.clear(); [INFO] [stdout] ... | [INFO] [stdout] 192 | | Ok(response) [INFO] [stdout] 193 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 194 | | // DNS cache not available [INFO] [stdout] 195 | | let response = ApiResponse { [INFO] [stdout] 196 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 210 | | Ok(response) [INFO] [stdout] 211 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:215:81 [INFO] [stdout] | [INFO] [stdout] 215 | (&Method::DELETE, zone_path) if zone_path.starts_with("cache/zone/") => { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 216 | | if let Some(cache) = dns_cache { [INFO] [stdout] 217 | | // Extract the zone from the path [INFO] [stdout] 218 | | let zone = zone_path.strip_prefix("cache/zone/").unwrap_or(""); [INFO] [stdout] ... | [INFO] [stdout] 286 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | / if let Some(cache) = dns_cache { [INFO] [stdout] 217 | | // Extract the zone from the path [INFO] [stdout] 218 | | let zone = zone_path.strip_prefix("cache/zone/").unwrap_or(""); [INFO] [stdout] 219 | | if zone.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 284 | | Ok(response) [INFO] [stdout] 285 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:216:44 [INFO] [stdout] | [INFO] [stdout] 216 | if let Some(cache) = dns_cache { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 217 | | // Extract the zone from the path [INFO] [stdout] 218 | | let zone = zone_path.strip_prefix("cache/zone/").unwrap_or(""); [INFO] [stdout] 219 | | if zone.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 266 | | Ok(response) [INFO] [stdout] 267 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:235:28 [INFO] [stdout] | [INFO] [stdout] 235 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:266:17 [INFO] [stdout] | [INFO] [stdout] 266 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:267:20 [INFO] [stdout] | [INFO] [stdout] 267 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 268 | | // DNS cache not available [INFO] [stdout] 269 | | let response = ApiResponse { [INFO] [stdout] 270 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 284 | | Ok(response) [INFO] [stdout] 285 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:284:17 [INFO] [stdout] | [INFO] [stdout] 284 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:289:81 [INFO] [stdout] | [INFO] [stdout] 289 | (&Method::DELETE, name_path) if name_path.starts_with("cache/name/") => { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 290 | | if let Some(cache) = dns_cache { [INFO] [stdout] 291 | | // Extract the name from the path [INFO] [stdout] 292 | | let name = name_path.strip_prefix("cache/name/").unwrap_or(""); [INFO] [stdout] ... | [INFO] [stdout] 384 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | / if let Some(cache) = dns_cache { [INFO] [stdout] 291 | | // Extract the name from the path [INFO] [stdout] 292 | | let name = name_path.strip_prefix("cache/name/").unwrap_or(""); [INFO] [stdout] 293 | | if name.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 382 | | Ok(response) [INFO] [stdout] 383 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:290:44 [INFO] [stdout] | [INFO] [stdout] 290 | if let Some(cache) = dns_cache { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 291 | | // Extract the name from the path [INFO] [stdout] 292 | | let name = name_path.strip_prefix("cache/name/").unwrap_or(""); [INFO] [stdout] 293 | | if name.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 364 | | Ok(response) [INFO] [stdout] 365 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:309:28 [INFO] [stdout] | [INFO] [stdout] 309 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:337:32 [INFO] [stdout] | [INFO] [stdout] 337 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:364:17 [INFO] [stdout] | [INFO] [stdout] 364 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 366 | | // DNS cache not available [INFO] [stdout] 367 | | let response = ApiResponse { [INFO] [stdout] 368 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 382 | | Ok(response) [INFO] [stdout] 383 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:382:17 [INFO] [stdout] | [INFO] [stdout] 382 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:387:14 [INFO] [stdout] | [INFO] [stdout] 387 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 388 | | let response = ApiResponse { [INFO] [stdout] 389 | | success: false, [INFO] [stdout] 390 | | message: "Endpoint not found".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 400 | | Ok(response) [INFO] [stdout] 401 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:400:13 [INFO] [stdout] | [INFO] [stdout] 400 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:459:28 [INFO] [stdout] | [INFO] [stdout] 459 | async move { handle_request(req, control_path, dns_cache, stats).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:459:30 [INFO] [stdout] | [INFO] [stdout] 459 | async move { handle_request(req, control_path, dns_cache, stats).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:459:82 [INFO] [stdout] | [INFO] [stdout] 459 | async move { handle_request(req, control_path, dns_cache, stats).await } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:459:30 [INFO] [stdout] | [INFO] [stdout] 459 | async move { handle_request(req, control_path, dns_cache, stats).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:32:48 [INFO] [stdout] | [INFO] [stdout] 32 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 33 | | // Check the request method [INFO] [stdout] 34 | | match *req.method() { [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:32:48 [INFO] [stdout] | [INFO] [stdout] 32 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 33 | | // Check the request method [INFO] [stdout] 34 | | match *req.method() { [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / match *req.method() { [INFO] [stdout] 35 | | // Handle GET requests [INFO] [stdout] 36 | | Method::GET => { [INFO] [stdout] 37 | | handle_doh_get_request( [INFO] [stdout] ... | [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | Method::GET => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 37 | | handle_doh_get_request( [INFO] [stdout] 38 | | req, [INFO] [stdout] 39 | | query_manager, [INFO] [stdout] ... | [INFO] [stdout] 47 | | .await [INFO] [stdout] 48 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | / handle_doh_get_request( [INFO] [stdout] 38 | | req, [INFO] [stdout] 39 | | query_manager, [INFO] [stdout] 40 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 47 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | / handle_doh_get_request( [INFO] [stdout] 38 | | req, [INFO] [stdout] 39 | | query_manager, [INFO] [stdout] 40 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 47 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | Method::POST => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 52 | | handle_doh_post_request( [INFO] [stdout] 53 | | req, [INFO] [stdout] 54 | | query_manager, [INFO] [stdout] ... | [INFO] [stdout] 62 | | .await [INFO] [stdout] 63 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | / handle_doh_post_request( [INFO] [stdout] 53 | | req, [INFO] [stdout] 54 | | query_manager, [INFO] [stdout] 55 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 62 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | / handle_doh_post_request( [INFO] [stdout] 53 | | req, [INFO] [stdout] 54 | | query_manager, [INFO] [stdout] 55 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 62 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 67 | | // Method not allowed [INFO] [stdout] 68 | | Ok(create_error_response( [INFO] [stdout] 69 | | "Method Not Allowed", [INFO] [stdout] 70 | | StatusCode::METHOD_NOT_ALLOWED, [INFO] [stdout] 71 | | )) [INFO] [stdout] 72 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | / Ok(create_error_response( [INFO] [stdout] 69 | | "Method Not Allowed", [INFO] [stdout] 70 | | StatusCode::METHOD_NOT_ALLOWED, [INFO] [stdout] 71 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:86:48 [INFO] [stdout] | [INFO] [stdout] 86 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 87 | | // Extract the 'dns' query parameter [INFO] [stdout] 88 | | let uri = req.uri(); [INFO] [stdout] 89 | | let query = uri.query().unwrap_or(""); [INFO] [stdout] ... | [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/doh.rs:86:48 [INFO] [stdout] | [INFO] [stdout] 86 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 87 | | // Extract the 'dns' query parameter [INFO] [stdout] 88 | | let uri = req.uri(); [INFO] [stdout] 89 | | let query = uri.query().unwrap_or(""); [INFO] [stdout] ... | [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/doh.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / match dns_param { [INFO] [stdout] 100 | | Some((_, value)) => { [INFO] [stdout] 101 | | // Decode the base64url encoded DNS message [INFO] [stdout] 102 | | match general_purpose::URL_SAFE_NO_PAD.decode(value) { [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 100 | Some((_, value)) => { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 101 | | // Decode the base64url encoded DNS message [INFO] [stdout] 102 | | match general_purpose::URL_SAFE_NO_PAD.decode(value) { [INFO] [stdout] 103 | | Ok(dns_message) => { [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/doh.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | / match general_purpose::URL_SAFE_NO_PAD.decode(value) { [INFO] [stdout] 103 | | Ok(dns_message) => { [INFO] [stdout] 104 | | // Process the DNS message [INFO] [stdout] 105 | | process_dns_message( [INFO] [stdout] ... | [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/doh.rs:103:36 [INFO] [stdout] | [INFO] [stdout] 103 | Ok(dns_message) => { [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 104 | | // Process the DNS message [INFO] [stdout] 105 | | process_dns_message( [INFO] [stdout] 106 | | dns_message, [INFO] [stdout] ... | [INFO] [stdout] 115 | | .await [INFO] [stdout] 116 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | / process_dns_message( [INFO] [stdout] 106 | | dns_message, [INFO] [stdout] 107 | | query_manager, [INFO] [stdout] 108 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 115 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:115:22 [INFO] [stdout] | [INFO] [stdout] 115 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | / process_dns_message( [INFO] [stdout] 106 | | dns_message, [INFO] [stdout] 107 | | query_manager, [INFO] [stdout] 108 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 115 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | Err(e) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 118 | | error!("Failed to decode base64url DNS message: {e}"); [INFO] [stdout] 119 | | Ok(create_error_response( [INFO] [stdout] 120 | | "Bad Request: Invalid DNS message encoding", [INFO] [stdout] 121 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 122 | | )) [INFO] [stdout] 123 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | / Ok(create_error_response( [INFO] [stdout] 120 | | "Bad Request: Invalid DNS message encoding", [INFO] [stdout] 121 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 122 | | )) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | None => { [INFO] [stdout] | _________________^ [INFO] [stdout] 127 | | // Missing 'dns' parameter [INFO] [stdout] 128 | | Ok(create_error_response( [INFO] [stdout] 129 | | "Bad Request: Missing 'dns' parameter", [INFO] [stdout] 130 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 131 | | )) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | / Ok(create_error_response( [INFO] [stdout] 129 | | "Bad Request: Missing 'dns' parameter", [INFO] [stdout] 130 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 131 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:146:48 [INFO] [stdout] | [INFO] [stdout] 146 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 147 | | // Check the Content-Type header [INFO] [stdout] 148 | | let content_type = req [INFO] [stdout] 149 | | .headers() [INFO] [stdout] ... | [INFO] [stdout] 186 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:146:48 [INFO] [stdout] | [INFO] [stdout] 146 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 147 | | // Check the Content-Type header [INFO] [stdout] 148 | | let content_type = req [INFO] [stdout] 149 | | .headers() [INFO] [stdout] ... | [INFO] [stdout] 186 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | / if content_type == "application/dns-message" { [INFO] [stdout] 155 | | // Read the request body [INFO] [stdout] 156 | | match req.into_body().collect().await { [INFO] [stdout] 157 | | Ok(bytes) => { [INFO] [stdout] ... | [INFO] [stdout] 184 | | )) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:154:50 [INFO] [stdout] | [INFO] [stdout] 154 | if content_type == "application/dns-message" { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 155 | | // Read the request body [INFO] [stdout] 156 | | match req.into_body().collect().await { [INFO] [stdout] 157 | | Ok(bytes) => { [INFO] [stdout] ... | [INFO] [stdout] 179 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | / match req.into_body().collect().await { [INFO] [stdout] 157 | | Ok(bytes) => { [INFO] [stdout] 158 | | // Process the DNS message [INFO] [stdout] 159 | | process_dns_message( [INFO] [stdout] ... | [INFO] [stdout] 178 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:157:26 [INFO] [stdout] | [INFO] [stdout] 157 | Ok(bytes) => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 158 | | // Process the DNS message [INFO] [stdout] 159 | | process_dns_message( [INFO] [stdout] 160 | | bytes.to_bytes().to_vec(), [INFO] [stdout] ... | [INFO] [stdout] 169 | | .await [INFO] [stdout] 170 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | / process_dns_message( [INFO] [stdout] 160 | | bytes.to_bytes().to_vec(), [INFO] [stdout] 161 | | query_manager, [INFO] [stdout] 162 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 169 | | .await [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:169:18 [INFO] [stdout] | [INFO] [stdout] 169 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | / process_dns_message( [INFO] [stdout] 160 | | bytes.to_bytes().to_vec(), [INFO] [stdout] 161 | | query_manager, [INFO] [stdout] 162 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 169 | | .await [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:171:23 [INFO] [stdout] | [INFO] [stdout] 171 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 172 | | error!("Failed to read request body: {e}"); [INFO] [stdout] 173 | | Ok(create_error_response( [INFO] [stdout] 174 | | "Bad Request: Failed to read request body", [INFO] [stdout] 175 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 176 | | )) [INFO] [stdout] 177 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | / Ok(create_error_response( [INFO] [stdout] 174 | | "Bad Request: Failed to read request body", [INFO] [stdout] 175 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 176 | | )) [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 180 | | // Invalid Content-Type [INFO] [stdout] 181 | | Ok(create_error_response( [INFO] [stdout] 182 | | "Bad Request: Content-Type must be application/dns-message", [INFO] [stdout] 183 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 184 | | )) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | / Ok(create_error_response( [INFO] [stdout] 182 | | "Bad Request: Content-Type must be application/dns-message", [INFO] [stdout] 183 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 184 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:210:48 [INFO] [stdout] | [INFO] [stdout] 210 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 211 | | // Create a DoH handler [INFO] [stdout] 212 | | let handler = DoHHandler; [INFO] [stdout] ... | [INFO] [stdout] 243 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:210:48 [INFO] [stdout] | [INFO] [stdout] 210 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 211 | | // Create a DoH handler [INFO] [stdout] 212 | | let handler = DoHHandler; [INFO] [stdout] ... | [INFO] [stdout] 243 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | / match result { [INFO] [stdout] 231 | | Some((response_data, _)) => { [INFO] [stdout] 232 | | // Create and return a successful response [INFO] [stdout] 233 | | Ok(create_dns_response(&response_data)) [INFO] [stdout] ... | [INFO] [stdout] 242 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:231:37 [INFO] [stdout] | [INFO] [stdout] 231 | Some((response_data, _)) => { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 232 | | // Create and return a successful response [INFO] [stdout] 233 | | Ok(create_dns_response(&response_data)) [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/doh.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | Ok(create_dns_response(&response_data)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:235:17 [INFO] [stdout] | [INFO] [stdout] 235 | None => { [INFO] [stdout] | _________________^ [INFO] [stdout] 236 | | // Error already logged in process_dns_query [INFO] [stdout] 237 | | Ok(create_error_response( [INFO] [stdout] 238 | | "Internal Server Error", [INFO] [stdout] 239 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 240 | | )) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | / Ok(create_error_response( [INFO] [stdout] 238 | | "Internal Server Error", [INFO] [stdout] 239 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 240 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:421:20 [INFO] [stdout] | [INFO] [stdout] 421 | async move { [INFO] [stdout] | ____________________^ [INFO] [stdout] 422 | | handle_doh_request( [INFO] [stdout] 423 | | req, [INFO] [stdout] 424 | | query_manager, [INFO] [stdout] ... | [INFO] [stdout] 432 | | .await [INFO] [stdout] 433 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | / handle_doh_request( [INFO] [stdout] 423 | | req, [INFO] [stdout] 424 | | query_manager, [INFO] [stdout] 425 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 432 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:432:14 [INFO] [stdout] | [INFO] [stdout] 432 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | / handle_doh_request( [INFO] [stdout] 423 | | req, [INFO] [stdout] 424 | | query_manager, [INFO] [stdout] 425 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 432 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:271:48 [INFO] [stdout] | [INFO] [stdout] 271 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 272 | | let path = req.uri().path(); [INFO] [stdout] 273 | | [INFO] [stdout] 274 | | if path == metrics_path { [INFO] [stdout] ... | [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/metrics.rs:271:48 [INFO] [stdout] | [INFO] [stdout] 271 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 272 | | let path = req.uri().path(); [INFO] [stdout] 273 | | [INFO] [stdout] 274 | | if path == metrics_path { [INFO] [stdout] ... | [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/metrics.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 274 | / if path == metrics_path { [INFO] [stdout] 275 | | // Get the current stats [INFO] [stdout] 276 | | let current_stats = stats.get_stats().await; [INFO] [stdout] ... | [INFO] [stdout] 318 | | Ok(response) [INFO] [stdout] 319 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:274:29 [INFO] [stdout] | [INFO] [stdout] 274 | if path == metrics_path { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 275 | | // Get the current stats [INFO] [stdout] 276 | | let current_stats = stats.get_stats().await; [INFO] [stdout] ... | [INFO] [stdout] 313 | | Ok(Response::new(Full::new(Bytes::from(metrics_text)))) [INFO] [stdout] 314 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:313:9 [INFO] [stdout] | [INFO] [stdout] 313 | Ok(Response::new(Full::new(Bytes::from(metrics_text)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 315 | | // Return 404 for any other path [INFO] [stdout] 316 | | let mut response = Response::new(Full::new(Bytes::from("Not Found"))); [INFO] [stdout] 317 | | *response.status_mut() = StatusCode::NOT_FOUND; [INFO] [stdout] 318 | | Ok(response) [INFO] [stdout] 319 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 318 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:374:28 [INFO] [stdout] | [INFO] [stdout] 374 | async move { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 375 | | handle_request( [INFO] [stdout] 376 | | req, [INFO] [stdout] 377 | | stats, [INFO] [stdout] ... | [INFO] [stdout] 384 | | .await [INFO] [stdout] 385 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:375:21 [INFO] [stdout] | [INFO] [stdout] 375 | / handle_request( [INFO] [stdout] 376 | | req, [INFO] [stdout] 377 | | stats, [INFO] [stdout] 378 | | metrics_path, [INFO] [stdout] ... | [INFO] [stdout] 384 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:384:22 [INFO] [stdout] | [INFO] [stdout] 384 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:375:21 [INFO] [stdout] | [INFO] [stdout] 375 | / handle_request( [INFO] [stdout] 376 | | req, [INFO] [stdout] 377 | | stats, [INFO] [stdout] 378 | | metrics_path, [INFO] [stdout] ... | [INFO] [stdout] 384 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `etchdns` (lib) due to 100 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: associated function `create_and_broadcast_response` is never used [INFO] [stdout] --> src/query_manager.rs:470:8 [INFO] [stdout] | [INFO] [stdout] 116 | impl QueryManager { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 470 | fn create_and_broadcast_response( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:59:48 [INFO] [stdout] | [INFO] [stdout] 59 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 60 | | let path = req.uri().path(); [INFO] [stdout] 61 | | let method = req.method(); [INFO] [stdout] ... | [INFO] [stdout] 403 | | } [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/control.rs:59:48 [INFO] [stdout] | [INFO] [stdout] 59 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 60 | | let path = req.uri().path(); [INFO] [stdout] 61 | | let method = req.method(); [INFO] [stdout] ... | [INFO] [stdout] 403 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | / match (method, endpoint) { [INFO] [stdout] 78 | | // GET /status - Return server status [INFO] [stdout] 79 | | (&Method::GET, "status") => { [INFO] [stdout] 80 | | let response = ApiResponse { [INFO] [stdout] ... | [INFO] [stdout] 402 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:79:37 [INFO] [stdout] | [INFO] [stdout] 79 | (&Method::GET, "status") => { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 80 | | let response = ApiResponse { [INFO] [stdout] 81 | | success: true, [INFO] [stdout] 82 | | message: "Server is running".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 94 | | Ok(response) [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/control.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:98:36 [INFO] [stdout] | [INFO] [stdout] 98 | (&Method::GET, "cache") => { [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 99 | | if let Some(cache) = dns_cache { [INFO] [stdout] 100 | | // Get cache size and capacity [INFO] [stdout] 101 | | let size = cache.len(); [INFO] [stdout] ... | [INFO] [stdout] 167 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | / if let Some(cache) = dns_cache { [INFO] [stdout] 100 | | // Get cache size and capacity [INFO] [stdout] 101 | | let size = cache.len(); [INFO] [stdout] 102 | | let capacity = cache.capacity(); [INFO] [stdout] ... | [INFO] [stdout] 165 | | Ok(response) [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:99:44 [INFO] [stdout] | [INFO] [stdout] 99 | if let Some(cache) = dns_cache { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 100 | | // Get cache size and capacity [INFO] [stdout] 101 | | let size = cache.len(); [INFO] [stdout] 102 | | let capacity = cache.capacity(); [INFO] [stdout] ... | [INFO] [stdout] 147 | | Ok(response) [INFO] [stdout] 148 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 148 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 149 | | // DNS cache not available [INFO] [stdout] 150 | | let response = ApiResponse { [INFO] [stdout] 151 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 165 | | Ok(response) [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:170:39 [INFO] [stdout] | [INFO] [stdout] 170 | (&Method::DELETE, "cache") => { [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 171 | | if let Some(cache) = dns_cache { [INFO] [stdout] 172 | | // Clear the cache [INFO] [stdout] 173 | | cache.clear(); [INFO] [stdout] ... | [INFO] [stdout] 212 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | / if let Some(cache) = dns_cache { [INFO] [stdout] 172 | | // Clear the cache [INFO] [stdout] 173 | | cache.clear(); [INFO] [stdout] ... | [INFO] [stdout] 210 | | Ok(response) [INFO] [stdout] 211 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:171:44 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(cache) = dns_cache { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 172 | | // Clear the cache [INFO] [stdout] 173 | | cache.clear(); [INFO] [stdout] ... | [INFO] [stdout] 192 | | Ok(response) [INFO] [stdout] 193 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 194 | | // DNS cache not available [INFO] [stdout] 195 | | let response = ApiResponse { [INFO] [stdout] 196 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 210 | | Ok(response) [INFO] [stdout] 211 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:215:81 [INFO] [stdout] | [INFO] [stdout] 215 | (&Method::DELETE, zone_path) if zone_path.starts_with("cache/zone/") => { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 216 | | if let Some(cache) = dns_cache { [INFO] [stdout] 217 | | // Extract the zone from the path [INFO] [stdout] 218 | | let zone = zone_path.strip_prefix("cache/zone/").unwrap_or(""); [INFO] [stdout] ... | [INFO] [stdout] 286 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | / if let Some(cache) = dns_cache { [INFO] [stdout] 217 | | // Extract the zone from the path [INFO] [stdout] 218 | | let zone = zone_path.strip_prefix("cache/zone/").unwrap_or(""); [INFO] [stdout] 219 | | if zone.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 284 | | Ok(response) [INFO] [stdout] 285 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:216:44 [INFO] [stdout] | [INFO] [stdout] 216 | if let Some(cache) = dns_cache { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 217 | | // Extract the zone from the path [INFO] [stdout] 218 | | let zone = zone_path.strip_prefix("cache/zone/").unwrap_or(""); [INFO] [stdout] 219 | | if zone.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 266 | | Ok(response) [INFO] [stdout] 267 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:235:28 [INFO] [stdout] | [INFO] [stdout] 235 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:266:17 [INFO] [stdout] | [INFO] [stdout] 266 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:267:20 [INFO] [stdout] | [INFO] [stdout] 267 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 268 | | // DNS cache not available [INFO] [stdout] 269 | | let response = ApiResponse { [INFO] [stdout] 270 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 284 | | Ok(response) [INFO] [stdout] 285 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:284:17 [INFO] [stdout] | [INFO] [stdout] 284 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:289:81 [INFO] [stdout] | [INFO] [stdout] 289 | (&Method::DELETE, name_path) if name_path.starts_with("cache/name/") => { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 290 | | if let Some(cache) = dns_cache { [INFO] [stdout] 291 | | // Extract the name from the path [INFO] [stdout] 292 | | let name = name_path.strip_prefix("cache/name/").unwrap_or(""); [INFO] [stdout] ... | [INFO] [stdout] 384 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | / if let Some(cache) = dns_cache { [INFO] [stdout] 291 | | // Extract the name from the path [INFO] [stdout] 292 | | let name = name_path.strip_prefix("cache/name/").unwrap_or(""); [INFO] [stdout] 293 | | if name.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 382 | | Ok(response) [INFO] [stdout] 383 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:290:44 [INFO] [stdout] | [INFO] [stdout] 290 | if let Some(cache) = dns_cache { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 291 | | // Extract the name from the path [INFO] [stdout] 292 | | let name = name_path.strip_prefix("cache/name/").unwrap_or(""); [INFO] [stdout] 293 | | if name.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 364 | | Ok(response) [INFO] [stdout] 365 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:309:28 [INFO] [stdout] | [INFO] [stdout] 309 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:337:32 [INFO] [stdout] | [INFO] [stdout] 337 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:364:17 [INFO] [stdout] | [INFO] [stdout] 364 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 366 | | // DNS cache not available [INFO] [stdout] 367 | | let response = ApiResponse { [INFO] [stdout] 368 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 382 | | Ok(response) [INFO] [stdout] 383 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:382:17 [INFO] [stdout] | [INFO] [stdout] 382 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:387:14 [INFO] [stdout] | [INFO] [stdout] 387 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 388 | | let response = ApiResponse { [INFO] [stdout] 389 | | success: false, [INFO] [stdout] 390 | | message: "Endpoint not found".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 400 | | Ok(response) [INFO] [stdout] 401 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:400:13 [INFO] [stdout] | [INFO] [stdout] 400 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:459:28 [INFO] [stdout] | [INFO] [stdout] 459 | async move { handle_request(req, control_path, dns_cache, stats).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:459:30 [INFO] [stdout] | [INFO] [stdout] 459 | async move { handle_request(req, control_path, dns_cache, stats).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:459:82 [INFO] [stdout] | [INFO] [stdout] 459 | async move { handle_request(req, control_path, dns_cache, stats).await } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/control.rs:459:30 [INFO] [stdout] | [INFO] [stdout] 459 | async move { handle_request(req, control_path, dns_cache, stats).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:32:48 [INFO] [stdout] | [INFO] [stdout] 32 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 33 | | // Check the request method [INFO] [stdout] 34 | | match *req.method() { [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:32:48 [INFO] [stdout] | [INFO] [stdout] 32 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 33 | | // Check the request method [INFO] [stdout] 34 | | match *req.method() { [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / match *req.method() { [INFO] [stdout] 35 | | // Handle GET requests [INFO] [stdout] 36 | | Method::GET => { [INFO] [stdout] 37 | | handle_doh_get_request( [INFO] [stdout] ... | [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | Method::GET => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 37 | | handle_doh_get_request( [INFO] [stdout] 38 | | req, [INFO] [stdout] 39 | | query_manager, [INFO] [stdout] ... | [INFO] [stdout] 47 | | .await [INFO] [stdout] 48 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | / handle_doh_get_request( [INFO] [stdout] 38 | | req, [INFO] [stdout] 39 | | query_manager, [INFO] [stdout] 40 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 47 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | / handle_doh_get_request( [INFO] [stdout] 38 | | req, [INFO] [stdout] 39 | | query_manager, [INFO] [stdout] 40 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 47 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | Method::POST => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 52 | | handle_doh_post_request( [INFO] [stdout] 53 | | req, [INFO] [stdout] 54 | | query_manager, [INFO] [stdout] ... | [INFO] [stdout] 62 | | .await [INFO] [stdout] 63 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | / handle_doh_post_request( [INFO] [stdout] 53 | | req, [INFO] [stdout] 54 | | query_manager, [INFO] [stdout] 55 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 62 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | / handle_doh_post_request( [INFO] [stdout] 53 | | req, [INFO] [stdout] 54 | | query_manager, [INFO] [stdout] 55 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 62 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 67 | | // Method not allowed [INFO] [stdout] 68 | | Ok(create_error_response( [INFO] [stdout] 69 | | "Method Not Allowed", [INFO] [stdout] 70 | | StatusCode::METHOD_NOT_ALLOWED, [INFO] [stdout] 71 | | )) [INFO] [stdout] 72 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | / Ok(create_error_response( [INFO] [stdout] 69 | | "Method Not Allowed", [INFO] [stdout] 70 | | StatusCode::METHOD_NOT_ALLOWED, [INFO] [stdout] 71 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:86:48 [INFO] [stdout] | [INFO] [stdout] 86 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 87 | | // Extract the 'dns' query parameter [INFO] [stdout] 88 | | let uri = req.uri(); [INFO] [stdout] 89 | | let query = uri.query().unwrap_or(""); [INFO] [stdout] ... | [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/doh.rs:86:48 [INFO] [stdout] | [INFO] [stdout] 86 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 87 | | // Extract the 'dns' query parameter [INFO] [stdout] 88 | | let uri = req.uri(); [INFO] [stdout] 89 | | let query = uri.query().unwrap_or(""); [INFO] [stdout] ... | [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/doh.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / match dns_param { [INFO] [stdout] 100 | | Some((_, value)) => { [INFO] [stdout] 101 | | // Decode the base64url encoded DNS message [INFO] [stdout] 102 | | match general_purpose::URL_SAFE_NO_PAD.decode(value) { [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 100 | Some((_, value)) => { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 101 | | // Decode the base64url encoded DNS message [INFO] [stdout] 102 | | match general_purpose::URL_SAFE_NO_PAD.decode(value) { [INFO] [stdout] 103 | | Ok(dns_message) => { [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/doh.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | / match general_purpose::URL_SAFE_NO_PAD.decode(value) { [INFO] [stdout] 103 | | Ok(dns_message) => { [INFO] [stdout] 104 | | // Process the DNS message [INFO] [stdout] 105 | | process_dns_message( [INFO] [stdout] ... | [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/doh.rs:103:36 [INFO] [stdout] | [INFO] [stdout] 103 | Ok(dns_message) => { [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 104 | | // Process the DNS message [INFO] [stdout] 105 | | process_dns_message( [INFO] [stdout] 106 | | dns_message, [INFO] [stdout] ... | [INFO] [stdout] 115 | | .await [INFO] [stdout] 116 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | / process_dns_message( [INFO] [stdout] 106 | | dns_message, [INFO] [stdout] 107 | | query_manager, [INFO] [stdout] 108 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 115 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:115:22 [INFO] [stdout] | [INFO] [stdout] 115 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | / process_dns_message( [INFO] [stdout] 106 | | dns_message, [INFO] [stdout] 107 | | query_manager, [INFO] [stdout] 108 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 115 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | Err(e) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 118 | | error!("Failed to decode base64url DNS message: {e}"); [INFO] [stdout] 119 | | Ok(create_error_response( [INFO] [stdout] 120 | | "Bad Request: Invalid DNS message encoding", [INFO] [stdout] 121 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 122 | | )) [INFO] [stdout] 123 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | / Ok(create_error_response( [INFO] [stdout] 120 | | "Bad Request: Invalid DNS message encoding", [INFO] [stdout] 121 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 122 | | )) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | None => { [INFO] [stdout] | _________________^ [INFO] [stdout] 127 | | // Missing 'dns' parameter [INFO] [stdout] 128 | | Ok(create_error_response( [INFO] [stdout] 129 | | "Bad Request: Missing 'dns' parameter", [INFO] [stdout] 130 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 131 | | )) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | / Ok(create_error_response( [INFO] [stdout] 129 | | "Bad Request: Missing 'dns' parameter", [INFO] [stdout] 130 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 131 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:146:48 [INFO] [stdout] | [INFO] [stdout] 146 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 147 | | // Check the Content-Type header [INFO] [stdout] 148 | | let content_type = req [INFO] [stdout] 149 | | .headers() [INFO] [stdout] ... | [INFO] [stdout] 186 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:146:48 [INFO] [stdout] | [INFO] [stdout] 146 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 147 | | // Check the Content-Type header [INFO] [stdout] 148 | | let content_type = req [INFO] [stdout] 149 | | .headers() [INFO] [stdout] ... | [INFO] [stdout] 186 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | / if content_type == "application/dns-message" { [INFO] [stdout] 155 | | // Read the request body [INFO] [stdout] 156 | | match req.into_body().collect().await { [INFO] [stdout] 157 | | Ok(bytes) => { [INFO] [stdout] ... | [INFO] [stdout] 184 | | )) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:154:50 [INFO] [stdout] | [INFO] [stdout] 154 | if content_type == "application/dns-message" { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 155 | | // Read the request body [INFO] [stdout] 156 | | match req.into_body().collect().await { [INFO] [stdout] 157 | | Ok(bytes) => { [INFO] [stdout] ... | [INFO] [stdout] 179 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | / match req.into_body().collect().await { [INFO] [stdout] 157 | | Ok(bytes) => { [INFO] [stdout] 158 | | // Process the DNS message [INFO] [stdout] 159 | | process_dns_message( [INFO] [stdout] ... | [INFO] [stdout] 178 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:157:26 [INFO] [stdout] | [INFO] [stdout] 157 | Ok(bytes) => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 158 | | // Process the DNS message [INFO] [stdout] 159 | | process_dns_message( [INFO] [stdout] 160 | | bytes.to_bytes().to_vec(), [INFO] [stdout] ... | [INFO] [stdout] 169 | | .await [INFO] [stdout] 170 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | / process_dns_message( [INFO] [stdout] 160 | | bytes.to_bytes().to_vec(), [INFO] [stdout] 161 | | query_manager, [INFO] [stdout] 162 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 169 | | .await [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:169:18 [INFO] [stdout] | [INFO] [stdout] 169 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | / process_dns_message( [INFO] [stdout] 160 | | bytes.to_bytes().to_vec(), [INFO] [stdout] 161 | | query_manager, [INFO] [stdout] 162 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 169 | | .await [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:171:23 [INFO] [stdout] | [INFO] [stdout] 171 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 172 | | error!("Failed to read request body: {e}"); [INFO] [stdout] 173 | | Ok(create_error_response( [INFO] [stdout] 174 | | "Bad Request: Failed to read request body", [INFO] [stdout] 175 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 176 | | )) [INFO] [stdout] 177 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | / Ok(create_error_response( [INFO] [stdout] 174 | | "Bad Request: Failed to read request body", [INFO] [stdout] 175 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 176 | | )) [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 180 | | // Invalid Content-Type [INFO] [stdout] 181 | | Ok(create_error_response( [INFO] [stdout] 182 | | "Bad Request: Content-Type must be application/dns-message", [INFO] [stdout] 183 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 184 | | )) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | / Ok(create_error_response( [INFO] [stdout] 182 | | "Bad Request: Content-Type must be application/dns-message", [INFO] [stdout] 183 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 184 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:210:48 [INFO] [stdout] | [INFO] [stdout] 210 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 211 | | // Create a DoH handler [INFO] [stdout] 212 | | let handler = DoHHandler; [INFO] [stdout] ... | [INFO] [stdout] 243 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:210:48 [INFO] [stdout] | [INFO] [stdout] 210 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 211 | | // Create a DoH handler [INFO] [stdout] 212 | | let handler = DoHHandler; [INFO] [stdout] ... | [INFO] [stdout] 243 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | / match result { [INFO] [stdout] 231 | | Some((response_data, _)) => { [INFO] [stdout] 232 | | // Create and return a successful response [INFO] [stdout] 233 | | Ok(create_dns_response(&response_data)) [INFO] [stdout] ... | [INFO] [stdout] 242 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:231:37 [INFO] [stdout] | [INFO] [stdout] 231 | Some((response_data, _)) => { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 232 | | // Create and return a successful response [INFO] [stdout] 233 | | Ok(create_dns_response(&response_data)) [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/doh.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | Ok(create_dns_response(&response_data)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:235:17 [INFO] [stdout] | [INFO] [stdout] 235 | None => { [INFO] [stdout] | _________________^ [INFO] [stdout] 236 | | // Error already logged in process_dns_query [INFO] [stdout] 237 | | Ok(create_error_response( [INFO] [stdout] 238 | | "Internal Server Error", [INFO] [stdout] 239 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 240 | | )) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | / Ok(create_error_response( [INFO] [stdout] 238 | | "Internal Server Error", [INFO] [stdout] 239 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 240 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:421:20 [INFO] [stdout] | [INFO] [stdout] 421 | async move { [INFO] [stdout] | ____________________^ [INFO] [stdout] 422 | | handle_doh_request( [INFO] [stdout] 423 | | req, [INFO] [stdout] 424 | | query_manager, [INFO] [stdout] ... | [INFO] [stdout] 432 | | .await [INFO] [stdout] 433 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | / handle_doh_request( [INFO] [stdout] 423 | | req, [INFO] [stdout] 424 | | query_manager, [INFO] [stdout] 425 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 432 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:432:14 [INFO] [stdout] | [INFO] [stdout] 432 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/doh.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | / handle_doh_request( [INFO] [stdout] 423 | | req, [INFO] [stdout] 424 | | query_manager, [INFO] [stdout] 425 | | upstream_servers, [INFO] [stdout] ... | [INFO] [stdout] 432 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:271:48 [INFO] [stdout] | [INFO] [stdout] 271 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 272 | | let path = req.uri().path(); [INFO] [stdout] 273 | | [INFO] [stdout] 274 | | if path == metrics_path { [INFO] [stdout] ... | [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/metrics.rs:271:48 [INFO] [stdout] | [INFO] [stdout] 271 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 272 | | let path = req.uri().path(); [INFO] [stdout] 273 | | [INFO] [stdout] 274 | | if path == metrics_path { [INFO] [stdout] ... | [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/metrics.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 274 | / if path == metrics_path { [INFO] [stdout] 275 | | // Get the current stats [INFO] [stdout] 276 | | let current_stats = stats.get_stats().await; [INFO] [stdout] ... | [INFO] [stdout] 318 | | Ok(response) [INFO] [stdout] 319 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:274:29 [INFO] [stdout] | [INFO] [stdout] 274 | if path == metrics_path { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 275 | | // Get the current stats [INFO] [stdout] 276 | | let current_stats = stats.get_stats().await; [INFO] [stdout] ... | [INFO] [stdout] 313 | | Ok(Response::new(Full::new(Bytes::from(metrics_text)))) [INFO] [stdout] 314 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:313:9 [INFO] [stdout] | [INFO] [stdout] 313 | Ok(Response::new(Full::new(Bytes::from(metrics_text)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 315 | | // Return 404 for any other path [INFO] [stdout] 316 | | let mut response = Response::new(Full::new(Bytes::from("Not Found"))); [INFO] [stdout] 317 | | *response.status_mut() = StatusCode::NOT_FOUND; [INFO] [stdout] 318 | | Ok(response) [INFO] [stdout] 319 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 318 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:374:28 [INFO] [stdout] | [INFO] [stdout] 374 | async move { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 375 | | handle_request( [INFO] [stdout] 376 | | req, [INFO] [stdout] 377 | | stats, [INFO] [stdout] ... | [INFO] [stdout] 384 | | .await [INFO] [stdout] 385 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:375:21 [INFO] [stdout] | [INFO] [stdout] 375 | / handle_request( [INFO] [stdout] 376 | | req, [INFO] [stdout] 377 | | stats, [INFO] [stdout] 378 | | metrics_path, [INFO] [stdout] ... | [INFO] [stdout] 384 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:384:22 [INFO] [stdout] | [INFO] [stdout] 384 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/metrics.rs:375:21 [INFO] [stdout] | [INFO] [stdout] 375 | / handle_request( [INFO] [stdout] 376 | | req, [INFO] [stdout] 377 | | stats, [INFO] [stdout] 378 | | metrics_path, [INFO] [stdout] ... | [INFO] [stdout] 384 | | .await [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `etchdns` (lib test) due to 100 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "76a8aad2b2d9a6378da9a612c08476cba8c3660b739458d1298266dff56f0f3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76a8aad2b2d9a6378da9a612c08476cba8c3660b739458d1298266dff56f0f3f", kill_on_drop: false }` [INFO] [stdout] 76a8aad2b2d9a6378da9a612c08476cba8c3660b739458d1298266dff56f0f3f