[INFO] cloning repository https://github.com/Niedzwiedzw/wireguard-rest-api-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Niedzwiedzw/wireguard-rest-api-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNiedzwiedzw%2Fwireguard-rest-api-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNiedzwiedzw%2Fwireguard-rest-api-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6ab7b87de0e089d97962c857dd0b88fa3b3a0611 [INFO] checking Niedzwiedzw/wireguard-rest-api-rs 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%2FNiedzwiedzw%2Fwireguard-rest-api-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Niedzwiedzw/wireguard-rest-api-rs [INFO] finished tweaking git repo https://github.com/Niedzwiedzw/wireguard-rest-api-rs [INFO] tweaked toml for git repo https://github.com/Niedzwiedzw/wireguard-rest-api-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Niedzwiedzw/wireguard-rest-api-rs 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/Niedzwiedzw/wireguard-rest-api-rs 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] add101897383b1fb2bd52fad75e23bc05e9d09238eff39d25d1d7636ec9241d3 [INFO] running `Command { std: "docker" "start" "-a" "add101897383b1fb2bd52fad75e23bc05e9d09238eff39d25d1d7636ec9241d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "add101897383b1fb2bd52fad75e23bc05e9d09238eff39d25d1d7636ec9241d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "add101897383b1fb2bd52fad75e23bc05e9d09238eff39d25d1d7636ec9241d3", kill_on_drop: false }` [INFO] [stdout] add101897383b1fb2bd52fad75e23bc05e9d09238eff39d25d1d7636ec9241d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 4a0ca53a1706ca4f849996ccce906032b5c3ffc1967b15786a979721669b74df [INFO] running `Command { std: "docker" "start" "-a" "4a0ca53a1706ca4f849996ccce906032b5c3ffc1967b15786a979721669b74df", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling tokio v1.7.1 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking tinyvec v1.2.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking cpufeatures v0.1.5 [INFO] [stderr] Checking generic-array v0.14.4 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking sha-1 v0.9.6 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking input_buffer v0.4.0 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking buf_redux v0.8.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking regex v1.4.6 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking http-body v0.4.2 [INFO] [stderr] Checking twoway v0.1.8 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling nom v6.2.0 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking multipart v0.17.1 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking futures v0.3.15 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking tungstenite v0.12.0 [INFO] [stderr] Compiling anyhow v1.0.41 [INFO] [stderr] Checking headers v0.3.4 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking bitvec v0.19.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Checking thiserror v1.0.25 [INFO] [stderr] Checking pin-project v1.0.7 [INFO] [stderr] Checking tokio-util v0.6.7 [INFO] [stderr] Checking tokio-tungstenite v0.13.0 [INFO] [stderr] Checking tokio-stream v0.1.6 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking serde_yaml v0.8.17 [INFO] [stderr] Checking h2 v0.3.3 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Checking hyper v0.14.9 [INFO] [stderr] Checking warp v0.3.1 [INFO] [stderr] Checking wireguard-rest-api-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:168:47 [INFO] [stdout] | [INFO] [stdout] 168 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 169 | | auth_required!(token, secret); [INFO] [stdout] 170 | | let config = or_error!(read_config(&file_path)); [INFO] [stdout] ... | [INFO] [stdout] 175 | | )) [INFO] [stdout] 176 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:168:47 [INFO] [stdout] | [INFO] [stdout] 168 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 169 | | auth_required!(token, secret); [INFO] [stdout] 170 | | let config = or_error!(read_config(&file_path)); [INFO] [stdout] ... | [INFO] [stdout] 175 | | )) [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/api.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | let config = or_error!(read_config(&file_path)); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | / Ok(warp::reply::with_status( [INFO] [stdout] 173 | | warp::reply::json(&config), [INFO] [stdout] 174 | | StatusCode::OK, [INFO] [stdout] 175 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:182:47 [INFO] [stdout] | [INFO] [stdout] 182 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 183 | | auth_required!(token, secret); [INFO] [stdout] 184 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 185 | | let filename = or_error!(file_path.file_name().ok_or(WireguardRestApiError::NotFound)) [INFO] [stdout] ... | [INFO] [stdout] 208 | | )) [INFO] [stdout] 209 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:182:47 [INFO] [stdout] | [INFO] [stdout] 182 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 183 | | auth_required!(token, secret); [INFO] [stdout] 184 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 185 | | let filename = or_error!(file_path.file_name().ok_or(WireguardRestApiError::NotFound)) [INFO] [stdout] ... | [INFO] [stdout] 208 | | )) [INFO] [stdout] 209 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | let filename = or_error!(file_path.file_name().ok_or(WireguardRestApiError::NotFound)) [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | let extension = or_error!(file_path.extension().ok_or(WireguardRestApiError::NotFound)) [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | let status = or_error!(crate::wireguard_cli::wireguard_status(interface_name)); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | / Ok(warp::reply::with_status( [INFO] [stdout] 206 | | warp::reply::json(&config), [INFO] [stdout] 207 | | StatusCode::OK, [INFO] [stdout] 208 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:216:47 [INFO] [stdout] | [INFO] [stdout] 216 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 217 | | auth_required!(token, secret); [INFO] [stdout] 218 | | let config = or_error!(read_config(&file_path)); [INFO] [stdout] 219 | | let entry = or_error!(config.0.get(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] ... | [INFO] [stdout] 224 | | )) [INFO] [stdout] 225 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:216:47 [INFO] [stdout] | [INFO] [stdout] 216 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 217 | | auth_required!(token, secret); [INFO] [stdout] 218 | | let config = or_error!(read_config(&file_path)); [INFO] [stdout] 219 | | let entry = or_error!(config.0.get(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] ... | [INFO] [stdout] 224 | | )) [INFO] [stdout] 225 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | let config = or_error!(read_config(&file_path)); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | let entry = or_error!(config.0.get(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / Ok(warp::reply::with_status( [INFO] [stdout] 222 | | warp::reply::json(&entry), [INFO] [stdout] 223 | | StatusCode::OK, [INFO] [stdout] 224 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:232:47 [INFO] [stdout] | [INFO] [stdout] 232 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 233 | | auth_required!(token, secret); [INFO] [stdout] 234 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 235 | | let _entry = or_error!(config.0.remove(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] ... | [INFO] [stdout] 241 | | )) [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/api.rs:232:47 [INFO] [stdout] | [INFO] [stdout] 232 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 233 | | auth_required!(token, secret); [INFO] [stdout] 234 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 235 | | let _entry = or_error!(config.0.remove(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] ... | [INFO] [stdout] 241 | | )) [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/api.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | let _entry = or_error!(config.0.remove(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] | ---------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | or_error!(std::fs::write(&file_path, &config.to_string())); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | / Ok(warp::reply::with_status( [INFO] [stdout] 239 | | warp::reply::json(&config), [INFO] [stdout] 240 | | StatusCode::OK, [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/api.rs:249:47 [INFO] [stdout] | [INFO] [stdout] 249 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 250 | | auth_required!(token, secret); [INFO] [stdout] 251 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 252 | | if let Some((id, v)) = config [INFO] [stdout] ... | [INFO] [stdout] 269 | | )) [INFO] [stdout] 270 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:249:47 [INFO] [stdout] | [INFO] [stdout] 249 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 250 | | auth_required!(token, secret); [INFO] [stdout] 251 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 252 | | if let Some((id, v)) = config [INFO] [stdout] ... | [INFO] [stdout] 269 | | )) [INFO] [stdout] 270 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | / or_error!(Err(WireguardRestApiError::NonUniquePublicKey( [INFO] [stdout] 258 | | *id, [INFO] [stdout] 259 | | create.clone(), [INFO] [stdout] 260 | | v.clone(), [INFO] [stdout] 261 | | ))) [INFO] [stdout] | |_______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | or_error!(std::fs::write(&file_path, &config.to_string())); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | / Ok(warp::reply::with_status( [INFO] [stdout] 267 | | warp::reply::json(&create), [INFO] [stdout] 268 | | StatusCode::CREATED, [INFO] [stdout] 269 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wireguard-rest-api-rs` (bin "wireguard-rest-api-rs") due to 38 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:168:47 [INFO] [stdout] | [INFO] [stdout] 168 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 169 | | auth_required!(token, secret); [INFO] [stdout] 170 | | let config = or_error!(read_config(&file_path)); [INFO] [stdout] ... | [INFO] [stdout] 175 | | )) [INFO] [stdout] 176 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:168:47 [INFO] [stdout] | [INFO] [stdout] 168 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 169 | | auth_required!(token, secret); [INFO] [stdout] 170 | | let config = or_error!(read_config(&file_path)); [INFO] [stdout] ... | [INFO] [stdout] 175 | | )) [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/api.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | let config = or_error!(read_config(&file_path)); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | / Ok(warp::reply::with_status( [INFO] [stdout] 173 | | warp::reply::json(&config), [INFO] [stdout] 174 | | StatusCode::OK, [INFO] [stdout] 175 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:182:47 [INFO] [stdout] | [INFO] [stdout] 182 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 183 | | auth_required!(token, secret); [INFO] [stdout] 184 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 185 | | let filename = or_error!(file_path.file_name().ok_or(WireguardRestApiError::NotFound)) [INFO] [stdout] ... | [INFO] [stdout] 208 | | )) [INFO] [stdout] 209 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:182:47 [INFO] [stdout] | [INFO] [stdout] 182 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 183 | | auth_required!(token, secret); [INFO] [stdout] 184 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 185 | | let filename = or_error!(file_path.file_name().ok_or(WireguardRestApiError::NotFound)) [INFO] [stdout] ... | [INFO] [stdout] 208 | | )) [INFO] [stdout] 209 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | let filename = or_error!(file_path.file_name().ok_or(WireguardRestApiError::NotFound)) [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | let extension = or_error!(file_path.extension().ok_or(WireguardRestApiError::NotFound)) [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | let status = or_error!(crate::wireguard_cli::wireguard_status(interface_name)); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | / Ok(warp::reply::with_status( [INFO] [stdout] 206 | | warp::reply::json(&config), [INFO] [stdout] 207 | | StatusCode::OK, [INFO] [stdout] 208 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:216:47 [INFO] [stdout] | [INFO] [stdout] 216 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 217 | | auth_required!(token, secret); [INFO] [stdout] 218 | | let config = or_error!(read_config(&file_path)); [INFO] [stdout] 219 | | let entry = or_error!(config.0.get(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] ... | [INFO] [stdout] 224 | | )) [INFO] [stdout] 225 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:216:47 [INFO] [stdout] | [INFO] [stdout] 216 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 217 | | auth_required!(token, secret); [INFO] [stdout] 218 | | let config = or_error!(read_config(&file_path)); [INFO] [stdout] 219 | | let entry = or_error!(config.0.get(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] ... | [INFO] [stdout] 224 | | )) [INFO] [stdout] 225 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | let config = or_error!(read_config(&file_path)); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | let entry = or_error!(config.0.get(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / Ok(warp::reply::with_status( [INFO] [stdout] 222 | | warp::reply::json(&entry), [INFO] [stdout] 223 | | StatusCode::OK, [INFO] [stdout] 224 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:232:47 [INFO] [stdout] | [INFO] [stdout] 232 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 233 | | auth_required!(token, secret); [INFO] [stdout] 234 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 235 | | let _entry = or_error!(config.0.remove(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] ... | [INFO] [stdout] 241 | | )) [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/api.rs:232:47 [INFO] [stdout] | [INFO] [stdout] 232 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 233 | | auth_required!(token, secret); [INFO] [stdout] 234 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 235 | | let _entry = or_error!(config.0.remove(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] ... | [INFO] [stdout] 241 | | )) [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/api.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | let _entry = or_error!(config.0.remove(&id).ok_or(WireguardRestApiError::NotFound)); [INFO] [stdout] | ---------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | or_error!(std::fs::write(&file_path, &config.to_string())); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | / Ok(warp::reply::with_status( [INFO] [stdout] 239 | | warp::reply::json(&config), [INFO] [stdout] 240 | | StatusCode::OK, [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/api.rs:249:47 [INFO] [stdout] | [INFO] [stdout] 249 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 250 | | auth_required!(token, secret); [INFO] [stdout] 251 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 252 | | if let Some((id, v)) = config [INFO] [stdout] ... | [INFO] [stdout] 269 | | )) [INFO] [stdout] 270 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:249:47 [INFO] [stdout] | [INFO] [stdout] 249 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 250 | | auth_required!(token, secret); [INFO] [stdout] 251 | | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] 252 | | if let Some((id, v)) = config [INFO] [stdout] ... | [INFO] [stdout] 269 | | )) [INFO] [stdout] 270 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | auth_required!(token, secret); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `auth_required` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | let mut config = or_error!(read_config(&file_path)); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | / or_error!(Err(WireguardRestApiError::NonUniquePublicKey( [INFO] [stdout] 258 | | *id, [INFO] [stdout] 259 | | create.clone(), [INFO] [stdout] 260 | | v.clone(), [INFO] [stdout] 261 | | ))) [INFO] [stdout] | |_______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | return Ok(warp::reply::with_status(json, code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | or_error!(std::fs::write(&file_path, &config.to_string())); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `or_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/api.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | / Ok(warp::reply::with_status( [INFO] [stdout] 267 | | warp::reply::json(&create), [INFO] [stdout] 268 | | StatusCode::CREATED, [INFO] [stdout] 269 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wireguard-rest-api-rs` (bin "wireguard-rest-api-rs" test) due to 38 previous errors [INFO] running `Command { std: "docker" "inspect" "4a0ca53a1706ca4f849996ccce906032b5c3ffc1967b15786a979721669b74df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a0ca53a1706ca4f849996ccce906032b5c3ffc1967b15786a979721669b74df", kill_on_drop: false }` [INFO] [stdout] 4a0ca53a1706ca4f849996ccce906032b5c3ffc1967b15786a979721669b74df