[INFO] cloning repository https://github.com/natifessh/menzir [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/natifessh/menzir" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnatifessh%2Fmenzir", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnatifessh%2Fmenzir'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 70eecf0b51ae89f6dbf8ac0266003186c9494f13 [INFO] building natifessh/menzir against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnatifessh%2Fmenzir" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/natifessh/menzir [INFO] finished tweaking git repo https://github.com/natifessh/menzir [INFO] tweaked toml for git repo https://github.com/natifessh/menzir written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/natifessh/menzir on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/natifessh/menzir 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded anyhow v1.0.90 [INFO] [stderr] Downloaded mockito v1.5.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.88 [INFO] [stderr] Downloaded hyper-util v0.1.9 [INFO] [stderr] Downloaded rustls v0.23.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdb0d575f82603d84ff16212dafc4e6f2156b68f5aad70cc767c3592f7489107 [INFO] running `Command { std: "docker" "start" "-a" "bdb0d575f82603d84ff16212dafc4e6f2156b68f5aad70cc767c3592f7489107", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdb0d575f82603d84ff16212dafc4e6f2156b68f5aad70cc767c3592f7489107", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdb0d575f82603d84ff16212dafc4e6f2156b68f5aad70cc767c3592f7489107", kill_on_drop: false }` [INFO] [stdout] bdb0d575f82603d84ff16212dafc4e6f2156b68f5aad70cc767c3592f7489107 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62631b75e10c6d36e29a52841d9c685eba8aee8f3fa303d587f2f3aec91c1e94 [INFO] running `Command { std: "docker" "start" "-a" "62631b75e10c6d36e29a52841d9c685eba8aee8f3fa303d587f2f3aec91c1e94", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling anyhow v1.0.90 [INFO] [stderr] Compiling clap_lex v0.7.2 [INFO] [stderr] Compiling colored v2.1.0 [INFO] [stderr] Compiling similar v2.6.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling clap_builder v4.5.20 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling clap v4.5.20 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling hyper v1.5.0 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling mockito v1.5.0 [INFO] [stderr] Compiling reqwest v0.12.8 [INFO] [stderr] Compiling cryto-exchange v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `reqwest::Error` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::Error; [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 imports: `Deserialize` and `de` [INFO] [stdout] --> src/main.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{de, Deserialize}; [INFO] [stdout] | ^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `time::Duration` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CoinHistory` [INFO] [stdout] --> src/api.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{command, models::models::{Args, CoinHistory}}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Error` [INFO] [stdout] --> src/api.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/api.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CoinHistory`, `ExchangeHistory`, and `ExchangeRates` [INFO] [stdout] --> src/main.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | use models::models::{Args, ExchangeHistory, ExchangeRates, CoinHistory}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/api.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn make_api_call(args:&Args)->Result<(),anyhow::Error>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `btc_rate` [INFO] [stdout] --> src/command.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | (btc_rate,_,__,Some(history))=>{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_btc_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/command.rs:36:33 [INFO] [stdout] | [INFO] [stdout] 36 | (btc_rate,_,__,Some(history))=>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `type_` are never read [INFO] [stdout] --> src/models.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CurrencyInfo { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 25 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub type_: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CurrencyInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `last_traded_at`, `trust_score`, `bid_ask_spread_percentage`, `last_fetch_at`, and `cost_to_move_up_usd` are never read [INFO] [stdout] --> src/models.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Tickers { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | pub last_traded_at: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 50 | pub trust_score: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 51 | pub bid_ask_spread_percentage: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | pub last_fetch_at: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 53 | pub volume:f32, [INFO] [stdout] 54 | pub cost_to_move_up_usd:Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tickers` 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 `name` and `has_trading_incentive` are never read [INFO] [stdout] --> src/models.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct Market { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 59 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 60 | pub identifier: String, [INFO] [stdout] 61 | pub has_trading_incentive: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Market` 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 `id` and `symbol` are never read [INFO] [stdout] --> src/models.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct CoinHistory{ [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 70 | pub id:String, [INFO] [stdout] | ^^ [INFO] [stdout] 71 | pub name:String, [INFO] [stdout] 72 | pub symbol:String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoinHistory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `DisplayExchangeRateHistory` should have a snake case name [INFO] [stdout] --> src/display.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn DisplayExchangeRateHistory(data:ExchangeHistory){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `display_exchange_rate_history` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CalculateExchangeRate` should have a snake case name [INFO] [stdout] --> src/display.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn CalculateExchangeRate(btc_rate: &CurrencyInfo, usd_rate: &CurrencyInfo, amount: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `calculate_exchange_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `DisplayCoinHistory` should have a snake case name [INFO] [stdout] --> src/display.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn DisplayCoinHistory(data: CoinHistory) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `display_coin_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.65s [INFO] running `Command { std: "docker" "inspect" "62631b75e10c6d36e29a52841d9c685eba8aee8f3fa303d587f2f3aec91c1e94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62631b75e10c6d36e29a52841d9c685eba8aee8f3fa303d587f2f3aec91c1e94", kill_on_drop: false }` [INFO] [stdout] 62631b75e10c6d36e29a52841d9c685eba8aee8f3fa303d587f2f3aec91c1e94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5fd4b162061a82321442209eea72ef6fda5fc75df362caa4bb0e9d402e30041c [INFO] running `Command { std: "docker" "start" "-a" "5fd4b162061a82321442209eea72ef6fda5fc75df362caa4bb0e9d402e30041c", kill_on_drop: false }` [INFO] [stderr] Compiling cryto-exchange v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `reqwest::Error` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::Error; [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 imports: `Deserialize` and `de` [INFO] [stdout] --> src/main.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{de, Deserialize}; [INFO] [stdout] | ^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `time::Duration` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CoinHistory` [INFO] [stdout] --> src/api.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{command, models::models::{Args, CoinHistory}}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Error` [INFO] [stdout] --> src/api.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/api.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CoinHistory`, `ExchangeHistory`, and `ExchangeRates` [INFO] [stdout] --> src/main.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | use models::models::{Args, ExchangeHistory, ExchangeRates, CoinHistory}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/api.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn make_api_call(args:&Args)->Result<(),anyhow::Error>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `btc_rate` [INFO] [stdout] --> src/command.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | (btc_rate,_,__,Some(history))=>{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_btc_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `history` [INFO] [stdout] --> src/command.rs:36:33 [INFO] [stdout] | [INFO] [stdout] 36 | (btc_rate,_,__,Some(history))=>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `type_` are never read [INFO] [stdout] --> src/models.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CurrencyInfo { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 25 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub type_: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CurrencyInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `last_traded_at`, `trust_score`, `bid_ask_spread_percentage`, `last_fetch_at`, and `cost_to_move_up_usd` are never read [INFO] [stdout] --> src/models.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Tickers { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | pub last_traded_at: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 50 | pub trust_score: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 51 | pub bid_ask_spread_percentage: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | pub last_fetch_at: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 53 | pub volume:f32, [INFO] [stdout] 54 | pub cost_to_move_up_usd:Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tickers` 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 `name` and `has_trading_incentive` are never read [INFO] [stdout] --> src/models.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct Market { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 59 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 60 | pub identifier: String, [INFO] [stdout] 61 | pub has_trading_incentive: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Market` 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 `id` and `symbol` are never read [INFO] [stdout] --> src/models.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct CoinHistory{ [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 70 | pub id:String, [INFO] [stdout] | ^^ [INFO] [stdout] 71 | pub name:String, [INFO] [stdout] 72 | pub symbol:String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoinHistory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `DisplayExchangeRateHistory` should have a snake case name [INFO] [stdout] --> src/display.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn DisplayExchangeRateHistory(data:ExchangeHistory){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `display_exchange_rate_history` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CalculateExchangeRate` should have a snake case name [INFO] [stdout] --> src/display.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn CalculateExchangeRate(btc_rate: &CurrencyInfo, usd_rate: &CurrencyInfo, amount: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `calculate_exchange_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `DisplayCoinHistory` should have a snake case name [INFO] [stdout] --> src/display.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn DisplayCoinHistory(data: CoinHistory) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `display_coin_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.98s [INFO] running `Command { std: "docker" "inspect" "5fd4b162061a82321442209eea72ef6fda5fc75df362caa4bb0e9d402e30041c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fd4b162061a82321442209eea72ef6fda5fc75df362caa4bb0e9d402e30041c", kill_on_drop: false }` [INFO] [stdout] 5fd4b162061a82321442209eea72ef6fda5fc75df362caa4bb0e9d402e30041c