[INFO] cloning repository https://github.com/volcaxiao/openssl-experiment [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/volcaxiao/openssl-experiment" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolcaxiao%2Fopenssl-experiment", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolcaxiao%2Fopenssl-experiment'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e73b562d95bacc997463fb2e48ac0c330867c501 [INFO] checking volcaxiao/openssl-experiment against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolcaxiao%2Fopenssl-experiment" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/volcaxiao/openssl-experiment [INFO] finished tweaking git repo https://github.com/volcaxiao/openssl-experiment [INFO] tweaked toml for git repo https://github.com/volcaxiao/openssl-experiment written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/volcaxiao/openssl-experiment on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/volcaxiao/openssl-experiment already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d4b4bd95e7497bbf3acbf37e65079c4d0b36dbc92be33c4091374012ffabe827 [INFO] running `Command { std: "docker" "start" "-a" "d4b4bd95e7497bbf3acbf37e65079c4d0b36dbc92be33c4091374012ffabe827", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4b4bd95e7497bbf3acbf37e65079c4d0b36dbc92be33c4091374012ffabe827", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4b4bd95e7497bbf3acbf37e65079c4d0b36dbc92be33c4091374012ffabe827", kill_on_drop: false }` [INFO] [stdout] d4b4bd95e7497bbf3acbf37e65079c4d0b36dbc92be33c4091374012ffabe827 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db403e11bb158ae4bdcd388b59ece87a73f8589c299df14b52536cbb1f7103a1 [INFO] running `Command { std: "docker" "start" "-a" "db403e11bb158ae4bdcd388b59ece87a73f8589c299df14b52536cbb1f7103a1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling cc v1.0.97 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling syn v2.0.62 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling tokio-openssl v0.6.4 [INFO] [stderr] Checking rustls-pki-types v1.7.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl-src v300.2.3+3.2.1 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Compiling markup5ever v0.12.1 [INFO] [stderr] Checking string_cache v0.8.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling html5ever v0.27.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking ammonia v4.0.0 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.4.4 [INFO] [stderr] Checking hyper v1.3.1 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.4 [INFO] [stderr] Checking openssl-experiment v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/sess-listener.rs:36:103 [INFO] [stdout] | [INFO] [stdout] 36 | async fn handle(request: Request) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________^ [INFO] [stdout] 37 | | match request.uri().path() { [INFO] [stdout] 38 | | "/session" => { [INFO] [stdout] 39 | | let body = request.into_body().frame().await.unwrap().unwrap().into_data().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [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/bin/sess-listener.rs:36:103 [INFO] [stdout] | [INFO] [stdout] 36 | async fn handle(request: Request) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________^ [INFO] [stdout] 37 | | match request.uri().path() { [INFO] [stdout] 38 | | "/session" => { [INFO] [stdout] 39 | | let body = request.into_body().frame().await.unwrap().unwrap().into_data().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/sess-listener.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / match request.uri().path() { [INFO] [stdout] 38 | | "/session" => { [INFO] [stdout] 39 | | let body = request.into_body().frame().await.unwrap().unwrap().into_data().unwrap(); [INFO] [stdout] 40 | | let body = String::from_utf8_lossy(&body); [INFO] [stdout] ... | [INFO] [stdout] 47 | | _ => Ok(Response::new(Full::from(Bytes::from_static(b"Hello, World!")))), [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/bin/sess-listener.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | "/session" => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 39 | | let body = request.into_body().frame().await.unwrap().unwrap().into_data().unwrap(); [INFO] [stdout] 40 | | let body = String::from_utf8_lossy(&body); [INFO] [stdout] 41 | | println!("Session: {}", body); [INFO] [stdout] ... | [INFO] [stdout] 45 | | Ok(Response::new(Full::from(Bytes::from_static(b"Session saved!")))) [INFO] [stdout] 46 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/sess-listener.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | Ok(Response::new(Full::from(Bytes::from_static(b"Session saved!")))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/sess-listener.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | _ => Ok(Response::new(Full::from(Bytes::from_static(b"Hello, World!")))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `openssl-experiment` (bin "sess-listener" test) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:85:48 [INFO] [stdout] | [INFO] [stdout] 85 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 86 | | // 根据请求方法,调用相应的处理函数 [INFO] [stdout] 87 | | match *request.method() { [INFO] [stdout] 88 | | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] ... | [INFO] [stdout] 99 | | } [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/bin/server.rs:85:48 [INFO] [stdout] | [INFO] [stdout] 85 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 86 | | // 根据请求方法,调用相应的处理函数 [INFO] [stdout] 87 | | match *request.method() { [INFO] [stdout] 88 | | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] ... | [INFO] [stdout] 99 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | / match *request.method() { [INFO] [stdout] 88 | | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] 89 | | hyper::Method::POST => handle_post(request).await, [INFO] [stdout] 90 | | _ => { [INFO] [stdout] ... | [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:88:51 [INFO] [stdout] | [INFO] [stdout] 88 | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | hyper::Method::POST => handle_post(request).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:89:53 [INFO] [stdout] | [INFO] [stdout] 89 | hyper::Method::POST => handle_post(request).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | hyper::Method::POST => handle_post(request).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 91 | | // 如果请求方法不是GET或POST,返回404错误 [INFO] [stdout] 92 | | let response = Response::builder() [INFO] [stdout] 93 | | .status(hyper::StatusCode::NOT_FOUND) [INFO] [stdout] ... | [INFO] [stdout] 96 | | Ok(response) [INFO] [stdout] 97 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:112:48 [INFO] [stdout] | [INFO] [stdout] 112 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 113 | | let path = request.uri().path(); [INFO] [stdout] 114 | | // 定义一个基本的 CSP 策略字符串, 允许从当前源加载, 并且只允许内联样式 [INFO] [stdout] 115 | | let csp_header_value = "default-src 'self'; script-src 'self';"; [INFO] [stdout] ... | [INFO] [stdout] 189 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:112:48 [INFO] [stdout] | [INFO] [stdout] 112 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 113 | | let path = request.uri().path(); [INFO] [stdout] 114 | | // 定义一个基本的 CSP 策略字符串, 允许从当前源加载, 并且只允许内联样式 [INFO] [stdout] 115 | | let csp_header_value = "default-src 'self'; script-src 'self';"; [INFO] [stdout] ... | [INFO] [stdout] 189 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | / match path { [INFO] [stdout] 122 | | "/XSS/safe" => { [INFO] [stdout] 123 | | let file_path = format!("{}/XSS/index.html", ROOT_PATH); [INFO] [stdout] 124 | | match read_file(file_path.as_str()) { [INFO] [stdout] ... | [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | "/XSS/safe" => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 123 | | let file_path = format!("{}/XSS/index.html", ROOT_PATH); [INFO] [stdout] 124 | | match read_file(file_path.as_str()) { [INFO] [stdout] 125 | | Ok(buf) => { [INFO] [stdout] ... | [INFO] [stdout] 141 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | / match read_file(file_path.as_str()) { [INFO] [stdout] 125 | | Ok(buf) => { [INFO] [stdout] 126 | | // 创建响应 [INFO] [stdout] 127 | | let mut response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | Ok(buf) => { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 126 | | // 创建响应 [INFO] [stdout] 127 | | let mut response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] ... | [INFO] [stdout] 134 | | Ok(response) [INFO] [stdout] 135 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 136 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 137 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 138 | | Ok(response) [INFO] [stdout] 139 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:142:26 [INFO] [stdout] | [INFO] [stdout] 142 | "/XSS/unsafe" => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 143 | | let file_path = format!("{}/XSS/index.html", ROOT_PATH); [INFO] [stdout] 144 | | match read_file(file_path.as_str()) { [INFO] [stdout] 145 | | Ok(buf) => { [INFO] [stdout] ... | [INFO] [stdout] 157 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | / match read_file(file_path.as_str()) { [INFO] [stdout] 145 | | Ok(buf) => { [INFO] [stdout] 146 | | // 生成响应 [INFO] [stdout] 147 | | let mut response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] ... | [INFO] [stdout] 156 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:145:28 [INFO] [stdout] | [INFO] [stdout] 145 | Ok(buf) => { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 146 | | // 生成响应 [INFO] [stdout] 147 | | let mut response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] ... | [INFO] [stdout] 150 | | Ok(response) [INFO] [stdout] 151 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:152:27 [INFO] [stdout] | [INFO] [stdout] 152 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 153 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 154 | | Ok(response) [INFO] [stdout] 155 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | "/XSS/input" => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 159 | | let file_path = format!("{}/XSS/input.txt", ROOT_PATH); [INFO] [stdout] 160 | | match read_file(file_path.as_str()) { [INFO] [stdout] 161 | | Ok(buf) => { [INFO] [stdout] ... | [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/bin/server.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | / match read_file(file_path.as_str()) { [INFO] [stdout] 161 | | Ok(buf) => { [INFO] [stdout] 162 | | let response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] 163 | | Ok(response) [INFO] [stdout] ... | [INFO] [stdout] 169 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | Ok(buf) => { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 162 | | let response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] 163 | | Ok(response) [INFO] [stdout] 164 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:165:27 [INFO] [stdout] | [INFO] [stdout] 165 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 166 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 167 | | Ok(response) [INFO] [stdout] 168 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:171:29 [INFO] [stdout] | [INFO] [stdout] 171 | "/XSS/handle.js" => { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 172 | | let file_path = format!("{}/{}", ROOT_PATH, path); [INFO] [stdout] 173 | | match read_file(file_path.as_str()) { [INFO] [stdout] 174 | | Ok(buf) => { [INFO] [stdout] ... | [INFO] [stdout] 183 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | / match read_file(file_path.as_str()) { [INFO] [stdout] 174 | | Ok(buf) => { [INFO] [stdout] 175 | | let response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] 176 | | Ok(response) [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | Ok(buf) => { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 175 | | let response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] 176 | | Ok(response) [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/bin/server.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 176 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:178:27 [INFO] [stdout] | [INFO] [stdout] 178 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 179 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 180 | | Ok(response) [INFO] [stdout] 181 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:184:14 [INFO] [stdout] | [INFO] [stdout] 184 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 185 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 186 | | Ok(response) [INFO] [stdout] 187 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/sess-listener.rs:36:103 [INFO] [stdout] | [INFO] [stdout] 36 | async fn handle(request: Request) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________^ [INFO] [stdout] 37 | | match request.uri().path() { [INFO] [stdout] 38 | | "/session" => { [INFO] [stdout] 39 | | let body = request.into_body().frame().await.unwrap().unwrap().into_data().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [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/bin/server.rs:200:48 [INFO] [stdout] | [INFO] [stdout] 200 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 201 | | let path = request.uri().path().to_string(); [INFO] [stdout] 202 | | [INFO] [stdout] 203 | | let body = request [INFO] [stdout] ... | [INFO] [stdout] 248 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/sess-listener.rs:36:103 [INFO] [stdout] | [INFO] [stdout] 36 | async fn handle(request: Request) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________^ [INFO] [stdout] 37 | | match request.uri().path() { [INFO] [stdout] 38 | | "/session" => { [INFO] [stdout] 39 | | let body = request.into_body().frame().await.unwrap().unwrap().into_data().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:200:48 [INFO] [stdout] | [INFO] [stdout] 200 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 201 | | let path = request.uri().path().to_string(); [INFO] [stdout] 202 | | [INFO] [stdout] 203 | | let body = request [INFO] [stdout] ... | [INFO] [stdout] 248 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/sess-listener.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / match request.uri().path() { [INFO] [stdout] 38 | | "/session" => { [INFO] [stdout] 39 | | let body = request.into_body().frame().await.unwrap().unwrap().into_data().unwrap(); [INFO] [stdout] 40 | | let body = String::from_utf8_lossy(&body); [INFO] [stdout] ... | [INFO] [stdout] 47 | | _ => Ok(Response::new(Full::from(Bytes::from_static(b"Hello, World!")))), [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/bin/sess-listener.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | "/session" => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 39 | | let body = request.into_body().frame().await.unwrap().unwrap().into_data().unwrap(); [INFO] [stdout] 40 | | let body = String::from_utf8_lossy(&body); [INFO] [stdout] 41 | | println!("Session: {}", body); [INFO] [stdout] ... | [INFO] [stdout] 45 | | Ok(Response::new(Full::from(Bytes::from_static(b"Session saved!")))) [INFO] [stdout] 46 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/sess-listener.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | Ok(Response::new(Full::from(Bytes::from_static(b"Session saved!")))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 212 | / match path.as_str() { [INFO] [stdout] 213 | | "/XSS/safe" => { [INFO] [stdout] 214 | | let file_path = format!("{}/XSS/input.txt", ROOT_PATH); [INFO] [stdout] ... | [INFO] [stdout] 247 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/sess-listener.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | _ => Ok(Response::new(Full::from(Bytes::from_static(b"Hello, World!")))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:213:24 [INFO] [stdout] | [INFO] [stdout] 213 | "/XSS/safe" => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 214 | | let file_path = format!("{}/XSS/input.txt", ROOT_PATH); [INFO] [stdout] 215 | | // 使用 ammonia 库来清理 HTML 内容 [INFO] [stdout] 216 | | let body = ammonia::clean(&body); [INFO] [stdout] ... | [INFO] [stdout] 228 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | / match write_file(&file_path, &body) { [INFO] [stdout] 219 | | Ok(_) => { [INFO] [stdout] 220 | | let response = Response::new(Full::new(Bytes::from("OK"))); [INFO] [stdout] 221 | | Ok(response) [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:219:26 [INFO] [stdout] | [INFO] [stdout] 219 | Ok(_) => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 220 | | let response = Response::new(Full::new(Bytes::from("OK"))); [INFO] [stdout] 221 | | Ok(response) [INFO] [stdout] 222 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:221:21 [INFO] [stdout] | [INFO] [stdout] 221 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:223:27 [INFO] [stdout] | [INFO] [stdout] 223 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 224 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 225 | | Ok(response) [INFO] [stdout] 226 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 225 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:229:26 [INFO] [stdout] | [INFO] [stdout] 229 | "/XSS/unsafe" => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 230 | | let file_path = format!("{}/XSS/input.txt", ROOT_PATH); [INFO] [stdout] 231 | | // 将输入直接存入文件 [INFO] [stdout] 232 | | match write_file(&file_path, &body) { [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/bin/server.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | / match write_file(&file_path, &body) { [INFO] [stdout] 233 | | Ok(_) => { [INFO] [stdout] 234 | | let response = Response::new(Full::new(Bytes::from("OK"))); [INFO] [stdout] 235 | | Ok(response) [INFO] [stdout] ... | [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/bin/server.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | Ok(_) => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 234 | | let response = Response::new(Full::new(Bytes::from("OK"))); [INFO] [stdout] 235 | | Ok(response) [INFO] [stdout] 236 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:237:27 [INFO] [stdout] | [INFO] [stdout] 237 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 238 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 239 | | Ok(response) [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/bin/server.rs:239:21 [INFO] [stdout] | [INFO] [stdout] 239 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:243:14 [INFO] [stdout] | [INFO] [stdout] 243 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 244 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 245 | | Ok(response) [INFO] [stdout] 246 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `openssl-experiment` (bin "sess-listener") due to 6 previous errors [INFO] [stderr] error: could not compile `openssl-experiment` (bin "server") due to 57 previous errors [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:85:48 [INFO] [stdout] | [INFO] [stdout] 85 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 86 | | // 根据请求方法,调用相应的处理函数 [INFO] [stdout] 87 | | match *request.method() { [INFO] [stdout] 88 | | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] ... | [INFO] [stdout] 99 | | } [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/bin/server.rs:85:48 [INFO] [stdout] | [INFO] [stdout] 85 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 86 | | // 根据请求方法,调用相应的处理函数 [INFO] [stdout] 87 | | match *request.method() { [INFO] [stdout] 88 | | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] ... | [INFO] [stdout] 99 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | / match *request.method() { [INFO] [stdout] 88 | | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] 89 | | hyper::Method::POST => handle_post(request).await, [INFO] [stdout] 90 | | _ => { [INFO] [stdout] ... | [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:88:51 [INFO] [stdout] | [INFO] [stdout] 88 | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | hyper::Method::GET => handle_get(request).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | hyper::Method::POST => handle_post(request).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:89:53 [INFO] [stdout] | [INFO] [stdout] 89 | hyper::Method::POST => handle_post(request).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | hyper::Method::POST => handle_post(request).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 91 | | // 如果请求方法不是GET或POST,返回404错误 [INFO] [stdout] 92 | | let response = Response::builder() [INFO] [stdout] 93 | | .status(hyper::StatusCode::NOT_FOUND) [INFO] [stdout] ... | [INFO] [stdout] 96 | | Ok(response) [INFO] [stdout] 97 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:112:48 [INFO] [stdout] | [INFO] [stdout] 112 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 113 | | let path = request.uri().path(); [INFO] [stdout] 114 | | // 定义一个基本的 CSP 策略字符串, 允许从当前源加载, 并且只允许内联样式 [INFO] [stdout] 115 | | let csp_header_value = "default-src 'self'; script-src 'self';"; [INFO] [stdout] ... | [INFO] [stdout] 189 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:112:48 [INFO] [stdout] | [INFO] [stdout] 112 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 113 | | let path = request.uri().path(); [INFO] [stdout] 114 | | // 定义一个基本的 CSP 策略字符串, 允许从当前源加载, 并且只允许内联样式 [INFO] [stdout] 115 | | let csp_header_value = "default-src 'self'; script-src 'self';"; [INFO] [stdout] ... | [INFO] [stdout] 189 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | / match path { [INFO] [stdout] 122 | | "/XSS/safe" => { [INFO] [stdout] 123 | | let file_path = format!("{}/XSS/index.html", ROOT_PATH); [INFO] [stdout] 124 | | match read_file(file_path.as_str()) { [INFO] [stdout] ... | [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | "/XSS/safe" => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 123 | | let file_path = format!("{}/XSS/index.html", ROOT_PATH); [INFO] [stdout] 124 | | match read_file(file_path.as_str()) { [INFO] [stdout] 125 | | Ok(buf) => { [INFO] [stdout] ... | [INFO] [stdout] 141 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | / match read_file(file_path.as_str()) { [INFO] [stdout] 125 | | Ok(buf) => { [INFO] [stdout] 126 | | // 创建响应 [INFO] [stdout] 127 | | let mut response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | Ok(buf) => { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 126 | | // 创建响应 [INFO] [stdout] 127 | | let mut response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] ... | [INFO] [stdout] 134 | | Ok(response) [INFO] [stdout] 135 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:136:27 [INFO] [stdout] | [INFO] [stdout] 136 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 137 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 138 | | Ok(response) [INFO] [stdout] 139 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:142:26 [INFO] [stdout] | [INFO] [stdout] 142 | "/XSS/unsafe" => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 143 | | let file_path = format!("{}/XSS/index.html", ROOT_PATH); [INFO] [stdout] 144 | | match read_file(file_path.as_str()) { [INFO] [stdout] 145 | | Ok(buf) => { [INFO] [stdout] ... | [INFO] [stdout] 157 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | / match read_file(file_path.as_str()) { [INFO] [stdout] 145 | | Ok(buf) => { [INFO] [stdout] 146 | | // 生成响应 [INFO] [stdout] 147 | | let mut response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] ... | [INFO] [stdout] 156 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:145:28 [INFO] [stdout] | [INFO] [stdout] 145 | Ok(buf) => { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 146 | | // 生成响应 [INFO] [stdout] 147 | | let mut response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] ... | [INFO] [stdout] 150 | | Ok(response) [INFO] [stdout] 151 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:152:27 [INFO] [stdout] | [INFO] [stdout] 152 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 153 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 154 | | Ok(response) [INFO] [stdout] 155 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | "/XSS/input" => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 159 | | let file_path = format!("{}/XSS/input.txt", ROOT_PATH); [INFO] [stdout] 160 | | match read_file(file_path.as_str()) { [INFO] [stdout] 161 | | Ok(buf) => { [INFO] [stdout] ... | [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/bin/server.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | / match read_file(file_path.as_str()) { [INFO] [stdout] 161 | | Ok(buf) => { [INFO] [stdout] 162 | | let response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] 163 | | Ok(response) [INFO] [stdout] ... | [INFO] [stdout] 169 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | Ok(buf) => { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 162 | | let response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] 163 | | Ok(response) [INFO] [stdout] 164 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:165:27 [INFO] [stdout] | [INFO] [stdout] 165 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 166 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 167 | | Ok(response) [INFO] [stdout] 168 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:171:29 [INFO] [stdout] | [INFO] [stdout] 171 | "/XSS/handle.js" => { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 172 | | let file_path = format!("{}/{}", ROOT_PATH, path); [INFO] [stdout] 173 | | match read_file(file_path.as_str()) { [INFO] [stdout] 174 | | Ok(buf) => { [INFO] [stdout] ... | [INFO] [stdout] 183 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | / match read_file(file_path.as_str()) { [INFO] [stdout] 174 | | Ok(buf) => { [INFO] [stdout] 175 | | let response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] 176 | | Ok(response) [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | Ok(buf) => { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 175 | | let response = Response::new(Full::new(Bytes::from(buf))); [INFO] [stdout] 176 | | Ok(response) [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/bin/server.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 176 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:178:27 [INFO] [stdout] | [INFO] [stdout] 178 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 179 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 180 | | Ok(response) [INFO] [stdout] 181 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:184:14 [INFO] [stdout] | [INFO] [stdout] 184 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 185 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 186 | | Ok(response) [INFO] [stdout] 187 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:200:48 [INFO] [stdout] | [INFO] [stdout] 200 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 201 | | let path = request.uri().path().to_string(); [INFO] [stdout] 202 | | [INFO] [stdout] 203 | | let body = request [INFO] [stdout] ... | [INFO] [stdout] 248 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:200:48 [INFO] [stdout] | [INFO] [stdout] 200 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 201 | | let path = request.uri().path().to_string(); [INFO] [stdout] 202 | | [INFO] [stdout] 203 | | let body = request [INFO] [stdout] ... | [INFO] [stdout] 248 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 212 | / match path.as_str() { [INFO] [stdout] 213 | | "/XSS/safe" => { [INFO] [stdout] 214 | | let file_path = format!("{}/XSS/input.txt", ROOT_PATH); [INFO] [stdout] ... | [INFO] [stdout] 247 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:213:24 [INFO] [stdout] | [INFO] [stdout] 213 | "/XSS/safe" => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 214 | | let file_path = format!("{}/XSS/input.txt", ROOT_PATH); [INFO] [stdout] 215 | | // 使用 ammonia 库来清理 HTML 内容 [INFO] [stdout] 216 | | let body = ammonia::clean(&body); [INFO] [stdout] ... | [INFO] [stdout] 228 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | / match write_file(&file_path, &body) { [INFO] [stdout] 219 | | Ok(_) => { [INFO] [stdout] 220 | | let response = Response::new(Full::new(Bytes::from("OK"))); [INFO] [stdout] 221 | | Ok(response) [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:219:26 [INFO] [stdout] | [INFO] [stdout] 219 | Ok(_) => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 220 | | let response = Response::new(Full::new(Bytes::from("OK"))); [INFO] [stdout] 221 | | Ok(response) [INFO] [stdout] 222 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:221:21 [INFO] [stdout] | [INFO] [stdout] 221 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:223:27 [INFO] [stdout] | [INFO] [stdout] 223 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 224 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 225 | | Ok(response) [INFO] [stdout] 226 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 225 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:229:26 [INFO] [stdout] | [INFO] [stdout] 229 | "/XSS/unsafe" => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 230 | | let file_path = format!("{}/XSS/input.txt", ROOT_PATH); [INFO] [stdout] 231 | | // 将输入直接存入文件 [INFO] [stdout] 232 | | match write_file(&file_path, &body) { [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/bin/server.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | / match write_file(&file_path, &body) { [INFO] [stdout] 233 | | Ok(_) => { [INFO] [stdout] 234 | | let response = Response::new(Full::new(Bytes::from("OK"))); [INFO] [stdout] 235 | | Ok(response) [INFO] [stdout] ... | [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/bin/server.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | Ok(_) => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 234 | | let response = Response::new(Full::new(Bytes::from("OK"))); [INFO] [stdout] 235 | | Ok(response) [INFO] [stdout] 236 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:237:27 [INFO] [stdout] | [INFO] [stdout] 237 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 238 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 239 | | Ok(response) [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/bin/server.rs:239:21 [INFO] [stdout] | [INFO] [stdout] 239 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:243:14 [INFO] [stdout] | [INFO] [stdout] 243 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 244 | | let response = Response::new(Full::new(Bytes::from("404 Not Found"))); [INFO] [stdout] 245 | | Ok(response) [INFO] [stdout] 246 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/bin/server.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `openssl-experiment` (bin "server" test) due to 57 previous errors [INFO] running `Command { std: "docker" "inspect" "db403e11bb158ae4bdcd388b59ece87a73f8589c299df14b52536cbb1f7103a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db403e11bb158ae4bdcd388b59ece87a73f8589c299df14b52536cbb1f7103a1", kill_on_drop: false }` [INFO] [stdout] db403e11bb158ae4bdcd388b59ece87a73f8589c299df14b52536cbb1f7103a1