[INFO] cloning repository https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyiyangzhou0098%2FBitcoin-Ingestion-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyiyangzhou0098%2FBitcoin-Ingestion-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a1c3c6465c6379e9357a64997c362b0dd838403b [INFO] building yiyangzhou0098/Bitcoin-Ingestion-Rust against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyiyangzhou0098%2FBitcoin-Ingestion-Rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust [INFO] finished tweaking git repo https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust [INFO] tweaked toml for git repo https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yiyangzhou0098/Bitcoin-Ingestion-Rust 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded saturating v0.1.0 [INFO] [stderr] Downloaded frunk_proc_macro_helpers v0.1.3 [INFO] [stderr] Downloaded frunk_proc_macros v0.1.3 [INFO] [stderr] Downloaded frunk_derives v0.4.3 [INFO] [stderr] Downloaded frunk_core v0.4.3 [INFO] [stderr] Downloaded frunk v0.4.3 [INFO] [stderr] Downloaded mysql-common-derive v0.31.1 [INFO] [stderr] Downloaded bitcoincore-rpc v0.19.0 [INFO] [stderr] Downloaded base58ck v0.1.0 [INFO] [stderr] Downloaded bitcoin-io v0.1.2 [INFO] [stderr] Downloaded bitcoin-internals v0.3.0 [INFO] [stderr] Downloaded derive_utils v0.14.2 [INFO] [stderr] Downloaded jsonrpc v0.18.0 [INFO] [stderr] Downloaded minreq v2.12.0 [INFO] [stderr] Downloaded bitcoin-units v0.1.2 [INFO] [stderr] Downloaded bitcoincore-rpc-json v0.19.0 [INFO] [stderr] Downloaded io-enum v1.1.3 [INFO] [stderr] Downloaded mysql v25.0.1 [INFO] [stderr] Downloaded mysql_common v0.32.4 [INFO] [stderr] Downloaded bitcoin v0.32.3 [INFO] [stderr] Downloaded libz-sys v1.1.20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ffd11d079e29d8174baaddc922ddea2e90108514db16fb693d62db4fb9f8e11 [INFO] running `Command { std: "docker" "start" "-a" "7ffd11d079e29d8174baaddc922ddea2e90108514db16fb693d62db4fb9f8e11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ffd11d079e29d8174baaddc922ddea2e90108514db16fb693d62db4fb9f8e11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ffd11d079e29d8174baaddc922ddea2e90108514db16fb693d62db4fb9f8e11", kill_on_drop: false }` [INFO] [stdout] 7ffd11d079e29d8174baaddc922ddea2e90108514db16fb693d62db4fb9f8e11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78bd591cee2a61847bfb5971bc01e4d3db99a7ce4d961fb2fd9da52e5cd1a049 [INFO] running `Command { std: "docker" "start" "-a" "78bd591cee2a61847bfb5971bc01e4d3db99a7ce4d961fb2fd9da52e5cd1a049", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling once_cell v1.20.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling bitcoin-internals v0.3.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling hex-conservative v0.2.1 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling bitcoin-io v0.1.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling frunk_core v0.4.3 [INFO] [stderr] Compiling bindgen v0.70.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling hex_lit v0.1.1 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling cc v1.1.24 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling subprocess v0.2.9 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling bigdecimal v0.4.5 [INFO] [stderr] Compiling minreq v2.12.0 [INFO] [stderr] Compiling bitcoin v0.32.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling cmake v0.1.51 [INFO] [stderr] Compiling bech32 v0.11.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling secp256k1-sys v0.10.1 [INFO] [stderr] Compiling libz-sys v1.1.20 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling btoi v0.4.3 [INFO] [stderr] Compiling saturating v0.1.0 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling mysql v25.0.1 [INFO] [stderr] Compiling pem v3.0.4 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling bufstream v0.1.4 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling frunk_proc_macro_helpers v0.1.3 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling derive_utils v0.14.2 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling frunk_proc_macros v0.1.3 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling frunk_derives v0.4.3 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling io-enum v1.1.3 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling frunk v0.4.3 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling mysql-common-derive v0.31.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling lru v0.12.4 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling twox-hash v1.6.3 [INFO] [stderr] Compiling mysql_common v0.32.4 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling bitcoin_hashes v0.14.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling bitcoin-units v0.1.2 [INFO] [stderr] Compiling base58ck v0.1.0 [INFO] [stderr] Compiling secp256k1 v0.29.1 [INFO] [stderr] Compiling jsonrpc v0.18.0 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling bitcoincore-rpc-json v0.19.0 [INFO] [stderr] Compiling warp v0.3.7 [INFO] [stderr] Compiling bitcoincore-rpc v0.19.0 [INFO] [stderr] Compiling project-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/services/mysql_connection.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{string, sync::Arc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/services/ingestion.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Utc, NaiveDate}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/services/bitcoin_rpc.rs:80:47 [INFO] [stdout] | [INFO] [stdout] 80 | let date = NaiveDateTime::from_timestamp(block_time as i64, 0).date(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DailyTxData` is never constructed [INFO] [stdout] --> src/services/bitcoin_rpc.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DailyTxData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_last_7_days_tx_data` is never used [INFO] [stdout] --> src/services/bitcoin_rpc.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl BitcoinRpcService { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn get_last_7_days_tx_data(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `save_daily_tx`, `get_last_7_days`, `check_today_data`, `save_today_tx`, and `save_7dma` are never used [INFO] [stdout] --> src/services/mysql_connection.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl MySqlService { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub async fn save_daily_tx(&self, date: NaiveDate, tx_count: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn get_last_7_days(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn check_today_data(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn save_today_tx(&self, tx_count: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub async fn save_7dma(&self, date: NaiveDate, dma_value: f64) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_7dma` is never used [INFO] [stdout] --> src/services/ingestion.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn calculate_7dma(transaction_data: &[(NaiveDate, usize)]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 33s [INFO] running `Command { std: "docker" "inspect" "78bd591cee2a61847bfb5971bc01e4d3db99a7ce4d961fb2fd9da52e5cd1a049", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78bd591cee2a61847bfb5971bc01e4d3db99a7ce4d961fb2fd9da52e5cd1a049", kill_on_drop: false }` [INFO] [stdout] 78bd591cee2a61847bfb5971bc01e4d3db99a7ce4d961fb2fd9da52e5cd1a049 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0972ddc7f716919cdca98b6f32f1c2a4d51f8b452951833f0891b0d6a3c71a61 [INFO] running `Command { std: "docker" "start" "-a" "0972ddc7f716919cdca98b6f32f1c2a4d51f8b452951833f0891b0d6a3c71a61", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/services/mysql_connection.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{string, sync::Arc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/services/ingestion.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Utc, NaiveDate}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/services/bitcoin_rpc.rs:80:47 [INFO] [stdout] | [INFO] [stdout] 80 | let date = NaiveDateTime::from_timestamp(block_time as i64, 0).date(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DailyTxData` is never constructed [INFO] [stdout] --> src/services/bitcoin_rpc.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DailyTxData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_last_7_days_tx_data` is never used [INFO] [stdout] --> src/services/bitcoin_rpc.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl BitcoinRpcService { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn get_last_7_days_tx_data(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `save_daily_tx`, `get_last_7_days`, `check_today_data`, `save_today_tx`, and `save_7dma` are never used [INFO] [stdout] --> src/services/mysql_connection.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl MySqlService { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub async fn save_daily_tx(&self, date: NaiveDate, tx_count: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn get_last_7_days(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn check_today_data(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn save_today_tx(&self, tx_count: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub async fn save_7dma(&self, date: NaiveDate, dma_value: f64) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_7dma` is never used [INFO] [stdout] --> src/services/ingestion.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn calculate_7dma(transaction_data: &[(NaiveDate, usize)]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling project-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test_rpc_fn.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | test_rpc_func(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = test_rpc_func(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/services/mysql_connection.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{string, sync::Arc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/services/ingestion.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Utc, NaiveDate}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/services/bitcoin_rpc.rs:80:47 [INFO] [stdout] | [INFO] [stdout] 80 | let date = NaiveDateTime::from_timestamp(block_time as i64, 0).date(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DailyTxData` is never constructed [INFO] [stdout] --> src/services/bitcoin_rpc.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DailyTxData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_last_7_days_tx_data` is never used [INFO] [stdout] --> src/services/bitcoin_rpc.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl BitcoinRpcService { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn get_last_7_days_tx_data(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `save_daily_tx`, `get_last_7_days`, `check_today_data`, `save_today_tx`, and `save_7dma` are never used [INFO] [stdout] --> src/services/mysql_connection.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl MySqlService { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub async fn save_daily_tx(&self, date: NaiveDate, tx_count: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn get_last_7_days(&self) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn check_today_data(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn save_today_tx(&self, tx_count: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub async fn save_7dma(&self, date: NaiveDate, dma_value: f64) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_7dma` is never used [INFO] [stdout] --> src/services/ingestion.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn calculate_7dma(transaction_data: &[(NaiveDate, usize)]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.17s [INFO] running `Command { std: "docker" "inspect" "0972ddc7f716919cdca98b6f32f1c2a4d51f8b452951833f0891b0d6a3c71a61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0972ddc7f716919cdca98b6f32f1c2a4d51f8b452951833f0891b0d6a3c71a61", kill_on_drop: false }` [INFO] [stdout] 0972ddc7f716919cdca98b6f32f1c2a4d51f8b452951833f0891b0d6a3c71a61