[INFO] cloning repository https://github.com/ZimboPro/eskom-notifier [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZimboPro/eskom-notifier" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZimboPro%2Feskom-notifier", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZimboPro%2Feskom-notifier'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 952d3c99e53a51cd90521db22a23f4ebeb871000 [INFO] testing ZimboPro/eskom-notifier against beta-2025-02-18 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZimboPro%2Feskom-notifier" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZimboPro/eskom-notifier on toolchain beta-2025-02-18 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-02-18" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ZimboPro/eskom-notifier [INFO] finished tweaking git repo https://github.com/ZimboPro/eskom-notifier [INFO] tweaked toml for git repo https://github.com/ZimboPro/eskom-notifier written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ZimboPro/eskom-notifier 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" "+beta-2025-02-18" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa31c4d2aecdc279c2ef81ae64e5e3696a7ca10e40848f035e16013b9c10f024 [INFO] running `Command { std: "docker" "start" "-a" "fa31c4d2aecdc279c2ef81ae64e5e3696a7ca10e40848f035e16013b9c10f024", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa31c4d2aecdc279c2ef81ae64e5e3696a7ca10e40848f035e16013b9c10f024", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa31c4d2aecdc279c2ef81ae64e5e3696a7ca10e40848f035e16013b9c10f024", kill_on_drop: false }` [INFO] [stdout] fa31c4d2aecdc279c2ef81ae64e5e3696a7ca10e40848f035e16013b9c10f024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8fb215830be62e045c4fe4853bd0c25c2adf3bd05e2788b1ffaffe94e73e44ae [INFO] running `Command { std: "docker" "start" "-a" "8fb215830be62e045c4fe4853bd0c25c2adf3bd05e2788b1ffaffe94e73e44ae", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.58 [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling quote v1.0.27 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling serde v1.0.163 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling itoa v1.0.6 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling tokio v1.28.1 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling winnow v0.4.1 [INFO] [stderr] Compiling toml_datetime v0.6.1 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling parking v2.1.0 [INFO] [stderr] Compiling concurrent-queue v2.2.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling openssl v0.10.52 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling async-lock v2.7.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling openssl-sys v0.9.87 [INFO] [stderr] Compiling syn v2.0.16 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling io-lifetimes v1.0.10 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling mio v0.8.6 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling toml_edit v0.19.8 [INFO] [stderr] Compiling getrandom v0.2.9 [INFO] [stderr] Compiling serde_json v1.0.96 [INFO] [stderr] Compiling async-task v4.4.0 [INFO] [stderr] Compiling rustix v0.37.19 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling signal-hook v0.3.15 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling nix v0.26.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling async-channel v1.8.0 [INFO] [stderr] Compiling aho-corasick v1.0.1 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling async-fs v1.6.0 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling regex-syntax v0.7.1 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling rustls v0.20.8 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling linux-raw-sys v0.3.7 [INFO] [stderr] Compiling atomic-waker v1.1.1 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling blocking v1.3.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling iana-time-zone v0.1.56 [INFO] [stderr] Compiling cpufeatures v0.2.7 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling flate2 v1.0.26 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling async-executor v1.5.1 [INFO] [stderr] Compiling async-broadcast v0.5.1 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling zvariant_utils v1.0.1 [INFO] [stderr] Compiling xdg-home v1.0.0 [INFO] [stderr] Compiling ordered-stream v0.2.0 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling ipnet v2.7.2 [INFO] [stderr] Compiling regex v1.8.1 [INFO] [stderr] Compiling webpki-roots v0.22.6 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling newline-converter v0.2.2 [INFO] [stderr] Compiling crossterm v0.25.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling dyn-clone v1.0.11 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling unsafe-libyaml v0.2.8 [INFO] [stderr] Compiling ctrlc v3.2.5 [INFO] [stderr] Compiling zvariant_derive v3.14.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling serde_derive v1.0.163 [INFO] [stderr] Compiling tracing-attributes v0.1.24 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling enumflags2_derive v0.7.7 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling async-recursion v1.0.4 [INFO] [stderr] Compiling serde_repr v0.1.12 [INFO] [stderr] Compiling zbus_macros v3.13.1 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling derive_builder_core v0.12.0 [INFO] [stderr] Compiling derive_builder_macro v0.12.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling tokio-util v0.7.8 [INFO] [stderr] Compiling inquire v0.6.2 [INFO] [stderr] Compiling h2 v0.3.19 [INFO] [stderr] Compiling derive_builder v0.12.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v0.14.26 [INFO] [stderr] Compiling enumflags2 v0.7.7 [INFO] [stderr] Compiling chrono v0.4.24 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_yaml v0.9.21 [INFO] [stderr] Compiling zvariant v3.14.0 [INFO] [stderr] Compiling ureq v2.6.2 [INFO] [stderr] Compiling cron v0.12.0 [INFO] [stderr] Compiling zbus_names v2.5.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.18 [INFO] [stderr] Compiling zbus v3.13.1 [INFO] [stderr] Compiling eskom_se_push-api v0.2.0 [INFO] [stderr] Compiling notify-rust v4.8.0 [INFO] [stderr] Compiling eskom-notifier-v1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 39 | return Ok(()); [INFO] [stdout] | ------------- any code following this expression is unreachable [INFO] [stdout] 40 | // TODO see if using channels would help or returning custom type with prompt [INFO] [stdout] 41 | let api = eskom_se_push_api::allowance::AllowanceCheckURLBuilder::default().build()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 84 | / match t.join() { [INFO] [stdout] 85 | | Ok(resp) => todo!(), [INFO] [stdout] 86 | | Err(e) => todo!(), [INFO] [stdout] 87 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 88 | api_thread = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/main.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 85 | Ok(resp) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | Err(e) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_api_call_time` is never read [INFO] [stdout] --> src/main.rs:94:7 [INFO] [stdout] | [INFO] [stdout] 94 | next_api_call_time = api_status_call_schedule [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `api_thread` is never read [INFO] [stdout] --> src/main.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | api_thread = Some(std::thread::spawn(move || get_stage_status(&token.clone()))); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `about_15_min` is never used [INFO] [stdout] --> src/main.rs:220:4 [INFO] [stdout] | [INFO] [stdout] 220 | fn about_15_min(next: &DateTime, current: &DateTime) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `about_x_min` is never used [INFO] [stdout] --> src/main.rs:228:4 [INFO] [stdout] | [INFO] [stdout] 228 | fn about_x_min(minutes: i64, next: &DateTime, current: &DateTime) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:162:24 [INFO] [stdout] | [INFO] [stdout] 162 | match api.ureq(&token.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/configuration_setup.rs:15:22 [INFO] [stdout] | [INFO] [stdout] 15 | areas.push(not_here.clone().into()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 24s [INFO] running `Command { std: "docker" "inspect" "8fb215830be62e045c4fe4853bd0c25c2adf3bd05e2788b1ffaffe94e73e44ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fb215830be62e045c4fe4853bd0c25c2adf3bd05e2788b1ffaffe94e73e44ae", kill_on_drop: false }` [INFO] [stdout] 8fb215830be62e045c4fe4853bd0c25c2adf3bd05e2788b1ffaffe94e73e44ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 69e7169ae5de311e01142322a080d9bf42d4814e5599d6cb092bd5ee13140280 [INFO] running `Command { std: "docker" "start" "-a" "69e7169ae5de311e01142322a080d9bf42d4814e5599d6cb092bd5ee13140280", kill_on_drop: false }` [INFO] [stderr] Compiling eskom-notifier-v1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 39 | return Ok(()); [INFO] [stdout] | ------------- any code following this expression is unreachable [INFO] [stdout] 40 | // TODO see if using channels would help or returning custom type with prompt [INFO] [stdout] 41 | let api = eskom_se_push_api::allowance::AllowanceCheckURLBuilder::default().build()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 84 | / match t.join() { [INFO] [stdout] 85 | | Ok(resp) => todo!(), [INFO] [stdout] 86 | | Err(e) => todo!(), [INFO] [stdout] 87 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 88 | api_thread = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/main.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 85 | Ok(resp) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | Err(e) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_api_call_time` is never read [INFO] [stdout] --> src/main.rs:94:7 [INFO] [stdout] | [INFO] [stdout] 94 | next_api_call_time = api_status_call_schedule [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `api_thread` is never read [INFO] [stdout] --> src/main.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | api_thread = Some(std::thread::spawn(move || get_stage_status(&token.clone()))); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `about_15_min` is never used [INFO] [stdout] --> src/main.rs:220:4 [INFO] [stdout] | [INFO] [stdout] 220 | fn about_15_min(next: &DateTime, current: &DateTime) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `about_x_min` is never used [INFO] [stdout] --> src/main.rs:228:4 [INFO] [stdout] | [INFO] [stdout] 228 | fn about_x_min(minutes: i64, next: &DateTime, current: &DateTime) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:162:24 [INFO] [stdout] | [INFO] [stdout] 162 | match api.ureq(&token.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/configuration_setup.rs:15:22 [INFO] [stdout] | [INFO] [stdout] 15 | areas.push(not_here.clone().into()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.15s [INFO] running `Command { std: "docker" "inspect" "69e7169ae5de311e01142322a080d9bf42d4814e5599d6cb092bd5ee13140280", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69e7169ae5de311e01142322a080d9bf42d4814e5599d6cb092bd5ee13140280", kill_on_drop: false }` [INFO] [stdout] 69e7169ae5de311e01142322a080d9bf42d4814e5599d6cb092bd5ee13140280 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 68712c9f1cd05ddd3d42a24f26b3f2c0063d95cc702720f5b14eb7fb514693b2 [INFO] running `Command { std: "docker" "start" "-a" "68712c9f1cd05ddd3d42a24f26b3f2c0063d95cc702720f5b14eb7fb514693b2", kill_on_drop: false }` [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/main.rs:41:3 [INFO] [stderr] | [INFO] [stderr] 39 | return Ok(()); [INFO] [stderr] | ------------- any code following this expression is unreachable [INFO] [stderr] 40 | // TODO see if using channels would help or returning custom type with prompt [INFO] [stderr] 41 | let api = eskom_se_push_api::allowance::AllowanceCheckURLBuilder::default().build()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/main.rs:88:9 [INFO] [stderr] | [INFO] [stderr] 84 | / match t.join() { [INFO] [stderr] 85 | | Ok(resp) => todo!(), [INFO] [stderr] 86 | | Err(e) => todo!(), [INFO] [stderr] 87 | | } [INFO] [stderr] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 88 | api_thread = None; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] [INFO] [stderr] warning: unused variable: `resp` [INFO] [stderr] --> src/main.rs:85:16 [INFO] [stderr] | [INFO] [stderr] 85 | Ok(resp) => todo!(), [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/main.rs:86:17 [INFO] [stderr] | [INFO] [stderr] 86 | Err(e) => todo!(), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `next_api_call_time` is never read [INFO] [stderr] --> src/main.rs:94:7 [INFO] [stderr] | [INFO] [stderr] 94 | next_api_call_time = api_status_call_schedule [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `api_thread` is never read [INFO] [stderr] --> src/main.rs:99:7 [INFO] [stderr] | [INFO] [stderr] 99 | api_thread = Some(std::thread::spawn(move || get_stage_status(&token.clone()))); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: function `about_15_min` is never used [INFO] [stderr] --> src/main.rs:220:4 [INFO] [stderr] | [INFO] [stderr] 220 | fn about_15_min(next: &DateTime, current: &DateTime) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `about_x_min` is never used [INFO] [stderr] --> src/main.rs:228:4 [INFO] [stderr] | [INFO] [stderr] 228 | fn about_x_min(minutes: i64, next: &DateTime, current: &DateTime) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/main.rs:162:24 [INFO] [stderr] | [INFO] [stderr] 162 | match api.ureq(&token.clone()) { [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/configuration_setup.rs:15:22 [INFO] [stderr] | [INFO] [stderr] 15 | areas.push(not_here.clone().into()); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: `eskom-notifier-v1` (bin "eskom-notifier-v1" test) generated 10 warnings (run `cargo fix --bin "eskom-notifier-v1" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/eskom_notifier_v1-4f0a28dd5825c69b) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "68712c9f1cd05ddd3d42a24f26b3f2c0063d95cc702720f5b14eb7fb514693b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68712c9f1cd05ddd3d42a24f26b3f2c0063d95cc702720f5b14eb7fb514693b2", kill_on_drop: false }` [INFO] [stdout] 68712c9f1cd05ddd3d42a24f26b3f2c0063d95cc702720f5b14eb7fb514693b2