[INFO] cloning repository https://github.com/Simoh8/rust_mpepe [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Simoh8/rust_mpepe" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimoh8%2Frust_mpepe", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimoh8%2Frust_mpepe'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 148466a16c0cc6bd5cd44c19d6c72030bec022d6 [INFO] testing Simoh8/rust_mpepe against master#ec6f9a5b4413f74386267ef8efc93712c2ce6db6 for pr-155739-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimoh8%2Frust_mpepe" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Simoh8/rust_mpepe [INFO] finished tweaking git repo https://github.com/Simoh8/rust_mpepe [INFO] tweaked toml for git repo https://github.com/Simoh8/rust_mpepe written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Simoh8/rust_mpepe on toolchain ec6f9a5b4413f74386267ef8efc93712c2ce6db6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Simoh8/rust_mpepe 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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded shuttle-runtime v0.40.0 [INFO] [stderr] Downloaded shuttle-service v0.40.0 [INFO] [stderr] Downloaded strfmt v0.2.5 [INFO] [stderr] Downloaded bytestring v1.5.0 [INFO] [stderr] Downloaded shuttle-actix-web v0.40.0 [INFO] [stderr] Downloaded http-range v0.1.5 [INFO] [stderr] Downloaded opentelemetry-http v0.10.0 [INFO] [stderr] Downloaded shuttle-proto v0.40.0 [INFO] [stderr] Downloaded shuttle-codegen v0.40.0 [INFO] [stderr] Downloaded v_htmlescape v0.15.8 [INFO] [stderr] Downloaded tonic v0.10.2 [INFO] [stderr] Downloaded actix-rt v2.11.0 [INFO] [stderr] Downloaded actix-files v0.6.8 [INFO] [stderr] Downloaded shuttle-common v0.40.2 [INFO] [stderr] Downloaded comfy-table v6.2.0 [INFO] [stderr] Downloaded actix-http v3.11.2 [INFO] [stderr] Downloaded actix-web v4.12.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2dbf9f502faa5604ae4c57699fc6260b87aa2b2b12f6d1ee5370f4dee81190e4 [INFO] running `Command { std: "docker" "start" "-a" "2dbf9f502faa5604ae4c57699fc6260b87aa2b2b12f6d1ee5370f4dee81190e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2dbf9f502faa5604ae4c57699fc6260b87aa2b2b12f6d1ee5370f4dee81190e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2dbf9f502faa5604ae4c57699fc6260b87aa2b2b12f6d1ee5370f4dee81190e4", kill_on_drop: false }` [INFO] [stdout] 2dbf9f502faa5604ae4c57699fc6260b87aa2b2b12f6d1ee5370f4dee81190e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f6ffb4401e587428a42279c6abed5fb1ce7bfbc57903cede11040426f4caa342 [INFO] running `Command { std: "docker" "start" "-a" "f6ffb4401e587428a42279c6abed5fb1ce7bfbc57903cede11040426f4caa342", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling zerocopy v0.8.28 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling ordered-float v4.6.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling regex-lite v0.1.8 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling cc v1.2.47 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling bytestring v1.5.0 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling signal-hook-mio v0.2.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling crossterm v0.26.1 [INFO] [stderr] Compiling crossterm v0.27.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling brotli-decompressor v5.0.0 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling actix-service v2.0.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling brotli v8.0.2 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Compiling strfmt v0.2.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling http-range v0.1.5 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling comfy-table v6.2.0 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling shuttle-codegen v0.40.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling prost v0.12.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling opentelemetry v0.21.0 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling prost-types v0.12.6 [INFO] [stderr] Compiling strum v0.25.0 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling opentelemetry-http v0.10.0 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling opentelemetry_sdk v0.21.2 [INFO] [stderr] Compiling icu_properties v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tracing-opentelemetry v0.22.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling tokio-io-timeout v1.2.1 [INFO] [stderr] Compiling actix-rt v2.11.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling shuttle-common v0.40.2 [INFO] [stderr] Compiling shuttle-service v0.40.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling actix-http v3.11.2 [INFO] [stderr] Compiling actix-web v4.12.0 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling actix-files v0.6.8 [INFO] [stderr] Compiling tonic v0.10.2 [INFO] [stderr] Compiling shuttle-proto v0.40.0 [INFO] [stderr] Compiling shuttle-runtime v0.40.0 [INFO] [stderr] Compiling shuttle-actix-web v0.40.0 [INFO] [stderr] Compiling mpesa_web v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `validate_phone_number` is never used [INFO] [stdout] --> src/services/utils.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn validate_phone_number(phone: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_amount` is never used [INFO] [stdout] --> src/services/utils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn validate_amount(amount: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `expires_in` is never read [INFO] [stdout] --> src/models/responses.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OAuthResponse { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 5 | pub access_token: String, [INFO] [stdout] 6 | pub expires_in: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OAuthResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `MerchantRequestID` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub MerchantRequestID: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `merchant_request_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CheckoutRequestID` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub CheckoutRequestID: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `checkout_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ResponseCode` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub ResponseCode: Option, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `response_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ResponseDescription` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub ResponseDescription: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `response_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Body` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub Body: CallbackBody, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stkCallback` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub stkCallback: StkCallbackData, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `stk_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `MerchantRequestID` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub MerchantRequestID: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `merchant_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CheckoutRequestID` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub CheckoutRequestID: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `checkout_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ResultCode` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub ResultCode: i32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `result_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ResultDesc` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub ResultDesc: String, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `result_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CallbackMetadata` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub CallbackMetadata: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `callback_metadata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Item` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub Item: Vec, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | pub Name: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Value` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub Value: serde_json::Value, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `value` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 46s [INFO] running `Command { std: "docker" "inspect" "f6ffb4401e587428a42279c6abed5fb1ce7bfbc57903cede11040426f4caa342", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6ffb4401e587428a42279c6abed5fb1ce7bfbc57903cede11040426f4caa342", kill_on_drop: false }` [INFO] [stdout] f6ffb4401e587428a42279c6abed5fb1ce7bfbc57903cede11040426f4caa342 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dca6771d89ae4e83925ec9e01301d2f7d17f47f1350a4213bb0efbe5174afeb0 [INFO] running `Command { std: "docker" "start" "-a" "dca6771d89ae4e83925ec9e01301d2f7d17f47f1350a4213bb0efbe5174afeb0", kill_on_drop: false }` [INFO] [stderr] Compiling mpesa_web v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `validate_phone_number` is never used [INFO] [stdout] --> src/services/utils.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn validate_phone_number(phone: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_amount` is never used [INFO] [stdout] --> src/services/utils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn validate_amount(amount: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `expires_in` is never read [INFO] [stdout] --> src/models/responses.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OAuthResponse { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 5 | pub access_token: String, [INFO] [stdout] 6 | pub expires_in: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OAuthResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `MerchantRequestID` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub MerchantRequestID: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `merchant_request_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CheckoutRequestID` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub CheckoutRequestID: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `checkout_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ResponseCode` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub ResponseCode: Option, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `response_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ResponseDescription` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub ResponseDescription: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `response_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Body` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub Body: CallbackBody, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stkCallback` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub stkCallback: StkCallbackData, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `stk_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `MerchantRequestID` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub MerchantRequestID: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `merchant_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CheckoutRequestID` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub CheckoutRequestID: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `checkout_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ResultCode` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub ResultCode: i32, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `result_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ResultDesc` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub ResultDesc: String, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `result_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CallbackMetadata` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub CallbackMetadata: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `callback_metadata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Item` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub Item: Vec, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Name` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | pub Name: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Value` should have a snake case name [INFO] [stdout] --> src/models/responses.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub Value: serde_json::Value, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `value` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.61s [INFO] running `Command { std: "docker" "inspect" "dca6771d89ae4e83925ec9e01301d2f7d17f47f1350a4213bb0efbe5174afeb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dca6771d89ae4e83925ec9e01301d2f7d17f47f1350a4213bb0efbe5174afeb0", kill_on_drop: false }` [INFO] [stdout] dca6771d89ae4e83925ec9e01301d2f7d17f47f1350a4213bb0efbe5174afeb0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1597ca5b4fcf93b8089cd00dbea0bc32d62306cbc99826cc9dbdd7b505501960 [INFO] running `Command { std: "docker" "start" "-a" "1597ca5b4fcf93b8089cd00dbea0bc32d62306cbc99826cc9dbdd7b505501960", kill_on_drop: false }` [INFO] [stderr] warning: function `validate_phone_number` is never used [INFO] [stderr] --> src/services/utils.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn validate_phone_number(phone: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `validate_amount` is never used [INFO] [stderr] --> src/services/utils.rs:18:8 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn validate_amount(amount: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `expires_in` is never read [INFO] [stderr] --> src/models/responses.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct OAuthResponse { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 5 | pub access_token: String, [INFO] [stderr] 6 | pub expires_in: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OAuthResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: structure field `MerchantRequestID` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 11 | pub MerchantRequestID: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `merchant_request_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `CheckoutRequestID` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub CheckoutRequestID: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `checkout_request_id` [INFO] [stderr] [INFO] [stderr] warning: structure field `ResponseCode` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub ResponseCode: Option, [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `response_code` [INFO] [stderr] [INFO] [stderr] warning: structure field `ResponseDescription` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | pub ResponseDescription: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `response_description` [INFO] [stderr] [INFO] [stderr] warning: structure field `Body` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 21 | pub Body: CallbackBody, [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `body` [INFO] [stderr] [INFO] [stderr] warning: structure field `stkCallback` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | pub stkCallback: StkCallbackData, [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `stk_callback` [INFO] [stderr] [INFO] [stderr] warning: structure field `MerchantRequestID` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | pub MerchantRequestID: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `merchant_request_id` [INFO] [stderr] [INFO] [stderr] warning: structure field `CheckoutRequestID` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:32:9 [INFO] [stderr] | [INFO] [stderr] 32 | pub CheckoutRequestID: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `checkout_request_id` [INFO] [stderr] [INFO] [stderr] warning: structure field `ResultCode` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | pub ResultCode: i32, [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `result_code` [INFO] [stderr] [INFO] [stderr] warning: structure field `ResultDesc` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 34 | pub ResultDesc: String, [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `result_desc` [INFO] [stderr] [INFO] [stderr] warning: structure field `CallbackMetadata` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | pub CallbackMetadata: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `callback_metadata` [INFO] [stderr] [INFO] [stderr] warning: structure field `Item` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | pub Item: Vec, [INFO] [stderr] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `item` [INFO] [stderr] [INFO] [stderr] warning: structure field `Name` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | pub Name: String, [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `name` [INFO] [stderr] [INFO] [stderr] warning: structure field `Value` should have a snake case name [INFO] [stderr] --> src/models/responses.rs:46:9 [INFO] [stderr] | [INFO] [stderr] 46 | pub Value: serde_json::Value, [INFO] [stderr] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `value` [INFO] [stderr] [INFO] [stderr] warning: `mpesa_web` (bin "mpesa_web" test) generated 17 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mpesa_web-7697aa600d51046b) [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" "1597ca5b4fcf93b8089cd00dbea0bc32d62306cbc99826cc9dbdd7b505501960", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1597ca5b4fcf93b8089cd00dbea0bc32d62306cbc99826cc9dbdd7b505501960", kill_on_drop: false }` [INFO] [stdout] 1597ca5b4fcf93b8089cd00dbea0bc32d62306cbc99826cc9dbdd7b505501960