[INFO] cloning repository https://github.com/luisburigo/infinity-codefest [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/luisburigo/infinity-codefest" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluisburigo%2Finfinity-codefest", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluisburigo%2Finfinity-codefest'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 86c5980142dee7d5b46d39b0a54dbf1f37468b61 [INFO] testing luisburigo/infinity-codefest against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluisburigo%2Finfinity-codefest" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/luisburigo/infinity-codefest [INFO] finished tweaking git repo https://github.com/luisburigo/infinity-codefest [INFO] tweaked toml for git repo https://github.com/luisburigo/infinity-codefest written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/luisburigo/infinity-codefest on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/luisburigo/infinity-codefest 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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded digest v0.11.0-pre.9 [INFO] [stderr] Downloaded block-buffer v0.11.0-rc.0 [INFO] [stderr] Downloaded hybrid-array v0.2.0-rc.9 [INFO] [stderr] Downloaded keccak v0.2.0-pre.0 [INFO] [stderr] Downloaded const-oid v0.10.0-rc.0 [INFO] [stderr] Downloaded crypto-common v0.2.0-rc.0 [INFO] [stderr] Downloaded redis v0.26.0 [INFO] [stderr] Downloaded sha3 v0.11.0-pre.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6d8e4f602b6771c5a6c4d5f451a67b947b4c97522a803d633afe33258c1783a1 [INFO] running `Command { std: "docker" "start" "-a" "6d8e4f602b6771c5a6c4d5f451a67b947b4c97522a803d633afe33258c1783a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6d8e4f602b6771c5a6c4d5f451a67b947b4c97522a803d633afe33258c1783a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d8e4f602b6771c5a6c4d5f451a67b947b4c97522a803d633afe33258c1783a1", kill_on_drop: false }` [INFO] [stdout] 6d8e4f602b6771c5a6c4d5f451a67b947b4c97522a803d633afe33258c1783a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3016d8cd114f9f5697bfbec99bd257d98cd7f2d524ebcdfe6d22e6646ea557f4 [INFO] running `Command { std: "docker" "start" "-a" "3016d8cd114f9f5697bfbec99bd257d98cd7f2d524ebcdfe6d22e6646ea557f4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bytes v1.6.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.1 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling cookie-factory v0.2.4 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling hybrid-array v0.2.0-rc.9 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tokio v1.39.1 [INFO] [stderr] Compiling crypto-common v0.2.0-rc.0 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling pest v2.7.11 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling pest_meta v2.7.11 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling secp256k1-sys v0.10.0 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling pest_generator v2.7.11 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling snafu-derive v0.7.5 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling pest_derive v2.7.11 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling block-buffer v0.11.0-rc.0 [INFO] [stderr] Compiling validator_types v0.16.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Compiling const-oid v0.10.0-rc.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling handlebars v1.1.0 [INFO] [stderr] Compiling amq-protocol-types v1.2.0 [INFO] [stderr] Compiling cargo-lock v8.0.3 [INFO] [stderr] Compiling rust_decimal v1.35.0 [INFO] [stderr] Compiling built v0.5.2 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling amq-protocol-codegen v1.4.0 [INFO] [stderr] Compiling amiquip v0.4.2 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling validator_derive v0.16.0 [INFO] [stderr] Compiling digest v0.11.0-pre.9 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling snafu v0.7.5 [INFO] [stderr] Compiling hyper-util v0.1.6 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling input_buffer v0.5.0 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling keccak v0.2.0-pre.0 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling amq-protocol v1.4.0 [INFO] [stderr] Compiling validator v0.16.1 [INFO] [stderr] Compiling sha3 v0.11.0-pre.4 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling secp256k1 v0.29.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling redis v0.26.0 [INFO] [stderr] Compiling infinity-codefest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/main.rs:7:55 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::types::transaction::types::{ToTransaction, Transaction, TransactionStatus}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `redis::RedisError` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use redis::RedisError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `PublicKey`, and `Secp256k1` [INFO] [stdout] --> src/main.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | use secp256k1::{Error, PublicKey, Secp256k1}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TransactionStatus` and `Transaction` [INFO] [stdout] --> src/handlers/user.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::types::transaction::types::{Transaction, TransactionStatus}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::currency::Currencies` [INFO] [stdout] --> src/handlers/transaction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::types::currency::Currencies; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TransactionIdentifiers` and `TransactionsByType` [INFO] [stdout] --> src/handlers/transaction.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | Transaction, TransactionIdentifiers, TransactionStatus, TransactionsByType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/handlers/transaction.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Message`, `PublicKey`, and `Secp256k1` [INFO] [stdout] --> src/modules/transaction/service.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use secp256k1::{Message, PublicKey, Secp256k1}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `secp256k1::ecdsa::Signature` [INFO] [stdout] --> src/modules/transaction/service.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use secp256k1::ecdsa::Signature; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Keccak256` [INFO] [stdout] --> src/modules/transaction/service.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use sha3::{Digest, Keccak256}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromPrimitive` and `ToPrimitive` [INFO] [stdout] --> src/modules/currency/conversion.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_decimal::prelude::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/modules/currency/conversion.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToUser` [INFO] [stdout] --> src/producers/user.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::user::types::{ToUser, User, UserStatus}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CreatedUserEventPayload` and `PendingUserEventPayload` [INFO] [stdout] --> src/producers/transaction.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::types::user::event::{CreatedUserEventPayload, PendingUserEventPayload}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UserStatus` and `User` [INFO] [stdout] --> src/producers/transaction.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::types::user::types::{User, UserStatus}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/modules/transaction/service.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use sha3::{Digest, Keccak256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/consumers/user.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn start(mut connection: &mut Connection) -> Result { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/consumers/transaction.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn start(mut connection: &mut Connection) -> Result { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/transaction/service.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut sender: Result = match get_user(payload.sender.unwrap()) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/transaction/service.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut receiver: Result = match get_user(payload.receiver.unwrap()) { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/modules/user/service.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | Ok(data) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:62:29 [INFO] [stdout] | [INFO] [stdout] 62 | let mut user = payload.to_user(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UserEventError` is never used [INFO] [stdout] --> src/types/user/event.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum UserEventError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransactionsByType` is never constructed [INFO] [stdout] --> src/types/transaction/types.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct TransactionsByType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:104:41 [INFO] [stdout] | [INFO] [stdout] 104 | / ... transaction_producer [INFO] [stdout] 105 | | ... .publish(transaction.clone()); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 104 | let _ = transaction_producer [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 23s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "3016d8cd114f9f5697bfbec99bd257d98cd7f2d524ebcdfe6d22e6646ea557f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3016d8cd114f9f5697bfbec99bd257d98cd7f2d524ebcdfe6d22e6646ea557f4", kill_on_drop: false }` [INFO] [stdout] 3016d8cd114f9f5697bfbec99bd257d98cd7f2d524ebcdfe6d22e6646ea557f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e01c9023bb8e9420b1c929ddb64d52f1b4d50be865ab69c701430e94cd6718ad [INFO] running `Command { std: "docker" "start" "-a" "e01c9023bb8e9420b1c929ddb64d52f1b4d50be865ab69c701430e94cd6718ad", kill_on_drop: false }` [INFO] [stderr] Compiling infinity-codefest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/main.rs:7:55 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::types::transaction::types::{ToTransaction, Transaction, TransactionStatus}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `redis::RedisError` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use redis::RedisError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `PublicKey`, and `Secp256k1` [INFO] [stdout] --> src/main.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | use secp256k1::{Error, PublicKey, Secp256k1}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TransactionStatus` and `Transaction` [INFO] [stdout] --> src/handlers/user.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::types::transaction::types::{Transaction, TransactionStatus}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::currency::Currencies` [INFO] [stdout] --> src/handlers/transaction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::types::currency::Currencies; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TransactionIdentifiers` and `TransactionsByType` [INFO] [stdout] --> src/handlers/transaction.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | Transaction, TransactionIdentifiers, TransactionStatus, TransactionsByType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/handlers/transaction.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Message`, `PublicKey`, and `Secp256k1` [INFO] [stdout] --> src/modules/transaction/service.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use secp256k1::{Message, PublicKey, Secp256k1}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `secp256k1::ecdsa::Signature` [INFO] [stdout] --> src/modules/transaction/service.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use secp256k1::ecdsa::Signature; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Keccak256` [INFO] [stdout] --> src/modules/transaction/service.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use sha3::{Digest, Keccak256}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromPrimitive` and `ToPrimitive` [INFO] [stdout] --> src/modules/currency/conversion.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_decimal::prelude::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToUser` [INFO] [stdout] --> src/producers/user.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::user::types::{ToUser, User, UserStatus}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CreatedUserEventPayload` and `PendingUserEventPayload` [INFO] [stdout] --> src/producers/transaction.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::types::user::event::{CreatedUserEventPayload, PendingUserEventPayload}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UserStatus` and `User` [INFO] [stdout] --> src/producers/transaction.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::types::user::types::{User, UserStatus}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/modules/transaction/service.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use sha3::{Digest, Keccak256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/consumers/user.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn start(mut connection: &mut Connection) -> Result { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/consumers/transaction.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn start(mut connection: &mut Connection) -> Result { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/transaction/service.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut sender: Result = match get_user(payload.sender.unwrap()) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/modules/transaction/service.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut receiver: Result = match get_user(payload.receiver.unwrap()) { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/modules/user/service.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | Ok(data) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:62:29 [INFO] [stdout] | [INFO] [stdout] 62 | let mut user = payload.to_user(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UserEventError` is never used [INFO] [stdout] --> src/types/user/event.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum UserEventError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransactionsByType` is never constructed [INFO] [stdout] --> src/types/transaction/types.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct TransactionsByType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:104:41 [INFO] [stdout] | [INFO] [stdout] 104 | / ... transaction_producer [INFO] [stdout] 105 | | ... .publish(transaction.clone()); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 104 | let _ = transaction_producer [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.70s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "e01c9023bb8e9420b1c929ddb64d52f1b4d50be865ab69c701430e94cd6718ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e01c9023bb8e9420b1c929ddb64d52f1b4d50be865ab69c701430e94cd6718ad", kill_on_drop: false }` [INFO] [stdout] e01c9023bb8e9420b1c929ddb64d52f1b4d50be865ab69c701430e94cd6718ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 578b1b60351861666ceb0010eff7ce832edb563c70adaf00fb77735eb5518503 [INFO] running `Command { std: "docker" "start" "-a" "578b1b60351861666ceb0010eff7ce832edb563c70adaf00fb77735eb5518503", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Transaction` [INFO] [stderr] --> src/main.rs:7:55 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::types::transaction::types::{ToTransaction, Transaction, TransactionStatus}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `redis::RedisError` [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use redis::RedisError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Error`, `PublicKey`, and `Secp256k1` [INFO] [stderr] --> src/main.rs:13:17 [INFO] [stderr] | [INFO] [stderr] 13 | use secp256k1::{Error, PublicKey, Secp256k1}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `TransactionStatus` and `Transaction` [INFO] [stderr] --> src/handlers/user.rs:10:40 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::types::transaction::types::{Transaction, TransactionStatus}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::types::currency::Currencies` [INFO] [stderr] --> src/handlers/transaction.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::types::currency::Currencies; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `TransactionIdentifiers` and `TransactionsByType` [INFO] [stderr] --> src/handlers/transaction.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | Transaction, TransactionIdentifiers, TransactionStatus, TransactionsByType, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::Utc` [INFO] [stderr] --> src/handlers/transaction.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use chrono::Utc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Message`, `PublicKey`, and `Secp256k1` [INFO] [stderr] --> src/modules/transaction/service.rs:6:17 [INFO] [stderr] | [INFO] [stderr] 6 | use secp256k1::{Message, PublicKey, Secp256k1}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `secp256k1::ecdsa::Signature` [INFO] [stderr] --> src/modules/transaction/service.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use secp256k1::ecdsa::Signature; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Keccak256` [INFO] [stderr] --> src/modules/transaction/service.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | use sha3::{Digest, Keccak256}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FromPrimitive` and `ToPrimitive` [INFO] [stderr] --> src/modules/currency/conversion.rs:1:29 [INFO] [stderr] | [INFO] [stderr] 1 | use rust_decimal::prelude::{FromPrimitive, ToPrimitive}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ToUser` [INFO] [stderr] --> src/producers/user.rs:3:33 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::types::user::types::{ToUser, User, UserStatus}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CreatedUserEventPayload` and `PendingUserEventPayload` [INFO] [stderr] --> src/producers/transaction.rs:4:33 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::types::user::event::{CreatedUserEventPayload, PendingUserEventPayload}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `UserStatus` and `User` [INFO] [stderr] --> src/producers/transaction.rs:5:33 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::types::user::types::{User, UserStatus}; [INFO] [stderr] | ^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Digest` [INFO] [stderr] --> src/modules/transaction/service.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | use sha3::{Digest, Keccak256}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/consumers/user.rs:29:18 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn start(mut connection: &mut Connection) -> Result { [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/consumers/transaction.rs:9:18 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn start(mut connection: &mut Connection) -> Result { [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/modules/transaction/service.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | let mut sender: Result = match get_user(payload.sender.unwrap()) { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/modules/transaction/service.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | let mut receiver: Result = match get_user(payload.receiver.unwrap()) { [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/modules/user/service.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | Ok(data) => { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:62:29 [INFO] [stderr] | [INFO] [stderr] 62 | let mut user = payload.to_user(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: enum `UserEventError` is never used [INFO] [stderr] --> src/types/user/event.rs:11:10 [INFO] [stderr] | [INFO] [stderr] 11 | pub enum UserEventError { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `TransactionsByType` is never constructed [INFO] [stderr] --> src/types/transaction/types.rs:91:12 [INFO] [stderr] | [INFO] [stderr] 91 | pub struct TransactionsByType { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:104:41 [INFO] [stderr] | [INFO] [stderr] 104 | / ... transaction_producer [INFO] [stderr] 105 | | ... .publish(transaction.clone()); [INFO] [stderr] | |_______________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 104 | let _ = transaction_producer [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `infinity-codefest` (bin "infinity-codefest" test) generated 24 warnings (run `cargo fix --bin "infinity-codefest" --tests` to apply 19 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/infinity_codefest-a982dad95b8d780b) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test modules::currency::conversion::tests::test_convert_ic_eth ... ok [INFO] [stdout] test modules::currency::conversion::tests::test_convert_eth_btc ... ok [INFO] [stdout] test modules::currency::conversion::tests::test_convert_usd_btc ... ok [INFO] [stdout] test modules::currency::conversion::tests::test_convert_usd_brl ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- modules::currency::conversion::tests::test_convert_usd_brl stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'modules::currency::conversion::tests::test_convert_usd_brl' panicked at src/modules/currency/conversion.rs:43:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: 20.0 [INFO] [stdout] right: 200.0 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x59bab95aa372 - std::backtrace_rs::backtrace::libunwind::trace::hf6dd235ae0786829 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x59bab95aa372 - std::backtrace_rs::backtrace::trace_unsynchronized::h3a5b54e78104e8b2 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x59bab95aa372 - std::sys::backtrace::_print_fmt::hca7a5c1644e21919 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x59bab95aa372 - ::fmt::h38110959524b373c [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x59bab95cf803 - core::fmt::rt::Argument::fmt::h391eb3fdbf3d4042 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x59bab95cf803 - core::fmt::write::h5b87140645224122 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/fmt/mod.rs:1465:25 [INFO] [stdout] 6: 0x59bab95a72f3 - std::io::default_write_fmt::h3039811ce7aea84b [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x59bab95a72f3 - std::io::Write::write_fmt::h2eef262cf4840ab4 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x59bab95aa1c2 - std::sys::backtrace::BacktraceLock::print::hcd755c38f62e4492 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x59bab95ab8dc - std::panicking::default_hook::{{closure}}::h351f33591b26e6e7 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x59bab95ab732 - std::panicking::default_hook::he5bba7bf0a373c6e [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x59bab9572d74 - as core::ops::function::Fn>::call::he967d9fa26b9957c [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x59bab9572d74 - test::test_main_with_exit_callback::{{closure}}::h80e1694b81a05381 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x59bab95ac2bb - as core::ops::function::Fn>::call::h4e924fcf5bc64d70 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x59bab95ac2bb - std::panicking::rust_panic_with_hook::hdf456b43e6535023 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x59bab95ac08a - std::panicking::begin_panic_handler::{{closure}}::he1c1ab0b84006a97 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x59bab95aa869 - std::sys::backtrace::__rust_end_short_backtrace::h2a71da996e10b8a0 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x59bab95abd1d - __rustc[92197b79f0fe8095]::rust_begin_unwind [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x59bab95cdfd0 - core::panicking::panic_fmt::h723bf1d52f6dad29 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x59bab95ce237 - core::panicking::assert_failed_inner::hf0724fdfb0e16b9c [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/panicking.rs:432:17 [INFO] [stdout] 20: 0x59bab953917b - core::panicking::assert_failed::h00b3304aceb66ea0 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/panicking.rs:387:5 [INFO] [stdout] 21: 0x59bab953946b - infinity_codefest::modules::currency::conversion::tests::test_convert_usd_brl::h3e772f82d62cc63b [INFO] [stdout] at /opt/rustwide/workdir/src/modules/currency/conversion.rs:43:9 [INFO] [stdout] 22: 0x59bab9539397 - infinity_codefest::modules::currency::conversion::tests::test_convert_usd_brl::{{closure}}::h66080c44eeb18758 [INFO] [stdout] at /opt/rustwide/workdir/src/modules/currency/conversion.rs:34:30 [INFO] [stdout] 23: 0x59bab9539046 - core::ops::function::FnOnce::call_once::h24478295ab6fa829 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x59bab957851b - core::ops::function::FnOnce::call_once::h0669c8b9c48a7d8a [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x59bab957851b - test::__rust_begin_short_backtrace::h7b085d6d90a7575c [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x59bab95776ee - test::run_test_in_process::{{closure}}::ha304053f1e1d1fbe [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:671:74 [INFO] [stdout] 27: 0x59bab95776ee - as core::ops::function::FnOnce<()>>::call_once::h8e30650eb6723f86 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x59bab95776ee - std::panicking::catch_unwind::do_call::hfe563e330be3fd9d [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x59bab95776ee - std::panicking::catch_unwind::hed40f568f7f44546 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x59bab95776ee - std::panic::catch_unwind::h3bb9c46c11d39dfb [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x59bab95776ee - test::run_test_in_process::hd65f1a6e6622ae42 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x59bab95776ee - test::run_test::{{closure}}::h9e896de936f245ea [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x59bab953b2e4 - test::run_test::{{closure}}::hbb18881f56552c10 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x59bab953b2e4 - std::sys::backtrace::__rust_begin_short_backtrace::hca2387d32733b689 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x59bab953ebda - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9601175bf02a7fb8 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x59bab953ebda - as core::ops::function::FnOnce<()>>::call_once::had8286ad0e1f2528 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x59bab953ebda - std::panicking::catch_unwind::do_call::he4164e9e75841fd6 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x59bab953ebda - std::panicking::catch_unwind::h48ccc52a84ae7300 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x59bab953ebda - std::panic::catch_unwind::h3d97eb787aa35ee4 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x59bab953ebda - std::thread::Builder::spawn_unchecked_::{{closure}}::h1019329d11de31fb [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x59bab953ebda - core::ops::function::FnOnce::call_once{{vtable.shim}}::h050615be551c6447 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x59bab95af217 - as core::ops::function::FnOnce>::call_once::h23e83c3768c28e74 [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 43: 0x59bab95af217 - as core::ops::function::FnOnce>::call_once::he67b41932d2c126e [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 44: 0x59bab95af217 - std::sys::pal::unix::thread::Thread::new::thread_start::hc05bf0eaa2386caa [INFO] [stdout] at /rustc/b03b3a7ec92682be2917540b679478d41c95a30c/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 45: 0x782958aceaa4 - [INFO] [stdout] 46: 0x782958b5ba34 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] modules::currency::conversion::tests::test_convert_usd_brl [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin infinity-codefest` [INFO] running `Command { std: "docker" "inspect" "578b1b60351861666ceb0010eff7ce832edb563c70adaf00fb77735eb5518503", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "578b1b60351861666ceb0010eff7ce832edb563c70adaf00fb77735eb5518503", kill_on_drop: false }` [INFO] [stdout] 578b1b60351861666ceb0010eff7ce832edb563c70adaf00fb77735eb5518503