[INFO] cloning repository https://github.com/levackt/stakepool
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/levackt/stakepool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevackt%2Fstakepool", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevackt%2Fstakepool'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] bc3495309525ab952fee3ab48fb1e0fe8d7d2e5f
[INFO] testing levackt/stakepool against 1.98.0-beta.1 for beta-1.98-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevackt%2Fstakepool" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config
[INFO] started tweaking git repo https://github.com/levackt/stakepool
[INFO] finished tweaking git repo https://github.com/levackt/stakepool
[INFO] tweaked toml for git repo https://github.com/levackt/stakepool written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/levackt/stakepool on toolchain 1.98.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/levackt/stakepool 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" "+1.98.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367
[INFO] running `Command { std: "docker" "start" "40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.24
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]    Compiling syn v1.0.60
[INFO] [stderr]    Compiling typenum v1.12.0
[INFO] [stderr]    Compiling serde_derive v1.0.123
[INFO] [stderr]    Compiling serde v1.0.123
[INFO] [stderr]    Compiling ryu v1.0.5
[INFO] [stderr]    Compiling doc-comment v0.3.3
[INFO] [stderr]    Compiling serde_json v1.0.62
[INFO] [stderr]    Compiling itoa v0.4.7
[INFO] [stderr]    Compiling schemars v0.7.6
[INFO] [stderr]    Compiling libc v0.2.86
[INFO] [stderr]    Compiling base64 v0.11.0
[INFO] [stderr]    Compiling byteorder v1.4.2
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling version_check v0.9.2
[INFO] [stderr]    Compiling subtle v1.0.0
[INFO] [stderr]    Compiling byte-tools v0.3.1
[INFO] [stderr]    Compiling block-padding v0.1.5
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling ppv-lite86 v0.2.10
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling fake-simd v0.1.2
[INFO] [stderr]    Compiling opaque-debug v0.2.3
[INFO] [stderr]    Compiling cpuid-bool v0.1.2
[INFO] [stderr]    Compiling subtle v2.4.0
[INFO] [stderr]    Compiling arrayref v0.3.6
[INFO] [stderr]    Compiling opaque-debug v0.3.0
[INFO] [stderr]    Compiling arrayvec v0.5.2
[INFO] [stderr]    Compiling hex v0.4.2
[INFO] [stderr]    Compiling base64 v0.12.3
[INFO] [stderr]    Compiling generic-array v0.14.4
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]    Compiling generic-array v0.12.3
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling digest v0.8.1
[INFO] [stderr]    Compiling crypto-mac v0.7.0
[INFO] [stderr]    Compiling block-buffer v0.7.3
[INFO] [stderr]    Compiling hmac v0.7.1
[INFO] [stderr]    Compiling sha2 v0.8.2
[INFO] [stderr]    Compiling hmac-drbg v0.2.0
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling sha2 v0.9.3
[INFO] [stderr]    Compiling rust_decimal v1.10.3
[INFO] [stderr]    Compiling libsecp256k1 v0.3.5
[INFO] [stderr]    Compiling serde_derive_internals v0.25.0
[INFO] [stderr]    Compiling snafu-derive v0.6.10
[INFO] [stderr]    Compiling schemars_derive v0.7.6
[INFO] [stderr]    Compiling snafu v0.6.10
[INFO] [stderr]    Compiling serde-json-wasm v0.2.3
[INFO] [stderr]    Compiling bincode2 v2.0.1
[INFO] [stderr]    Compiling cosmwasm-std v0.10.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92)
[INFO] [stderr]    Compiling cosmwasm-storage v0.10.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92)
[INFO] [stderr]    Compiling secret-toolkit-utils v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling secret-toolkit-serialization v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling secret-toolkit-crypto v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling secret-toolkit-snip20 v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling secret-toolkit-storage v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling secret-toolkit v0.1.0 (https://github.com/enigmampc/secret-toolkit#1faf60a4)
[INFO] [stderr]    Compiling stakepool v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Decimal`, `FullDelegation`, and `Validator`
[INFO] [stdout]  --> src/contract.rs:4:75
[INFO] [stdout]   |
[INFO] [stdout] 4 |     log, to_binary, Api, BankMsg, Binary, CanonicalAddr, Coin, CosmosMsg, Decimal, Env, Extern,
[INFO] [stdout]   |                                                                           ^^^^^^^
[INFO] [stdout] 5 |     FullDelegation, HandleResponse, HumanAddr, InitResponse, Querier, QueryResult, ReadonlyStorage,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 6 |     StdError, StdResult, Storage, Uint128, Validator,
[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: `RngCore`
[INFO] [stdout]   --> src/contract.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | use rand::{RngCore, SeedableRng};
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `withdraw_to_self`
[INFO] [stdout]   --> src/contract.rs:22:29
[INFO] [stdout]    |
[INFO] [stdout] 22 | use crate::staking::{stake, withdraw_to_self, withdraw_to_winner, get_rewards, };
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `VALIDATOR_SET_KEY` and `log_string_read`
[INFO] [stdout]   --> src/contract.rs:24:60
[INFO] [stdout]    |
[INFO] [stdout] 24 |     get_receiver_hash, get_transfers, get_txs, log_string, log_string_read, lottery, lottery_read,
[INFO] [stdout]    |                                                            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     Lottery, ReadonlyBalances, ReadonlyConfig, VALIDATOR_SET_KEY, store_win
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]    --> src/contract.rs:116:16
[INFO] [stdout]     |
[INFO] [stdout] 116 |     valset.add((init_config.validator()));
[INFO] [stdout]     |                ^                       ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 116 -     valset.add((init_config.validator()));
[INFO] [stdout] 116 +     valset.add(init_config.validator());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BondedRatioResponse`, `InflationResponse`, and `MintQuery`
[INFO] [stdout]  --> src/staking.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     BondedRatioResponse, Coin, CosmosMsg, DistQuery, HumanAddr, InflationResponse, MintQuery,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^                                         ^^^^^^^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Bucket`, `ReadonlyBucket`, `bucket_read`, and `bucket`
[INFO] [stdout]  --> src/state.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |     bucket, bucket_read, singleton, singleton_read, Bucket, PrefixedStorage, ReadonlyBucket,
[INFO] [stdout]   |     ^^^^^^  ^^^^^^^^^^^                             ^^^^^^                   ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rust_decimal::prelude::*`
[INFO] [stdout]  --> src/state.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rust_decimal::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rust_decimal::Decimal`
[INFO] [stdout]  --> src/state.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use rust_decimal::Decimal;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Binary`, `CosmosMsg`, `HumanAddr`, `Uint128`, and `WasmMsg`
[INFO] [stdout]  --> src/utils.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use cosmwasm_std::{Binary, CosmosMsg, HumanAddr, StdError, StdResult, Uint128, WasmMsg};
[INFO] [stdout]   |                    ^^^^^^  ^^^^^^^^^  ^^^^^^^^^                       ^^^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_locked_balance` is never used
[INFO] [stdout]  --> src/staking.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn get_locked_balance<Q: Querier>(
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_total_onchain_balance` is never used
[INFO] [stdout]   --> src/staking.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub fn get_total_onchain_balance<Q: Querier>(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_bonded` is never used
[INFO] [stdout]   --> src/staking.rs:57:8
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub fn get_bonded<Q: Querier>(querier: &Q, contract: &HumanAddr) -> StdResult<Uint128> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_unbonding` is never used
[INFO] [stdout]   --> src/staking.rs:78:8
[INFO] [stdout]    |
[INFO] [stdout] 78 | pub fn get_unbonding<Q: Querier>(querier: &Q, contract: &HumanAddr) -> StdResult<Uint128> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `withdraw_to_self` is never used
[INFO] [stdout]    --> src/staking.rs:103:8
[INFO] [stdout]     |
[INFO] [stdout] 103 | pub fn withdraw_to_self(validator: &String) -> CosmosMsg {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `restake` is never used
[INFO] [stdout]    --> src/staking.rs:117:8
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub fn restake(validator: &String, amount: u128) -> Vec<CosmosMsg> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `undelegate` is never used
[INFO] [stdout]    --> src/staking.rs:143:8
[INFO] [stdout]     |
[INFO] [stdout] 143 | pub fn undelegate(validator: &String, amount: u128) -> CosmosMsg {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `entries` is never used
[INFO] [stdout]    --> src/state.rs:786:8
[INFO] [stdout]     |
[INFO] [stdout] 748 | impl<'a, S: ReadonlyStorage> ReadonlyConfigImpl<'a, S> {
[INFO] [stdout]     | ------------------------------------------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 786 |     fn entries(&self) -> Vec<(CanonicalAddr, Uint128)> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `dec_to_uint` is never used
[INFO] [stdout]   --> src/utils.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn dec_to_uint(dec: String) -> StdResult<u128> {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `remove`, `unbond`, and `get_winner` are never used
[INFO] [stdout]    --> src/validator_set.rs:34:12
[INFO] [stdout]     |
[INFO] [stdout]  33 | impl ValidatorSet {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout]  34 |     pub fn remove(&mut self, address: &String, force: bool) -> StdResult<()> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  62 |     pub fn unbond(&mut self, to_stake: u128) -> StdResult<String> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn get_winner(&mut self) -> Option<&String> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:756:9
[INFO] [stdout]     |
[INFO] [stdout] 756 |         &a_lottery.entries.retain(|(k, _)| k != &sender_address);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 756 |         let _ = &a_lottery.entries.retain(|(k, _)| k != &sender_address);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:758:5
[INFO] [stdout]     |
[INFO] [stdout] 758 | /     &a_lottery.entries.push((
[INFO] [stdout] 759 | |         sender_address.clone(),
[INFO] [stdout] 760 | |         Uint128::from(account_balance + amount),
[INFO] [stdout] 761 | |     ));
[INFO] [stdout]     | |______^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 758 |     let _ = &a_lottery.entries.push((
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:763:5
[INFO] [stdout]     |
[INFO] [stdout] 763 |     &a_lottery.entropy.extend(&env.block.height.to_be_bytes());
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 763 |     let _ = &a_lottery.entropy.extend(&env.block.height.to_be_bytes());
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:764:5
[INFO] [stdout]     |
[INFO] [stdout] 764 |     &a_lottery.entropy.extend(&env.block.time.to_be_bytes());
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 764 |     let _ = &a_lottery.entropy.extend(&env.block.time.to_be_bytes());
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/contract.rs:765:5
[INFO] [stdout]     |
[INFO] [stdout] 765 |     lottery(&mut deps.storage).save(&a_lottery);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 765 |     let _ = lottery(&mut deps.storage).save(&a_lottery);
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:823:5
[INFO] [stdout]     |
[INFO] [stdout] 823 |     &lottery.entries.retain(|(k, _)| k != &sender_address);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 823 |     let _ = &lottery.entries.retain(|(k, _)| k != &sender_address);
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:825:9
[INFO] [stdout]     |
[INFO] [stdout] 825 | /         &lottery
[INFO] [stdout] 826 | |             .entries
[INFO] [stdout] 827 | |             .push((sender_address.clone(), Uint128::from(account_balance)));
[INFO] [stdout]     | |___________________________________________________________________________^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 825 |         let _ = &lottery
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:588:37
[INFO] [stdout]     |
[INFO] [stdout] 588 | pub fn lottery<S: Storage>(storage: &mut S) -> Singleton<S, Lottery> {
[INFO] [stdout]     |                                     ^^^^^^     ^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                                     |
[INFO] [stdout]     |                                     the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 588 | pub fn lottery<S: Storage>(storage: &mut S) -> Singleton<'_, S, Lottery> {
[INFO] [stdout]     |                                                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:592:42
[INFO] [stdout]     |
[INFO] [stdout] 592 | pub fn lottery_read<S: Storage>(storage: &S) -> ReadonlySingleton<S, Lottery> {
[INFO] [stdout]     |                                          ^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                                          |
[INFO] [stdout]     |                                          the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 592 | pub fn lottery_read<S: Storage>(storage: &S) -> ReadonlySingleton<'_, S, Lottery> {
[INFO] [stdout]     |                                                                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:607:20
[INFO] [stdout]     |
[INFO] [stdout] 607 |     fn as_readonly(&self) -> ReadonlyConfigImpl<ReadonlyPrefixedStorage<S>> {
[INFO] [stdout]     |                    ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                    |         |                  |
[INFO] [stdout]     |                    |         |                  the same lifetime is hidden here
[INFO] [stdout]     |                    |         the same lifetime is hidden here
[INFO] [stdout]     |                    the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 607 |     fn as_readonly(&self) -> ReadonlyConfigImpl<'_, ReadonlyPrefixedStorage<'_, S>> {
[INFO] [stdout]     |                                                 +++                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:650:40
[INFO] [stdout]     |
[INFO] [stdout] 650 | pub fn log_string<S: Storage>(storage: &mut S) -> Singleton<S, String> {
[INFO] [stdout]     |                                        ^^^^^^     ^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                                        |
[INFO] [stdout]     |                                        the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 650 | pub fn log_string<S: Storage>(storage: &mut S) -> Singleton<'_, S, String> {
[INFO] [stdout]     |                                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:654:45
[INFO] [stdout]     |
[INFO] [stdout] 654 | pub fn log_string_read<S: Storage>(storage: &S) -> ReadonlySingleton<S, String> {
[INFO] [stdout]     |                                             ^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                                             |
[INFO] [stdout]     |                                             the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 654 | pub fn log_string_read<S: Storage>(storage: &S) -> ReadonlySingleton<'_, S, String> {
[INFO] [stdout]     |                                                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:669:20
[INFO] [stdout]     |
[INFO] [stdout] 669 |     fn as_readonly(&self) -> ReadonlyConfigImpl<PrefixedStorage<S>> {
[INFO] [stdout]     |                    ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                    |         |                  |
[INFO] [stdout]     |                    |         |                  the same lifetime is hidden here
[INFO] [stdout]     |                    |         the same lifetime is hidden here
[INFO] [stdout]     |                    the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 669 |     fn as_readonly(&self) -> ReadonlyConfigImpl<'_, PrefixedStorage<'_, S>> {
[INFO] [stdout]     |                                                 +++                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:808:20
[INFO] [stdout]     |
[INFO] [stdout] 808 |     fn as_readonly(&self) -> ReadonlyBalancesImpl<ReadonlyPrefixedStorage<S>> {
[INFO] [stdout]     |                    ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                    |         |                    |
[INFO] [stdout]     |                    |         |                    the same lifetime is hidden here
[INFO] [stdout]     |                    |         the same lifetime is hidden here
[INFO] [stdout]     |                    the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 808 |     fn as_readonly(&self) -> ReadonlyBalancesImpl<'_, ReadonlyPrefixedStorage<'_, S>> {
[INFO] [stdout]     |                                                   +++                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:828:20
[INFO] [stdout]     |
[INFO] [stdout] 828 |     fn as_readonly(&self) -> ReadonlyBalancesImpl<PrefixedStorage<S>> {
[INFO] [stdout]     |                    ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                    |         |                    |
[INFO] [stdout]     |                    |         |                    the same lifetime is hidden here
[INFO] [stdout]     |                    |         the same lifetime is hidden here
[INFO] [stdout]     |                    the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 828 |     fn as_readonly(&self) -> ReadonlyBalancesImpl<'_, PrefixedStorage<'_, S>> {
[INFO] [stdout]     |                                                   +++                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.36s
[INFO] running `Command { std: "docker" "inspect" "40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling getrandom v0.2.2
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling unicode-width v0.1.8
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling vec_map v0.8.2
[INFO] [stderr]    Compiling cbindgen v0.13.2
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling remove_dir_all v0.5.3
[INFO] [stderr]    Compiling ansi_term v0.11.0
[INFO] [stderr]    Compiling strsim v0.8.0
[INFO] [stderr]    Compiling toml v0.5.8
[INFO] [stderr]    Compiling thiserror-impl v1.0.24
[INFO] [stderr]    Compiling derive_more v0.99.11
[INFO] [stderr]    Compiling sgx_types v1.1.2 (https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.2#8f065be7)
[INFO] [stderr]    Compiling memmap v0.7.0
[INFO] [stderr]    Compiling parity-wasm v0.41.0
[INFO] [stderr]    Compiling cosmwasm-schema v0.10.1
[INFO] [stdout] warning: unused imports: `Decimal`, `FullDelegation`, and `Validator`
[INFO] [stdout]  --> src/contract.rs:4:75
[INFO] [stdout]   |
[INFO] [stdout] 4 |     log, to_binary, Api, BankMsg, Binary, CanonicalAddr, Coin, CosmosMsg, Decimal, Env, Extern,
[INFO] [stdout]   |                                                                           ^^^^^^^
[INFO] [stdout] 5 |     FullDelegation, HandleResponse, HumanAddr, InitResponse, Querier, QueryResult, ReadonlyStorage,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 6 |     StdError, StdResult, Storage, Uint128, Validator,
[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: `RngCore`
[INFO] [stdout]   --> src/contract.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | use rand::{RngCore, SeedableRng};
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `withdraw_to_self`
[INFO] [stdout]   --> src/contract.rs:22:29
[INFO] [stdout]    |
[INFO] [stdout] 22 | use crate::staking::{stake, withdraw_to_self, withdraw_to_winner, get_rewards, };
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `VALIDATOR_SET_KEY` and `log_string_read`
[INFO] [stdout]   --> src/contract.rs:24:60
[INFO] [stdout]    |
[INFO] [stdout] 24 |     get_receiver_hash, get_transfers, get_txs, log_string, log_string_read, lottery, lottery_read,
[INFO] [stdout]    |                                                            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     Lottery, ReadonlyBalances, ReadonlyConfig, VALIDATOR_SET_KEY, store_win
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]    --> src/contract.rs:116:16
[INFO] [stdout]     |
[INFO] [stdout] 116 |     valset.add((init_config.validator()));
[INFO] [stdout]     |                ^                       ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 116 -     valset.add((init_config.validator()));
[INFO] [stdout] 116 +     valset.add(init_config.validator());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BondedRatioResponse`, `InflationResponse`, and `MintQuery`
[INFO] [stdout]  --> src/staking.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     BondedRatioResponse, Coin, CosmosMsg, DistQuery, HumanAddr, InflationResponse, MintQuery,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^                                         ^^^^^^^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Bucket`, `ReadonlyBucket`, `bucket_read`, and `bucket`
[INFO] [stdout]  --> src/state.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |     bucket, bucket_read, singleton, singleton_read, Bucket, PrefixedStorage, ReadonlyBucket,
[INFO] [stdout]   |     ^^^^^^  ^^^^^^^^^^^                             ^^^^^^                   ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rust_decimal::prelude::*`
[INFO] [stdout]  --> src/state.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rust_decimal::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rust_decimal::Decimal`
[INFO] [stdout]  --> src/state.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use rust_decimal::Decimal;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Binary`, `CosmosMsg`, `HumanAddr`, `Uint128`, and `WasmMsg`
[INFO] [stdout]  --> src/utils.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use cosmwasm_std::{Binary, CosmosMsg, HumanAddr, StdError, StdResult, Uint128, WasmMsg};
[INFO] [stdout]   |                    ^^^^^^  ^^^^^^^^^  ^^^^^^^^^                       ^^^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_locked_balance` is never used
[INFO] [stdout]  --> src/staking.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn get_locked_balance<Q: Querier>(
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_total_onchain_balance` is never used
[INFO] [stdout]   --> src/staking.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub fn get_total_onchain_balance<Q: Querier>(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_bonded` is never used
[INFO] [stdout]   --> src/staking.rs:57:8
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub fn get_bonded<Q: Querier>(querier: &Q, contract: &HumanAddr) -> StdResult<Uint128> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_unbonding` is never used
[INFO] [stdout]   --> src/staking.rs:78:8
[INFO] [stdout]    |
[INFO] [stdout] 78 | pub fn get_unbonding<Q: Querier>(querier: &Q, contract: &HumanAddr) -> StdResult<Uint128> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `withdraw_to_self` is never used
[INFO] [stdout]    --> src/staking.rs:103:8
[INFO] [stdout]     |
[INFO] [stdout] 103 | pub fn withdraw_to_self(validator: &String) -> CosmosMsg {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `restake` is never used
[INFO] [stdout]    --> src/staking.rs:117:8
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub fn restake(validator: &String, amount: u128) -> Vec<CosmosMsg> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `undelegate` is never used
[INFO] [stdout]    --> src/staking.rs:143:8
[INFO] [stdout]     |
[INFO] [stdout] 143 | pub fn undelegate(validator: &String, amount: u128) -> CosmosMsg {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `entries` is never used
[INFO] [stdout]    --> src/state.rs:786:8
[INFO] [stdout]     |
[INFO] [stdout] 748 | impl<'a, S: ReadonlyStorage> ReadonlyConfigImpl<'a, S> {
[INFO] [stdout]     | ------------------------------------------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 786 |     fn entries(&self) -> Vec<(CanonicalAddr, Uint128)> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `dec_to_uint` is never used
[INFO] [stdout]   --> src/utils.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn dec_to_uint(dec: String) -> StdResult<u128> {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `remove`, `unbond`, and `get_winner` are never used
[INFO] [stdout]    --> src/validator_set.rs:34:12
[INFO] [stdout]     |
[INFO] [stdout]  33 | impl ValidatorSet {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout]  34 |     pub fn remove(&mut self, address: &String, force: bool) -> StdResult<()> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  62 |     pub fn unbond(&mut self, to_stake: u128) -> StdResult<String> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn get_winner(&mut self) -> Option<&String> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:756:9
[INFO] [stdout]     |
[INFO] [stdout] 756 |         &a_lottery.entries.retain(|(k, _)| k != &sender_address);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 756 |         let _ = &a_lottery.entries.retain(|(k, _)| k != &sender_address);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:758:5
[INFO] [stdout]     |
[INFO] [stdout] 758 | /     &a_lottery.entries.push((
[INFO] [stdout] 759 | |         sender_address.clone(),
[INFO] [stdout] 760 | |         Uint128::from(account_balance + amount),
[INFO] [stdout] 761 | |     ));
[INFO] [stdout]     | |______^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 758 |     let _ = &a_lottery.entries.push((
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:763:5
[INFO] [stdout]     |
[INFO] [stdout] 763 |     &a_lottery.entropy.extend(&env.block.height.to_be_bytes());
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 763 |     let _ = &a_lottery.entropy.extend(&env.block.height.to_be_bytes());
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:764:5
[INFO] [stdout]     |
[INFO] [stdout] 764 |     &a_lottery.entropy.extend(&env.block.time.to_be_bytes());
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 764 |     let _ = &a_lottery.entropy.extend(&env.block.time.to_be_bytes());
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/contract.rs:765:5
[INFO] [stdout]     |
[INFO] [stdout] 765 |     lottery(&mut deps.storage).save(&a_lottery);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 765 |     let _ = lottery(&mut deps.storage).save(&a_lottery);
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:823:5
[INFO] [stdout]     |
[INFO] [stdout] 823 |     &lottery.entries.retain(|(k, _)| k != &sender_address);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 823 |     let _ = &lottery.entries.retain(|(k, _)| k != &sender_address);
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/contract.rs:825:9
[INFO] [stdout]     |
[INFO] [stdout] 825 | /         &lottery
[INFO] [stdout] 826 | |             .entries
[INFO] [stdout] 827 | |             .push((sender_address.clone(), Uint128::from(account_balance)));
[INFO] [stdout]     | |___________________________________________________________________________^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 825 |         let _ = &lottery
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:588:37
[INFO] [stdout]     |
[INFO] [stdout] 588 | pub fn lottery<S: Storage>(storage: &mut S) -> Singleton<S, Lottery> {
[INFO] [stdout]     |                                     ^^^^^^     ^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                                     |
[INFO] [stdout]     |                                     the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 588 | pub fn lottery<S: Storage>(storage: &mut S) -> Singleton<'_, S, Lottery> {
[INFO] [stdout]     |                                                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:592:42
[INFO] [stdout]     |
[INFO] [stdout] 592 | pub fn lottery_read<S: Storage>(storage: &S) -> ReadonlySingleton<S, Lottery> {
[INFO] [stdout]     |                                          ^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                                          |
[INFO] [stdout]     |                                          the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 592 | pub fn lottery_read<S: Storage>(storage: &S) -> ReadonlySingleton<'_, S, Lottery> {
[INFO] [stdout]     |                                                                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:607:20
[INFO] [stdout]     |
[INFO] [stdout] 607 |     fn as_readonly(&self) -> ReadonlyConfigImpl<ReadonlyPrefixedStorage<S>> {
[INFO] [stdout]     |                    ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                    |         |                  |
[INFO] [stdout]     |                    |         |                  the same lifetime is hidden here
[INFO] [stdout]     |                    |         the same lifetime is hidden here
[INFO] [stdout]     |                    the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 607 |     fn as_readonly(&self) -> ReadonlyConfigImpl<'_, ReadonlyPrefixedStorage<'_, S>> {
[INFO] [stdout]     |                                                 +++                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:650:40
[INFO] [stdout]     |
[INFO] [stdout] 650 | pub fn log_string<S: Storage>(storage: &mut S) -> Singleton<S, String> {
[INFO] [stdout]     |                                        ^^^^^^     ^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                                        |
[INFO] [stdout]     |                                        the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 650 | pub fn log_string<S: Storage>(storage: &mut S) -> Singleton<'_, S, String> {
[INFO] [stdout]     |                                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:654:45
[INFO] [stdout]     |
[INFO] [stdout] 654 | pub fn log_string_read<S: Storage>(storage: &S) -> ReadonlySingleton<S, String> {
[INFO] [stdout]     |                                             ^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                                             |
[INFO] [stdout]     |                                             the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 654 | pub fn log_string_read<S: Storage>(storage: &S) -> ReadonlySingleton<'_, S, String> {
[INFO] [stdout]     |                                                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:669:20
[INFO] [stdout]     |
[INFO] [stdout] 669 |     fn as_readonly(&self) -> ReadonlyConfigImpl<PrefixedStorage<S>> {
[INFO] [stdout]     |                    ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                    |         |                  |
[INFO] [stdout]     |                    |         |                  the same lifetime is hidden here
[INFO] [stdout]     |                    |         the same lifetime is hidden here
[INFO] [stdout]     |                    the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 669 |     fn as_readonly(&self) -> ReadonlyConfigImpl<'_, PrefixedStorage<'_, S>> {
[INFO] [stdout]     |                                                 +++                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:808:20
[INFO] [stdout]     |
[INFO] [stdout] 808 |     fn as_readonly(&self) -> ReadonlyBalancesImpl<ReadonlyPrefixedStorage<S>> {
[INFO] [stdout]     |                    ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                    |         |                    |
[INFO] [stdout]     |                    |         |                    the same lifetime is hidden here
[INFO] [stdout]     |                    |         the same lifetime is hidden here
[INFO] [stdout]     |                    the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 808 |     fn as_readonly(&self) -> ReadonlyBalancesImpl<'_, ReadonlyPrefixedStorage<'_, S>> {
[INFO] [stdout]     |                                                   +++                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/state.rs:828:20
[INFO] [stdout]     |
[INFO] [stdout] 828 |     fn as_readonly(&self) -> ReadonlyBalancesImpl<PrefixedStorage<S>> {
[INFO] [stdout]     |                    ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                    |         |                    |
[INFO] [stdout]     |                    |         |                    the same lifetime is hidden here
[INFO] [stdout]     |                    |         the same lifetime is hidden here
[INFO] [stdout]     |                    the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 828 |     fn as_readonly(&self) -> ReadonlyBalancesImpl<'_, PrefixedStorage<'_, S>> {
[INFO] [stdout]     |                                                   +++                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling rand_core v0.6.2
[INFO] [stderr]    Compiling textwrap v0.11.0
[INFO] [stderr]    Compiling sgx_urts v1.1.2 (https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.2#8f065be7)
[INFO] [stderr]    Compiling clap v2.33.3
[INFO] [stderr]    Compiling rand_chacha v0.3.0
[INFO] [stderr]    Compiling rand v0.8.3
[INFO] [stderr]    Compiling thiserror v1.0.24
[INFO] [stderr]    Compiling tempfile v3.2.0
[INFO] [stderr]    Compiling enclave-ffi-types v0.1.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92)
[INFO] [stderr] error: failed to run custom build command for `enclave-ffi-types v0.1.0 (https://github.com/enigmampc/SecretNetwork?tag=v1.0.0#490fba92)`
[INFO] [stderr] note: To improve backtraces for build dependencies, set the CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/enclave-ffi-types-49b0b493f8cb1fb0/build-script-build` (exit status: 1)
[INFO] [stderr]   --- stderr
[INFO] [stderr]   Error: CBindgenError { source: CargoMetadata("/opt/rustwide/cargo-home/git/checkouts/secretnetwork-9a3a084259bb7a51/490fba9/cosmwasm/packages/enclave-ffi-types/Cargo.toml", Metadata(Output { status: ExitStatus(unix_wait_status(25856)), stdout: "", stderr: "    Updating crates.io index\nwarning: spurious network error (3 tries remaining): [6] Could not resolve hostname (Could not resolve host: index.crates.io)\nwarning: spurious network error (2 tries remaining): [6] Could not resolve hostname (Could not resolve host: index.crates.io)\nwarning: spurious network error (1 try remaining): [6] Could not resolve hostname (Could not resolve host: index.crates.io)\nerror: failed to get `wabt` as a dependency of package `cosmwasm-sgx-vm v0.10.0 (/opt/rustwide/cargo-home/git/checkouts/secretnetwork-9a3a084259bb7a51/490fba9/cosmwasm/packages/sgx-vm)`\n\nCaused by:\n  failed to load source for dependency `wabt`\n\nCaused by:\n  unable to update registry `crates-io`\n\nCaused by:\n  download of wa/bt/wabt failed\n\nCaused by:\n  [6] Could not resolve hostname (Could not resolve host: index.crates.io)\n" })) }
[INFO] running `Command { std: "docker" "inspect" "40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367", kill_on_drop: false }`
[INFO] [stdout] 40d6bdac11e10eb747b5ea91b2199811dae63be82d5cc429c59ae1ae8d571367
