[INFO] cloning repository https://github.com/fellenbrais1/freeos_swap
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fellenbrais1/freeos_swap" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffellenbrais1%2Ffreeos_swap", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffellenbrais1%2Ffreeos_swap'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d7e094f0ebe331357fa2a1cec293b334f92f636d
[INFO] checking fellenbrais1/freeos_swap against try#1c4199da70f816f2239f41c55168ff75a3663718 for pr-155499
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffellenbrais1%2Ffreeos_swap" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/fellenbrais1/freeos_swap
[INFO] finished tweaking git repo https://github.com/fellenbrais1/freeos_swap
[INFO] tweaked toml for git repo https://github.com/fellenbrais1/freeos_swap written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/fellenbrais1/freeos_swap on toolchain 1c4199da70f816f2239f41c55168ff75a3663718
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1c4199da70f816f2239f41c55168ff75a3663718" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/fellenbrais1/freeos_swap 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" "+1c4199da70f816f2239f41c55168ff75a3663718" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: /workspace/builds/worker-1-tc2/source/Cargo.toml: unused manifest key: workspace.candid
[INFO] [stderr] warning: /workspace/builds/worker-1-tc2/source/Cargo.toml: unused manifest key: workspace.ic-cdk
[INFO] [stderr] warning: /workspace/builds/worker-1-tc2/source/Cargo.toml: unused manifest key: workspace.ic-cdk-macros
[INFO] [stderr] warning: /workspace/builds/worker-1-tc2/source/Cargo.toml: unused manifest key: workspace.ic_principal
[INFO] [stderr] warning: /workspace/builds/worker-1-tc2/source/Cargo.toml: unused manifest key: workspace.serde
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1c4199da70f816f2239f41c55168ff75a3663718" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6c3fb31965681dda5b5bcb53c72a7d7dbf1537c098c06d1dbf194525be918c49
[INFO] running `Command { std: "docker" "start" "-a" "6c3fb31965681dda5b5bcb53c72a7d7dbf1537c098c06d1dbf194525be918c49", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6c3fb31965681dda5b5bcb53c72a7d7dbf1537c098c06d1dbf194525be918c49", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6c3fb31965681dda5b5bcb53c72a7d7dbf1537c098c06d1dbf194525be918c49", kill_on_drop: false }`
[INFO] [stdout] 6c3fb31965681dda5b5bcb53c72a7d7dbf1537c098c06d1dbf194525be918c49
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1c4199da70f816f2239f41c55168ff75a3663718" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2633ef15583934ff94d430f91571457a0851331d9ebd5477e25431a65ae992e1
[INFO] running `Command { std: "docker" "start" "-a" "2633ef15583934ff94d430f91571457a0851331d9ebd5477e25431a65ae992e1", kill_on_drop: false }`
[INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: unused manifest key: workspace.candid
[INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: unused manifest key: workspace.ic-cdk
[INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: unused manifest key: workspace.ic-cdk-macros
[INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: unused manifest key: workspace.ic_principal
[INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: unused manifest key: workspace.serde
[INFO] [stderr]    Compiling either v1.13.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling serde v1.0.210
[INFO] [stderr]    Compiling cc v1.1.18
[INFO] [stderr]    Compiling libc v0.2.158
[INFO] [stderr]    Compiling crc32fast v1.4.2
[INFO] [stderr]    Compiling arrayvec v0.5.2
[INFO] [stderr]    Compiling data-encoding v2.6.0
[INFO] [stderr]    Compiling unicode-width v0.1.13
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling typed-arena v2.0.2
[INFO] [stderr]     Checking futures-core v0.3.30
[INFO] [stderr]     Checking futures-sink v0.3.30
[INFO] [stderr]     Checking futures-channel v0.3.30
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling leb128 v0.2.5
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling slotmap v1.0.7
[INFO] [stderr]     Checking ic0 v0.23.0
[INFO] [stderr]     Checking base64 v0.10.1
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling pretty v0.12.3
[INFO] [stderr]     Checking whoami v1.5.2
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.77
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling psm v0.1.23
[INFO] [stderr]    Compiling stacker v0.1.17
[INFO] [stderr]    Compiling binread_derive v2.1.0
[INFO] [stderr]    Compiling binread v2.2.0
[INFO] [stderr]    Compiling serde_derive v1.0.210
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]    Compiling candid_derive v0.6.6
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]     Checking futures-util v0.3.30
[INFO] [stderr]     Checking futures-executor v0.3.30
[INFO] [stderr]     Checking futures v0.3.30
[INFO] [stderr]     Checking ic_principal v0.1.1
[INFO] [stderr]     Checking serde_bytes v0.11.15
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]     Checking blob v0.3.0
[INFO] [stderr]    Compiling serde_tokenstream v0.2.2
[INFO] [stderr]     Checking candid v0.10.10
[INFO] [stderr]    Compiling ic-cdk-macros v0.16.0
[INFO] [stderr]     Checking ic-cdk v0.16.0
[INFO] [stderr]     Checking ic-cdk-timers v0.10.0
[INFO] [stderr]     Checking freeos_swap v0.1.0 (/opt/rustwide/workdir/src/freeos_swap)
[INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:230:46
[INFO] [stdout]     |
[INFO] [stdout] 230 |         let object_to_print = get_my_struct(&current_send_object);
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: use the `|| { ... }` closure form instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `api::management_canister::bitcoin::GetCurrentFeePercentilesRequest`
[INFO] [stdout]  --> src/freeos_swap/src/lib.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use api::management_canister::bitcoin::GetCurrentFeePercentilesRequest;
[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: `std::f32::MIN`
[INFO] [stdout]   --> src/freeos_swap/src/lib.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::f32::MIN;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::mem::transmute`
[INFO] [stdout]   --> src/freeos_swap/src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::mem::transmute;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::FromStr`
[INFO] [stdout]   --> src/freeos_swap/src/lib.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::str::FromStr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::convert::TryInto`
[INFO] [stdout]   --> src/freeos_swap/src/lib.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use std::convert::TryInto;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ic_cdk::storage`
[INFO] [stdout]   --> src/freeos_swap/src/lib.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use ic_cdk::storage;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ic_cdk::storage`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:164:9
[INFO] [stdout]     |
[INFO] [stdout] 164 |     use ic_cdk::storage;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:230:46
[INFO] [stdout]     |
[INFO] [stdout] 230 |         let object_to_print = get_my_struct(&current_send_object);
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: use the `|| { ... }` closure form instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `api::management_canister::bitcoin::GetCurrentFeePercentilesRequest`
[INFO] [stdout]  --> src/freeos_swap/src/lib.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use api::management_canister::bitcoin::GetCurrentFeePercentilesRequest;
[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: `std::f32::MIN`
[INFO] [stdout]   --> src/freeos_swap/src/lib.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::f32::MIN;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::mem::transmute`
[INFO] [stdout]   --> src/freeos_swap/src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::mem::transmute;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::FromStr`
[INFO] [stdout]   --> src/freeos_swap/src/lib.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::str::FromStr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::convert::TryInto`
[INFO] [stdout]   --> src/freeos_swap/src/lib.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use std::convert::TryInto;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ic_cdk::storage`
[INFO] [stdout]   --> src/freeos_swap/src/lib.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use ic_cdk::storage;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ic_cdk::storage`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:164:9
[INFO] [stdout]     |
[INFO] [stdout] 164 |     use ic_cdk::storage;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:180:9
[INFO] [stdout]     |
[INFO] [stdout] 180 |     let mut transfer_amount: Tokens = INITIAL_TRANSFER_AMOUNT;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:181:9
[INFO] [stdout]     |
[INFO] [stdout] 181 |     let mut transfer_fee: Tokens = INITIAL_TRANSFER_FEE;
[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/freeos_swap/src/lib.rs:215:9
[INFO] [stdout]     |
[INFO] [stdout] 215 |     let mut current_send_object: SendInfo = SendInfo {
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `timer_object`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:169:9
[INFO] [stdout]     |
[INFO] [stdout] 169 |     let timer_object: TimerObject = TimerObject {
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timer_object`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `transfer_amount`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:180:9
[INFO] [stdout]     |
[INFO] [stdout] 180 |     let mut transfer_amount: Tokens = INITIAL_TRANSFER_AMOUNT;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transfer_amount`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `transfer_fee`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:181:9
[INFO] [stdout]     |
[INFO] [stdout] 181 |     let mut transfer_fee: Tokens = INITIAL_TRANSFER_FEE;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transfer_fee`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `minter_account`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:188:9
[INFO] [stdout]     |
[INFO] [stdout] 188 |     let minter_account: Account = Account { 
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_minter_account`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `json_array`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:208:9
[INFO] [stdout]     |
[INFO] [stdout] 208 |     let json_array: [JsonRecord; 2] = [
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_array`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `json_record_keys`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:213:9
[INFO] [stdout]     |
[INFO] [stdout] 213 |     let json_record_keys = ["proton_account", "ic_principal", "amount", "date_time"];
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_record_keys`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `current_send_object`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:215:9
[INFO] [stdout]     |
[INFO] [stdout] 215 |     let mut current_send_object: SendInfo = SendInfo {
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_send_object`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `current_send_object.amount`, as `current_send_object` is not declared as mutable
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:236:9
[INFO] [stdout]     |
[INFO] [stdout] 236 |         current_send_object.amount = amount;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 235 |     pub fn set_transfer_amount(amount: u64, mut current_send_object: SendInfo) -> u64 {
[INFO] [stdout]     |                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0434, E0594.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0434`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `freeos_swap` (lib test) due to 2 previous errors; 17 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:180:9
[INFO] [stdout]     |
[INFO] [stdout] 180 |     let mut transfer_amount: Tokens = INITIAL_TRANSFER_AMOUNT;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:181:9
[INFO] [stdout]     |
[INFO] [stdout] 181 |     let mut transfer_fee: Tokens = INITIAL_TRANSFER_FEE;
[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/freeos_swap/src/lib.rs:215:9
[INFO] [stdout]     |
[INFO] [stdout] 215 |     let mut current_send_object: SendInfo = SendInfo {
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `timer_object`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:169:9
[INFO] [stdout]     |
[INFO] [stdout] 169 |     let timer_object: TimerObject = TimerObject {
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timer_object`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `transfer_amount`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:180:9
[INFO] [stdout]     |
[INFO] [stdout] 180 |     let mut transfer_amount: Tokens = INITIAL_TRANSFER_AMOUNT;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transfer_amount`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `transfer_fee`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:181:9
[INFO] [stdout]     |
[INFO] [stdout] 181 |     let mut transfer_fee: Tokens = INITIAL_TRANSFER_FEE;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transfer_fee`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `minter_account`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:188:9
[INFO] [stdout]     |
[INFO] [stdout] 188 |     let minter_account: Account = Account { 
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_minter_account`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `json_array`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:208:9
[INFO] [stdout]     |
[INFO] [stdout] 208 |     let json_array: [JsonRecord; 2] = [
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_array`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `json_record_keys`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:213:9
[INFO] [stdout]     |
[INFO] [stdout] 213 |     let json_record_keys = ["proton_account", "ic_principal", "amount", "date_time"];
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_record_keys`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `current_send_object`
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:215:9
[INFO] [stdout]     |
[INFO] [stdout] 215 |     let mut current_send_object: SendInfo = SendInfo {
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_send_object`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `current_send_object.amount`, as `current_send_object` is not declared as mutable
[INFO] [stdout]    --> src/freeos_swap/src/lib.rs:236:9
[INFO] [stdout]     |
[INFO] [stdout] 236 |         current_send_object.amount = amount;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 235 |     pub fn set_transfer_amount(amount: u64, mut current_send_object: SendInfo) -> u64 {
[INFO] [stdout]     |                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0434, E0594.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0434`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `freeos_swap` (lib) due to 2 previous errors; 17 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "2633ef15583934ff94d430f91571457a0851331d9ebd5477e25431a65ae992e1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2633ef15583934ff94d430f91571457a0851331d9ebd5477e25431a65ae992e1", kill_on_drop: false }`
[INFO] [stdout] 2633ef15583934ff94d430f91571457a0851331d9ebd5477e25431a65ae992e1
