[INFO] cloning repository https://github.com/syedarbaz-2306/ip-integrations [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/syedarbaz-2306/ip-integrations" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsyedarbaz-2306%2Fip-integrations", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsyedarbaz-2306%2Fip-integrations'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7eef78c234917ca99a917878e099092902cdc318 [INFO] testing syedarbaz-2306/ip-integrations 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%2Fsyedarbaz-2306%2Fip-integrations" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/syedarbaz-2306/ip-integrations 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/syedarbaz-2306/ip-integrations [INFO] finished tweaking git repo https://github.com/syedarbaz-2306/ip-integrations [INFO] tweaked toml for git repo https://github.com/syedarbaz-2306/ip-integrations written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/syedarbaz-2306/ip-integrations 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 01e9076a1c0f6b3b2ae473d9c1f98cbede02912d462db72e4d6f1cd706b702f0 [INFO] running `Command { std: "docker" "start" "-a" "01e9076a1c0f6b3b2ae473d9c1f98cbede02912d462db72e4d6f1cd706b702f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "01e9076a1c0f6b3b2ae473d9c1f98cbede02912d462db72e4d6f1cd706b702f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01e9076a1c0f6b3b2ae473d9c1f98cbede02912d462db72e4d6f1cd706b702f0", kill_on_drop: false }` [INFO] [stdout] 01e9076a1c0f6b3b2ae473d9c1f98cbede02912d462db72e4d6f1cd706b702f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 9c21dd8210412ea19c0bc5f3d3ce26fd4abf6bf79e6d46cdda5e16a3cefa1cf0 [INFO] running `Command { std: "docker" "start" "-a" "9c21dd8210412ea19c0bc5f3d3ce26fd4abf6bf79e6d46cdda5e16a3cefa1cf0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling cc v1.2.9 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling rustls-pki-types v1.10.1 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling rustls v0.23.21 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling webpki-roots v0.26.7 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.26.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling h2 v0.4.7 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper v1.5.2 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling hyper-rustls v0.27.5 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling ipinfo_io v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ActionResponse` and `self` [INFO] [stdout] --> src/integrations/ip_info_io/get_ipinfo_io.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::integrations::action_response::{self, ActionResponse}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `action_response::ActionResponse` [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::integrations::{action_response::ActionResponse, ip_abuse_endponits::types::AbsReportResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AbsCheck` and `ReportsResponse` [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use super::types::{AbsBlacklistResponse, AbsCheck, AbsCheckResponse, AbsReportsResponse, ReportsResponse}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::integrations::action_response::ActionResponse` [INFO] [stdout] --> src/integrations/ip_info_is/get_ip_info_is.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::integrations::action_response::ActionResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `action_response::ActionResponse` [INFO] [stdout] --> src/integrations/ip2_location/get_ip2location.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::integrations::{action_response::ActionResponse, ip2_location::types::Ip2Location}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/integrations/max_mind/get_max_mind.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::integrations::action_response::ActionResponse` [INFO] [stdout] --> src/integrations/max_mind/get_max_mind.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::integrations::action_response::ActionResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/integrations/max_mind/model.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::integrations::{action_response::{self, ActionResponse}, into_action_response::IntoActionResponse}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Item` [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/suspicious_object_list.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::format::Item; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/suspicious_object_list.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::integrations::{action_response::{self, ActionResponse}, into_action_response::IntoActionResponse}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Body` [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/remove_suspicious_object.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::Body; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip2_location::get_ip2location::fetch_ip2loaction` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use integrations::ip2_location::get_ip2location::fetch_ip2loaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip2_location::types::Ip2Location` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use integrations::ip2_location::types::Ip2Location; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `check_ip`, `fetch_blacklist`, `fetch_reports`, and `report_ip` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | check_ip, fetch_blacklist, fetch_reports, report_ip, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip_abuse_endponits::test::test_check_ip` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use integrations::ip_abuse_endponits::test::test_check_ip; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AbsBlacklistResponse`, `AbsCheckResponse`, `AbsReportResponse`, and `AbsReportsResponse` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | AbsBlacklistResponse, AbsCheckResponse, AbsReportResponse, AbsReportsResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip_info_io::get_ipinfo_io::fetch_ip_info_io` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use integrations::ip_info_io::get_ipinfo_io::fetch_ip_info_io; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip_info_is::get_ip_info_is::fetch_ipinfo_is` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use integrations::ip_info_is::get_ip_info_is::fetch_ipinfo_is; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip_info_is::types::IpinfoIs` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use integrations::ip_info_is::types::IpinfoIs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip_stack::types::IpStack` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use integrations::ip_stack::types::IpStack; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::make_reqwest::Auth::Basic` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use integrations::make_reqwest::Auth::Basic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Auth::Bearer` [INFO] [stdout] --> src/main.rs:20:48 [INFO] [stdout] | [INFO] [stdout] 20 | use integrations::make_reqwest::{make_request, Auth::Bearer, RequestConfig}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fetch_city_endpoint`, `fetch_country_endpoint`, and `fetch_insights_endpoint` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | fetch_city_endpoint, fetch_country_endpoint, fetch_insights_endpoint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::max_mind::model::InsightsResponse` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use integrations::max_mind::model::InsightsResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GeoIPResponseCity` and `GeoIPResponseCountry` [INFO] [stdout] --> src/main.rs:25:37 [INFO] [stdout] | [INFO] [stdout] 25 | use integrations::max_mind::types::{GeoIPResponseCity, GeoIPResponseCountry}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::trend_micro::custom_scripts::list_custom_scripts::ListCustomScriptsResponse` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use integrations::trend_micro::custom_scripts::list_custom_scripts::ListCustomScriptsResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:27:68 [INFO] [stdout] | [INFO] [stdout] 27 | use integrations::trend_micro::custom_scripts::run_custom_script::{self, RunCustomScript}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::trend_micro::domain_account::DomainResponse` [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use integrations::trend_micro::domain_account::DomainResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RemoveSuspiciousObject` and `Response` [INFO] [stdout] --> src/main.rs:29:79 [INFO] [stdout] | [INFO] [stdout] 29 | use integrations::trend_micro::suspicious_objects::remove_suspicious_object::{RemoveSuspiciousObject, Response}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddSuspiciousObjectResponse`, `SuspiciousBodyObject`, and `suspicious_object_list::SuspiciousObjectResponse` [INFO] [stdout] --> src/main.rs:31:29 [INFO] [stdout] | [INFO] [stdout] 31 | add_suspicious_object::{AddSuspiciousObjectResponse, SuspiciousBodyObject}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | suspicious_object_list::SuspiciousObjectResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ACCEPT`, `HeaderMap`, `HeaderValue`, and `self` [INFO] [stdout] --> src/main.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | use reqwest::header::{self, HeaderMap, HeaderValue, ACCEPT}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | use serde_json::{from_value, json, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::trend_micro::suspicious_objects::add_suspicious_object::*` [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | use integrations::trend_micro::suspicious_objects::add_suspicious_object::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::multipart` [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | use reqwest::multipart; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ipinfo_io_token` [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let ipinfo_io_token = env::var("IPINFO_IO").expect("IPINFO_IO not found in .env file"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ipinfo_io_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abuseipdb_apikey` [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let abuseipdb_apikey = [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_abuseipdb_apikey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ipstack_apikey` [INFO] [stdout] --> src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let ipstack_apikey = env::var("IPSTACK_APIKEY").expect("IPSTACK_APIKEY not found in .env file"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ipstack_apikey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip2loaction_key` [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let ip2loaction_key = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip2loaction_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maxmind_accounid` [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let maxmind_accounid = [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maxmind_accounid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maxmind_license_key` [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let maxmind_license_key = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maxmind_license_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_ip_info_io` is never used [INFO] [stdout] --> src/integrations/ip_info_io/get_ipinfo_io.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn fetch_ip_info_io( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_ip` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn check_ip(ip_address: &str, api_key: &str)->Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_reports` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn fetch_reports( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_blacklist` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | pub async fn fetch_blacklist( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `report_ip` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn report_ip(ip:&str, api_key: &str, categories:&str, comment: &str)-> Result{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_action_response` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/types.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl AbsCheckResponse { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 41 | pub fn into_action_response(self)-> ActionResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_check_ip` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/test.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn test_check_ip( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `success` and `error` are never read [INFO] [stdout] --> src/integrations/ip_stack/types.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | struct IpStackError { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 51 | success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | error: ErrorDetail, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IpStackError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code`, `error_type`, and `info` are never read [INFO] [stdout] --> src/integrations/ip_stack/types.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | struct ErrorDetail { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 57 | code: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 58 | #[serde(rename = "type")] [INFO] [stdout] 59 | error_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 60 | info: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorDetail` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/integrations/ip_stack/types.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | Success(IpStack), [INFO] [stdout] | ------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpStackResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 67 - Success(IpStack), [INFO] [stdout] 67 + Success(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/integrations/ip_stack/types.rs:68:11 [INFO] [stdout] | [INFO] [stdout] 68 | Error(IpStackError), [INFO] [stdout] | ----- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpStackResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 68 - Error(IpStackError), [INFO] [stdout] 68 + Error(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_string`, `get_f64`, `get_bool`, and `get_u64` are never used [INFO] [stdout] --> src/integrations/action_response.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ActionResponse { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_string(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn get_f64(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn get_bool(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_u64(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_ipinfo_is` is never used [INFO] [stdout] --> src/integrations/ip_info_is/get_ip_info_is.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn fetch_ipinfo_is() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_ip2loaction` is never used [INFO] [stdout] --> src/integrations/ip2_location/get_ip2location.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn fetch_ip2loaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_country_endpoint` is never used [INFO] [stdout] --> src/integrations/max_mind/get_max_mind.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn fetch_country_endpoint( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_city_endpoint` is never used [INFO] [stdout] --> src/integrations/max_mind/get_max_mind.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | pub async fn fetch_city_endpoint( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_insights_endpoint` is never used [INFO] [stdout] --> src/integrations/max_mind/get_max_mind.rs:103:14 [INFO] [stdout] | [INFO] [stdout] 103 | pub async fn fetch_insights_endpoint( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `FormUrlEncoded` and `Multipart` are never constructed [INFO] [stdout] --> src/integrations/make_reqwest.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum RequestBody { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 11 | Json(Value), [INFO] [stdout] 12 | FormUrlEncoded(HashMap), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | Multipart(reqwest::multipart::Form), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Basic` and `Bearer` are never constructed [INFO] [stdout] --> src/integrations/make_reqwest.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum Auth { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 29 | Basic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | Bearer(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Auth` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `params`, `form_body`, `multipart_body`, and `with_auth` are never used [INFO] [stdout] --> src/integrations/make_reqwest.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl RequestConfig { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn params(mut self, params: I) -> Self [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn form_body(mut self, form_data: I) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn multipart_body(mut self, form: reqwest::multipart::Form) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn with_auth(mut self, auth: Auth) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_action_response` is never used [INFO] [stdout] --> src/integrations/into_action_response.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait IntoActionResponse { [INFO] [stdout] | ------------------ method in this trait [INFO] [stdout] 4 | fn into_action_response(self) -> ActionResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_action_response` is never used [INFO] [stdout] --> src/integrations/trend_micro/custom_scripts/run_custom_script.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl RunCustomScript { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 32 | pub fn into_action_response(self)-> ActionResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RequestBody` is never used [INFO] [stdout] --> src/integrations/reqwest_builder.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum RequestBody { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MultipartContent` is never used [INFO] [stdout] --> src/integrations/reqwest_builder.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum MultipartContent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MultipartContent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RequestConfig` is never constructed [INFO] [stdout] --> src/integrations/reqwest_builder.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct RequestConfig { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Auth` is never used [INFO] [stdout] --> src/integrations/reqwest_builder.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | pub enum Auth { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Auth` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/integrations/reqwest_builder.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl RequestConfig { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 62 | pub fn new>(url: S, method: Method) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn params(mut self, params: &[(K, V)]) -> Self [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn with_params(mut self, params: HashMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn headers(mut self, headers: &[(K, V)]) -> Self [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn with_headers(mut self, headers: HeaderMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn json_body(mut self, body: T) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn with_body(mut self, body: Value) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn form_body(mut self, form_data: &[(K, V)]) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn multipart_form(mut self, parts: Vec<(String, MultipartContent)>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn text_body>(mut self, text: S) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn xml_body>(mut self, xml: S) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn binary_body(mut self, data: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn with_auth(mut self, auth: Auth) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_request` is never used [INFO] [stdout] --> src/integrations/reqwest_builder.rs:213:14 [INFO] [stdout] | [INFO] [stdout] 213 | pub async fn make_request(config: RequestConfig) -> Result [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `senderMailAddress` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | SenderMailAddress { senderMailAddress: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sender_mail_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fileSha1` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | FileSha1 { fileSha1: String }, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_sha1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fileSha256` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | FileSha256 { fileSha256: String }, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_sha256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `scanAction` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub scanAction: String, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `scan_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `riskLevel` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub riskLevel: String, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `risk_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `daysToExpiration` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub daysToExpiration: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `days_to_expiration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `suspiciousObjects` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | suspiciousObjects: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `suspicious_objects` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "9c21dd8210412ea19c0bc5f3d3ce26fd4abf6bf79e6d46cdda5e16a3cefa1cf0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c21dd8210412ea19c0bc5f3d3ce26fd4abf6bf79e6d46cdda5e16a3cefa1cf0", kill_on_drop: false }` [INFO] [stdout] 9c21dd8210412ea19c0bc5f3d3ce26fd4abf6bf79e6d46cdda5e16a3cefa1cf0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] f39dad9cf8c61f540f129bd3d3342bc5203ff6e50b8ab3888ba82e7711007686 [INFO] running `Command { std: "docker" "start" "-a" "f39dad9cf8c61f540f129bd3d3342bc5203ff6e50b8ab3888ba82e7711007686", kill_on_drop: false }` [INFO] [stderr] Compiling ipinfo_io v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ActionResponse` and `self` [INFO] [stdout] --> src/integrations/ip_info_io/get_ipinfo_io.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::integrations::action_response::{self, ActionResponse}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `action_response::ActionResponse` [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::integrations::{action_response::ActionResponse, ip_abuse_endponits::types::AbsReportResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AbsCheck` and `ReportsResponse` [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use super::types::{AbsBlacklistResponse, AbsCheck, AbsCheckResponse, AbsReportsResponse, ReportsResponse}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::integrations::action_response::ActionResponse` [INFO] [stdout] --> src/integrations/ip_info_is/get_ip_info_is.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::integrations::action_response::ActionResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `action_response::ActionResponse` [INFO] [stdout] --> src/integrations/ip2_location/get_ip2location.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::integrations::{action_response::ActionResponse, ip2_location::types::Ip2Location}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/integrations/max_mind/get_max_mind.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::integrations::action_response::ActionResponse` [INFO] [stdout] --> src/integrations/max_mind/get_max_mind.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::integrations::action_response::ActionResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/integrations/max_mind/model.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::integrations::{action_response::{self, ActionResponse}, into_action_response::IntoActionResponse}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Item` [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/suspicious_object_list.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::format::Item; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/suspicious_object_list.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::integrations::{action_response::{self, ActionResponse}, into_action_response::IntoActionResponse}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Body` [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/remove_suspicious_object.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::Body; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip2_location::get_ip2location::fetch_ip2loaction` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use integrations::ip2_location::get_ip2location::fetch_ip2loaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip2_location::types::Ip2Location` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use integrations::ip2_location::types::Ip2Location; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `check_ip`, `fetch_blacklist`, `fetch_reports`, and `report_ip` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | check_ip, fetch_blacklist, fetch_reports, report_ip, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip_abuse_endponits::test::test_check_ip` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use integrations::ip_abuse_endponits::test::test_check_ip; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AbsBlacklistResponse`, `AbsCheckResponse`, `AbsReportResponse`, and `AbsReportsResponse` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | AbsBlacklistResponse, AbsCheckResponse, AbsReportResponse, AbsReportsResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip_info_io::get_ipinfo_io::fetch_ip_info_io` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use integrations::ip_info_io::get_ipinfo_io::fetch_ip_info_io; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip_info_is::get_ip_info_is::fetch_ipinfo_is` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use integrations::ip_info_is::get_ip_info_is::fetch_ipinfo_is; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip_info_is::types::IpinfoIs` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use integrations::ip_info_is::types::IpinfoIs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::ip_stack::types::IpStack` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use integrations::ip_stack::types::IpStack; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::make_reqwest::Auth::Basic` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use integrations::make_reqwest::Auth::Basic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Auth::Bearer` [INFO] [stdout] --> src/main.rs:20:48 [INFO] [stdout] | [INFO] [stdout] 20 | use integrations::make_reqwest::{make_request, Auth::Bearer, RequestConfig}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fetch_city_endpoint`, `fetch_country_endpoint`, and `fetch_insights_endpoint` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | fetch_city_endpoint, fetch_country_endpoint, fetch_insights_endpoint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::max_mind::model::InsightsResponse` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use integrations::max_mind::model::InsightsResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GeoIPResponseCity` and `GeoIPResponseCountry` [INFO] [stdout] --> src/main.rs:25:37 [INFO] [stdout] | [INFO] [stdout] 25 | use integrations::max_mind::types::{GeoIPResponseCity, GeoIPResponseCountry}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::trend_micro::custom_scripts::list_custom_scripts::ListCustomScriptsResponse` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use integrations::trend_micro::custom_scripts::list_custom_scripts::ListCustomScriptsResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:27:68 [INFO] [stdout] | [INFO] [stdout] 27 | use integrations::trend_micro::custom_scripts::run_custom_script::{self, RunCustomScript}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::trend_micro::domain_account::DomainResponse` [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use integrations::trend_micro::domain_account::DomainResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RemoveSuspiciousObject` and `Response` [INFO] [stdout] --> src/main.rs:29:79 [INFO] [stdout] | [INFO] [stdout] 29 | use integrations::trend_micro::suspicious_objects::remove_suspicious_object::{RemoveSuspiciousObject, Response}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddSuspiciousObjectResponse`, `SuspiciousBodyObject`, and `suspicious_object_list::SuspiciousObjectResponse` [INFO] [stdout] --> src/main.rs:31:29 [INFO] [stdout] | [INFO] [stdout] 31 | add_suspicious_object::{AddSuspiciousObjectResponse, SuspiciousBodyObject}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | suspicious_object_list::SuspiciousObjectResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ACCEPT`, `HeaderMap`, `HeaderValue`, and `self` [INFO] [stdout] --> src/main.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | use reqwest::header::{self, HeaderMap, HeaderValue, ACCEPT}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | use serde_json::{from_value, json, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `integrations::trend_micro::suspicious_objects::add_suspicious_object::*` [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | use integrations::trend_micro::suspicious_objects::add_suspicious_object::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::multipart` [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | use reqwest::multipart; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ipinfo_io_token` [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let ipinfo_io_token = env::var("IPINFO_IO").expect("IPINFO_IO not found in .env file"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ipinfo_io_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abuseipdb_apikey` [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let abuseipdb_apikey = [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_abuseipdb_apikey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ipstack_apikey` [INFO] [stdout] --> src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let ipstack_apikey = env::var("IPSTACK_APIKEY").expect("IPSTACK_APIKEY not found in .env file"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ipstack_apikey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip2loaction_key` [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let ip2loaction_key = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip2loaction_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maxmind_accounid` [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let maxmind_accounid = [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maxmind_accounid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maxmind_license_key` [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let maxmind_license_key = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maxmind_license_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_ip_info_io` is never used [INFO] [stdout] --> src/integrations/ip_info_io/get_ipinfo_io.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn fetch_ip_info_io( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_ip` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn check_ip(ip_address: &str, api_key: &str)->Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_reports` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn fetch_reports( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_blacklist` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | pub async fn fetch_blacklist( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `report_ip` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn report_ip(ip:&str, api_key: &str, categories:&str, comment: &str)-> Result{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_action_response` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/types.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl AbsCheckResponse { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 41 | pub fn into_action_response(self)-> ActionResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_check_ip` is never used [INFO] [stdout] --> src/integrations/ip_abuse_endponits/test.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn test_check_ip( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `success` and `error` are never read [INFO] [stdout] --> src/integrations/ip_stack/types.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | struct IpStackError { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 51 | success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | error: ErrorDetail, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IpStackError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code`, `error_type`, and `info` are never read [INFO] [stdout] --> src/integrations/ip_stack/types.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | struct ErrorDetail { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 57 | code: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 58 | #[serde(rename = "type")] [INFO] [stdout] 59 | error_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 60 | info: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorDetail` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/integrations/ip_stack/types.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | Success(IpStack), [INFO] [stdout] | ------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpStackResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 67 - Success(IpStack), [INFO] [stdout] 67 + Success(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/integrations/ip_stack/types.rs:68:11 [INFO] [stdout] | [INFO] [stdout] 68 | Error(IpStackError), [INFO] [stdout] | ----- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpStackResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 68 - Error(IpStackError), [INFO] [stdout] 68 + Error(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_string`, `get_f64`, `get_bool`, and `get_u64` are never used [INFO] [stdout] --> src/integrations/action_response.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ActionResponse { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_string(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn get_f64(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn get_bool(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_u64(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_ipinfo_is` is never used [INFO] [stdout] --> src/integrations/ip_info_is/get_ip_info_is.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn fetch_ipinfo_is() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_ip2loaction` is never used [INFO] [stdout] --> src/integrations/ip2_location/get_ip2location.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn fetch_ip2loaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_country_endpoint` is never used [INFO] [stdout] --> src/integrations/max_mind/get_max_mind.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn fetch_country_endpoint( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_city_endpoint` is never used [INFO] [stdout] --> src/integrations/max_mind/get_max_mind.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | pub async fn fetch_city_endpoint( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_insights_endpoint` is never used [INFO] [stdout] --> src/integrations/max_mind/get_max_mind.rs:103:14 [INFO] [stdout] | [INFO] [stdout] 103 | pub async fn fetch_insights_endpoint( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `FormUrlEncoded` and `Multipart` are never constructed [INFO] [stdout] --> src/integrations/make_reqwest.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum RequestBody { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 11 | Json(Value), [INFO] [stdout] 12 | FormUrlEncoded(HashMap), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | Multipart(reqwest::multipart::Form), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Basic` and `Bearer` are never constructed [INFO] [stdout] --> src/integrations/make_reqwest.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum Auth { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 29 | Basic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | Bearer(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Auth` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `params`, `form_body`, `multipart_body`, and `with_auth` are never used [INFO] [stdout] --> src/integrations/make_reqwest.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl RequestConfig { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn params(mut self, params: I) -> Self [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn form_body(mut self, form_data: I) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn multipart_body(mut self, form: reqwest::multipart::Form) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn with_auth(mut self, auth: Auth) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_action_response` is never used [INFO] [stdout] --> src/integrations/into_action_response.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait IntoActionResponse { [INFO] [stdout] | ------------------ method in this trait [INFO] [stdout] 4 | fn into_action_response(self) -> ActionResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_action_response` is never used [INFO] [stdout] --> src/integrations/trend_micro/custom_scripts/run_custom_script.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl RunCustomScript { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 32 | pub fn into_action_response(self)-> ActionResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RequestBody` is never used [INFO] [stdout] --> src/integrations/reqwest_builder.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum RequestBody { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MultipartContent` is never used [INFO] [stdout] --> src/integrations/reqwest_builder.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum MultipartContent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MultipartContent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RequestConfig` is never constructed [INFO] [stdout] --> src/integrations/reqwest_builder.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct RequestConfig { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Auth` is never used [INFO] [stdout] --> src/integrations/reqwest_builder.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | pub enum Auth { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Auth` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/integrations/reqwest_builder.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl RequestConfig { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 62 | pub fn new>(url: S, method: Method) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn params(mut self, params: &[(K, V)]) -> Self [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn with_params(mut self, params: HashMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn headers(mut self, headers: &[(K, V)]) -> Self [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn with_headers(mut self, headers: HeaderMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn json_body(mut self, body: T) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn with_body(mut self, body: Value) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn form_body(mut self, form_data: &[(K, V)]) -> Self [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn multipart_form(mut self, parts: Vec<(String, MultipartContent)>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn text_body>(mut self, text: S) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn xml_body>(mut self, xml: S) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn binary_body(mut self, data: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn with_auth(mut self, auth: Auth) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_request` is never used [INFO] [stdout] --> src/integrations/reqwest_builder.rs:213:14 [INFO] [stdout] | [INFO] [stdout] 213 | pub async fn make_request(config: RequestConfig) -> Result [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `senderMailAddress` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | SenderMailAddress { senderMailAddress: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sender_mail_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fileSha1` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | FileSha1 { fileSha1: String }, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_sha1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `fileSha256` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | FileSha256 { fileSha256: String }, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_sha256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `scanAction` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub scanAction: String, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `scan_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `riskLevel` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub riskLevel: String, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `risk_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `daysToExpiration` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub daysToExpiration: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `days_to_expiration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `suspiciousObjects` should have a snake case name [INFO] [stdout] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | suspiciousObjects: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `suspicious_objects` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.11s [INFO] running `Command { std: "docker" "inspect" "f39dad9cf8c61f540f129bd3d3342bc5203ff6e50b8ab3888ba82e7711007686", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f39dad9cf8c61f540f129bd3d3342bc5203ff6e50b8ab3888ba82e7711007686", kill_on_drop: false }` [INFO] [stdout] f39dad9cf8c61f540f129bd3d3342bc5203ff6e50b8ab3888ba82e7711007686 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] e3a8d4991e81463f3d97f814ae6c513cdc1384dcd8f2e30912f9029faf5a85da [INFO] running `Command { std: "docker" "start" "-a" "e3a8d4991e81463f3d97f814ae6c513cdc1384dcd8f2e30912f9029faf5a85da", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `ActionResponse` and `self` [INFO] [stderr] --> src/integrations/ip_info_io/get_ipinfo_io.rs:2:44 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::integrations::action_response::{self, ActionResponse}; [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `action_response::ActionResponse` [INFO] [stderr] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:5:27 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::integrations::{action_response::ActionResponse, ip_abuse_endponits::types::AbsReportResponse}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AbsCheck` and `ReportsResponse` [INFO] [stderr] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:7:42 [INFO] [stderr] | [INFO] [stderr] 7 | use super::types::{AbsBlacklistResponse, AbsCheck, AbsCheckResponse, AbsReportsResponse, ReportsResponse}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::integrations::action_response::ActionResponse` [INFO] [stderr] --> src/integrations/ip_info_is/get_ip_info_is.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::integrations::action_response::ActionResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `action_response::ActionResponse` [INFO] [stderr] --> src/integrations/ip2_location/get_ip2location.rs:2:27 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::integrations::{action_response::ActionResponse, ip2_location::types::Ip2Location}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/integrations/max_mind/get_max_mind.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::integrations::action_response::ActionResponse` [INFO] [stderr] --> src/integrations/max_mind/get_max_mind.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::integrations::action_response::ActionResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/integrations/max_mind/model.rs:3:45 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::integrations::{action_response::{self, ActionResponse}, into_action_response::IntoActionResponse}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::format::Item` [INFO] [stderr] --> src/integrations/trend_micro/suspicious_objects/suspicious_object_list.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use chrono::format::Item; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/integrations/trend_micro/suspicious_objects/suspicious_object_list.rs:4:45 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::integrations::{action_response::{self, ActionResponse}, into_action_response::IntoActionResponse}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `reqwest::Body` [INFO] [stderr] --> src/integrations/trend_micro/suspicious_objects/remove_suspicious_object.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use reqwest::Body; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::ip2_location::get_ip2location::fetch_ip2loaction` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use integrations::ip2_location::get_ip2location::fetch_ip2loaction; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::ip2_location::types::Ip2Location` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use integrations::ip2_location::types::Ip2Location; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `check_ip`, `fetch_blacklist`, `fetch_reports`, and `report_ip` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | check_ip, fetch_blacklist, fetch_reports, report_ip, [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::ip_abuse_endponits::test::test_check_ip` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use integrations::ip_abuse_endponits::test::test_check_ip; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AbsBlacklistResponse`, `AbsCheckResponse`, `AbsReportResponse`, and `AbsReportsResponse` [INFO] [stderr] --> src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | AbsBlacklistResponse, AbsCheckResponse, AbsReportResponse, AbsReportsResponse, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::ip_info_io::get_ipinfo_io::fetch_ip_info_io` [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use integrations::ip_info_io::get_ipinfo_io::fetch_ip_info_io; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::ip_info_is::get_ip_info_is::fetch_ipinfo_is` [INFO] [stderr] --> src/main.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use integrations::ip_info_is::get_ip_info_is::fetch_ipinfo_is; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::ip_info_is::types::IpinfoIs` [INFO] [stderr] --> src/main.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use integrations::ip_info_is::types::IpinfoIs; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::ip_stack::types::IpStack` [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use integrations::ip_stack::types::IpStack; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::make_reqwest::Auth::Basic` [INFO] [stderr] --> src/main.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use integrations::make_reqwest::Auth::Basic; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Auth::Bearer` [INFO] [stderr] --> src/main.rs:20:48 [INFO] [stderr] | [INFO] [stderr] 20 | use integrations::make_reqwest::{make_request, Auth::Bearer, RequestConfig}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `fetch_city_endpoint`, `fetch_country_endpoint`, and `fetch_insights_endpoint` [INFO] [stderr] --> src/main.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | fetch_city_endpoint, fetch_country_endpoint, fetch_insights_endpoint, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::max_mind::model::InsightsResponse` [INFO] [stderr] --> src/main.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | use integrations::max_mind::model::InsightsResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GeoIPResponseCity` and `GeoIPResponseCountry` [INFO] [stderr] --> src/main.rs:25:37 [INFO] [stderr] | [INFO] [stderr] 25 | use integrations::max_mind::types::{GeoIPResponseCity, GeoIPResponseCountry}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::trend_micro::custom_scripts::list_custom_scripts::ListCustomScriptsResponse` [INFO] [stderr] --> src/main.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | use integrations::trend_micro::custom_scripts::list_custom_scripts::ListCustomScriptsResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/main.rs:27:68 [INFO] [stderr] | [INFO] [stderr] 27 | use integrations::trend_micro::custom_scripts::run_custom_script::{self, RunCustomScript}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::trend_micro::domain_account::DomainResponse` [INFO] [stderr] --> src/main.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | use integrations::trend_micro::domain_account::DomainResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `RemoveSuspiciousObject` and `Response` [INFO] [stderr] --> src/main.rs:29:79 [INFO] [stderr] | [INFO] [stderr] 29 | use integrations::trend_micro::suspicious_objects::remove_suspicious_object::{RemoveSuspiciousObject, Response}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AddSuspiciousObjectResponse`, `SuspiciousBodyObject`, and `suspicious_object_list::SuspiciousObjectResponse` [INFO] [stderr] --> src/main.rs:31:29 [INFO] [stderr] | [INFO] [stderr] 31 | add_suspicious_object::{AddSuspiciousObjectResponse, SuspiciousBodyObject}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 32 | suspicious_object_list::SuspiciousObjectResponse, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ACCEPT`, `HeaderMap`, `HeaderValue`, and `self` [INFO] [stderr] --> src/main.rs:34:23 [INFO] [stderr] | [INFO] [stderr] 34 | use reqwest::header::{self, HeaderMap, HeaderValue, ACCEPT}; [INFO] [stderr] | ^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Value` [INFO] [stderr] --> src/main.rs:36:36 [INFO] [stderr] | [INFO] [stderr] 36 | use serde_json::{from_value, json, Value}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `integrations::trend_micro::suspicious_objects::add_suspicious_object::*` [INFO] [stderr] --> src/main.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | use integrations::trend_micro::suspicious_objects::add_suspicious_object::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `reqwest::multipart` [INFO] [stderr] --> src/main.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | use reqwest::multipart; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ipinfo_io_token` [INFO] [stderr] --> src/main.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | let ipinfo_io_token = env::var("IPINFO_IO").expect("IPINFO_IO not found in .env file"); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ipinfo_io_token` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `abuseipdb_apikey` [INFO] [stderr] --> src/main.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | let abuseipdb_apikey = [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_abuseipdb_apikey` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ipstack_apikey` [INFO] [stderr] --> src/main.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | let ipstack_apikey = env::var("IPSTACK_APIKEY").expect("IPSTACK_APIKEY not found in .env file"); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ipstack_apikey` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ip2loaction_key` [INFO] [stderr] --> src/main.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | let ip2loaction_key = [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip2loaction_key` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `maxmind_accounid` [INFO] [stderr] --> src/main.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 53 | let maxmind_accounid = [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maxmind_accounid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `maxmind_license_key` [INFO] [stderr] --> src/main.rs:56:9 [INFO] [stderr] | [INFO] [stderr] 56 | let maxmind_license_key = [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maxmind_license_key` [INFO] [stderr] [INFO] [stderr] warning: function `fetch_ip_info_io` is never used [INFO] [stderr] --> src/integrations/ip_info_io/get_ipinfo_io.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | pub async fn fetch_ip_info_io( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `check_ip` is never used [INFO] [stderr] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 9 | pub async fn check_ip(ip_address: &str, api_key: &str)->Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `fetch_reports` is never used [INFO] [stderr] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:61:14 [INFO] [stderr] | [INFO] [stderr] 61 | pub async fn fetch_reports( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `fetch_blacklist` is never used [INFO] [stderr] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:107:14 [INFO] [stderr] | [INFO] [stderr] 107 | pub async fn fetch_blacklist( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `report_ip` is never used [INFO] [stderr] --> src/integrations/ip_abuse_endponits/abuse_ipinfo.rs:149:14 [INFO] [stderr] | [INFO] [stderr] 149 | pub async fn report_ip(ip:&str, api_key: &str, categories:&str, comment: &str)-> Result{ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `into_action_response` is never used [INFO] [stderr] --> src/integrations/ip_abuse_endponits/types.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 40 | impl AbsCheckResponse { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] 41 | pub fn into_action_response(self)-> ActionResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `test_check_ip` is never used [INFO] [stderr] --> src/integrations/ip_abuse_endponits/test.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | pub async fn test_check_ip( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `success` and `error` are never read [INFO] [stderr] --> src/integrations/ip_stack/types.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 50 | struct IpStackError { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 51 | success: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 52 | error: ErrorDetail, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `IpStackError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `code`, `error_type`, and `info` are never read [INFO] [stderr] --> src/integrations/ip_stack/types.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 56 | struct ErrorDetail { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 57 | code: i32, [INFO] [stderr] | ^^^^ [INFO] [stderr] 58 | #[serde(rename = "type")] [INFO] [stderr] 59 | error_type: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 60 | info: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ErrorDetail` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/integrations/ip_stack/types.rs:67:13 [INFO] [stderr] | [INFO] [stderr] 67 | Success(IpStack), [INFO] [stderr] | ------- ^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `IpStackResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 67 - Success(IpStack), [INFO] [stderr] 67 + Success(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/integrations/ip_stack/types.rs:68:11 [INFO] [stderr] | [INFO] [stderr] 68 | Error(IpStackError), [INFO] [stderr] | ----- ^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `IpStackResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 68 - Error(IpStackError), [INFO] [stderr] 68 + Error(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: methods `get_string`, `get_f64`, `get_bool`, and `get_u64` are never used [INFO] [stderr] --> src/integrations/action_response.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 9 | impl ActionResponse { [INFO] [stderr] | ------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 25 | pub fn get_string(&self, key: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 29 | pub fn get_f64(&self, key: &str) -> Option { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | pub fn get_bool(&self, key: &str) -> Option { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | pub fn get_u64(&self, key: &str) -> Option { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `fetch_ipinfo_is` is never used [INFO] [stderr] --> src/integrations/ip_info_is/get_ip_info_is.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | pub async fn fetch_ipinfo_is() -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `fetch_ip2loaction` is never used [INFO] [stderr] --> src/integrations/ip2_location/get_ip2location.rs:5:14 [INFO] [stderr] | [INFO] [stderr] 5 | pub async fn fetch_ip2loaction( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `fetch_country_endpoint` is never used [INFO] [stderr] --> src/integrations/max_mind/get_max_mind.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | pub async fn fetch_country_endpoint( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `fetch_city_endpoint` is never used [INFO] [stderr] --> src/integrations/max_mind/get_max_mind.rs:54:14 [INFO] [stderr] | [INFO] [stderr] 54 | pub async fn fetch_city_endpoint( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `fetch_insights_endpoint` is never used [INFO] [stderr] --> src/integrations/max_mind/get_max_mind.rs:103:14 [INFO] [stderr] | [INFO] [stderr] 103 | pub async fn fetch_insights_endpoint( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `FormUrlEncoded` and `Multipart` are never constructed [INFO] [stderr] --> src/integrations/make_reqwest.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub enum RequestBody { [INFO] [stderr] | ----------- variants in this enum [INFO] [stderr] 11 | Json(Value), [INFO] [stderr] 12 | FormUrlEncoded(HashMap), [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 13 | Multipart(reqwest::multipart::Form), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RequestBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `Basic` and `Bearer` are never constructed [INFO] [stderr] --> src/integrations/make_reqwest.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 28 | pub enum Auth { [INFO] [stderr] | ---- variants in this enum [INFO] [stderr] 29 | Basic { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | Bearer(String), [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Auth` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `params`, `form_body`, `multipart_body`, and `with_auth` are never used [INFO] [stderr] --> src/integrations/make_reqwest.rs:48:12 [INFO] [stderr] | [INFO] [stderr] 36 | impl RequestConfig { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 48 | pub fn params(mut self, params: I) -> Self [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 96 | pub fn form_body(mut self, form_data: I) -> Self [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 119 | pub fn multipart_body(mut self, form: reqwest::multipart::Form) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 124 | pub fn with_auth(mut self, auth: Auth) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `into_action_response` is never used [INFO] [stderr] --> src/integrations/into_action_response.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub trait IntoActionResponse { [INFO] [stderr] | ------------------ method in this trait [INFO] [stderr] 4 | fn into_action_response(self) -> ActionResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `into_action_response` is never used [INFO] [stderr] --> src/integrations/trend_micro/custom_scripts/run_custom_script.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 31 | impl RunCustomScript { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] 32 | pub fn into_action_response(self)-> ActionResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `RequestBody` is never used [INFO] [stderr] --> src/integrations/reqwest_builder.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | pub enum RequestBody { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RequestBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: enum `MultipartContent` is never used [INFO] [stderr] --> src/integrations/reqwest_builder.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | pub enum MultipartContent { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MultipartContent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `RequestConfig` is never constructed [INFO] [stderr] --> src/integrations/reqwest_builder.rs:43:12 [INFO] [stderr] | [INFO] [stderr] 43 | pub struct RequestConfig { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RequestConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: enum `Auth` is never used [INFO] [stderr] --> src/integrations/reqwest_builder.rs:53:10 [INFO] [stderr] | [INFO] [stderr] 53 | pub enum Auth { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Auth` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/integrations/reqwest_builder.rs:62:12 [INFO] [stderr] | [INFO] [stderr] 61 | impl RequestConfig { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 62 | pub fn new>(url: S, method: Method) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 74 | pub fn params(mut self, params: &[(K, V)]) -> Self [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 88 | pub fn with_params(mut self, params: HashMap) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 94 | pub fn headers(mut self, headers: &[(K, V)]) -> Self [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 113 | pub fn with_headers(mut self, headers: HeaderMap) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 118 | pub fn json_body(mut self, body: T) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 135 | pub fn with_body(mut self, body: Value) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 140 | pub fn form_body(mut self, form_data: &[(K, V)]) -> Self [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 163 | pub fn multipart_form(mut self, parts: Vec<(String, MultipartContent)>) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 168 | pub fn text_body>(mut self, text: S) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 181 | pub fn xml_body>(mut self, xml: S) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 194 | pub fn binary_body(mut self, data: Vec) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 207 | pub fn with_auth(mut self, auth: Auth) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `make_request` is never used [INFO] [stderr] --> src/integrations/reqwest_builder.rs:213:14 [INFO] [stderr] | [INFO] [stderr] 213 | pub async fn make_request(config: RequestConfig) -> Result [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: structure field `senderMailAddress` should have a snake case name [INFO] [stderr] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:28:25 [INFO] [stderr] | [INFO] [stderr] 28 | SenderMailAddress { senderMailAddress: String }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sender_mail_address` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `fileSha1` should have a snake case name [INFO] [stderr] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:30:16 [INFO] [stderr] | [INFO] [stderr] 30 | FileSha1 { fileSha1: String }, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `file_sha1` [INFO] [stderr] [INFO] [stderr] warning: structure field `fileSha256` should have a snake case name [INFO] [stderr] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:31:18 [INFO] [stderr] | [INFO] [stderr] 31 | FileSha256 { fileSha256: String }, [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `file_sha256` [INFO] [stderr] [INFO] [stderr] warning: structure field `scanAction` should have a snake case name [INFO] [stderr] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | pub scanAction: String, [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `scan_action` [INFO] [stderr] [INFO] [stderr] warning: structure field `riskLevel` should have a snake case name [INFO] [stderr] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | pub riskLevel: String, [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `risk_level` [INFO] [stderr] [INFO] [stderr] warning: structure field `daysToExpiration` should have a snake case name [INFO] [stderr] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | pub daysToExpiration: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `days_to_expiration` [INFO] [stderr] [INFO] [stderr] warning: structure field `suspiciousObjects` should have a snake case name [INFO] [stderr] --> src/integrations/trend_micro/suspicious_objects/add_suspicious_object.rs:46:5 [INFO] [stderr] | [INFO] [stderr] 46 | suspiciousObjects: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `suspicious_objects` [INFO] [stderr] [INFO] [stderr] warning: `ipinfo_io` (bin "ipinfo_io" test) generated 77 warnings (run `cargo fix --bin "ipinfo_io" --tests` to apply 36 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ipinfo_io-9a287b1f413560fb) [INFO] [stdout] [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" "e3a8d4991e81463f3d97f814ae6c513cdc1384dcd8f2e30912f9029faf5a85da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3a8d4991e81463f3d97f814ae6c513cdc1384dcd8f2e30912f9029faf5a85da", kill_on_drop: false }` [INFO] [stdout] e3a8d4991e81463f3d97f814ae6c513cdc1384dcd8f2e30912f9029faf5a85da