[INFO] cloning repository https://github.com/danielNg25/dexter-kupo-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/danielNg25/dexter-kupo-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdanielNg25%2Fdexter-kupo-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdanielNg25%2Fdexter-kupo-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f36712a66856896fba9469422c05907102c1cbab [INFO] checking danielNg25/dexter-kupo-rs against 69bccf03c4733f57482f9691456efcd80f86a5f6 for pr-164053 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdanielNg25%2Fdexter-kupo-rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/danielNg25/dexter-kupo-rs [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/danielNg25/dexter-kupo-rs [INFO] tweaked toml for git repo https://github.com/danielNg25/dexter-kupo-rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/danielNg25/dexter-kupo-rs on toolchain 69bccf03c4733f57482f9691456efcd80f86a5f6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+69bccf03c4733f57482f9691456efcd80f86a5f6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/danielNg25/dexter-kupo-rs 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" "+69bccf03c4733f57482f9691456efcd80f86a5f6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded native-tls v0.2.15 [INFO] [stderr] Downloaded libc v0.2.182 [INFO] [stderr] Downloaded pallas-txbuilder v1.0.0 [INFO] [stderr] Downloaded pallas-traverse v1.0.0 [INFO] [stderr] Downloaded pallas-primitives v1.0.0 [INFO] [stderr] Downloaded pallas-crypto v1.0.0 [INFO] [stderr] Downloaded pallas-codec v1.0.0 [INFO] [stderr] Downloaded minicbor-derive v0.16.2 [INFO] [stderr] Downloaded base58 v0.2.0 [INFO] [stderr] Downloaded pallas-addresses v1.0.0 [INFO] [stderr] Downloaded cryptoxide v0.5.1 [INFO] [stderr] Downloaded bech32 v0.11.1 [INFO] [stderr] Downloaded ed25519-bip32 v0.4.2 [INFO] [stderr] Downloaded minicbor v0.26.5 [INFO] [stderr] Downloaded cryptoxide v0.4.4 [INFO] [stderr] Downloaded bip39 v2.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] bfbe304814789ba8af1f24d10837bf6700f23d5fddb09661d0e7740a9e322934 [INFO] running `Command { std: "docker" "start" "bfbe304814789ba8af1f24d10837bf6700f23d5fddb09661d0e7740a9e322934", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bfbe304814789ba8af1f24d10837bf6700f23d5fddb09661d0e7740a9e322934", 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" "bfbe304814789ba8af1f24d10837bf6700f23d5fddb09661d0e7740a9e322934" "/opt/rustwide/cargo-home/bin/cargo" "+69bccf03c4733f57482f9691456efcd80f86a5f6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bfbe304814789ba8af1f24d10837bf6700f23d5fddb09661d0e7740a9e322934", 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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bfbe304814789ba8af1f24d10837bf6700f23d5fddb09661d0e7740a9e322934" "/opt/rustwide/cargo-home/bin/cargo" "+69bccf03c4733f57482f9691456efcd80f86a5f6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.23 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling minicbor v0.26.5 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Compiling syn v2.0.115 [INFO] [stderr] Compiling native-tls v0.2.15 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Checking cryptoxide v0.4.4 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking rand_core v0.10.1 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Checking bech32 v0.11.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling anyhow v1.0.101 [INFO] [stderr] Checking iri-string v0.7.10 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Checking rustls-pki-types v1.14.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking either v1.16.0 [INFO] [stderr] Checking base58 v0.2.0 [INFO] [stderr] Checking tinyvec v1.11.0 [INFO] [stderr] Checking hex-conservative v0.2.2 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking bitcoin_hashes v0.14.100 [INFO] [stderr] Checking unicode-normalization v0.1.25 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking cryptoxide v0.5.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking dotenvy v0.15.7 [INFO] [stderr] Checking ed25519-bip32 v0.4.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling zerocopy-derive v0.8.39 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling minicbor-derive v0.16.2 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking bip39 v2.2.2 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking pallas-codec v1.0.0 [INFO] [stderr] Checking pallas-crypto v1.0.0 [INFO] [stderr] Checking pallas-addresses v1.0.0 [INFO] [stderr] Checking pallas-primitives v1.0.0 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking dexter-kupo-rs v0.9.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde::de::DeserializeOwned` [INFO] [stdout] --> src/kupo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::de::DeserializeOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `compare_token_with_policy` is never used [INFO] [stdout] --> src/dex/minswap_v2.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl MinswapV2 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | fn compare_token_with_policy(token: &Token, policy: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool_asset_b_name` is never read [INFO] [stdout] --> src/dex/minswap_v2.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 84 | struct PoolDatum { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 90 | pool_asset_b_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PoolDatum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::DeserializeOwned` [INFO] [stdout] --> src/kupo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::de::DeserializeOwned; [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: `Asset` [INFO] [stdout] --> src/models/mod.rs:7:47 [INFO] [stdout] | [INFO] [stdout] 7 | pub use asset::{token_identifier, token_name, Asset, Token}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KupoCreatedAt`, `KupoDatumResponse`, `KupoUtxoResponse`, and `KupoValue` [INFO] [stdout] --> src/models/mod.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | pub use utxo::{KupoCreatedAt, KupoDatumResponse, KupoUtxoResponse, KupoValue, Unit, Utxo}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BulkOrderPlan` and `BulkSwapRequest` [INFO] [stdout] --> src/requests/mod.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub use bulk::{BulkOrderPlan, BulkSwapRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cancel::CancelSwapRequest` [INFO] [stdout] --> src/requests/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use cancel::CancelSwapRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swap::SwapRequest` [INFO] [stdout] --> src/requests/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use swap::SwapRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update::UpdateSwapRequest` [INFO] [stdout] --> src/requests/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use update::UpdateSwapRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrderKind` [INFO] [stdout] --> src/requests/mod.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 18 | AddressType, AssetAmount, OrderKind, PayToAddress, PlutusScript, PlutusVersion, SpendUtxo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking pallas-traverse v1.0.0 [INFO] [stderr] Checking pallas-txbuilder v1.0.0 [INFO] [stdout] warning: struct `WalletAddress` is never constructed [INFO] [stdout] --> src/address.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct WalletAddress { [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 `decode_base_address` is never used [INFO] [stdout] --> src/address.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn decode_base_address(addr: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `script_and_stake_to_base_address` is never used [INFO] [stdout] --> src/address.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn script_and_stake_to_base_address( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pool_address`, `lp_token_policy_id`, `kupo`, and `liquidity_pool_from_pool_id` are never used [INFO] [stdout] --> src/dex/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait BaseDex: Send + Sync { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 24 | fn identifier(&self) -> &str; [INFO] [stdout] 25 | fn pool_address(&self) -> &str; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 26 | fn lp_token_policy_id(&self) -> &str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | fn kupo(&self) -> &KupoApi; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | async fn liquidity_pool_from_pool_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_constr` is never used [INFO] [stdout] --> src/dex/cbor.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn is_constr(v: &Value) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `compare_token_with_policy` is never used [INFO] [stdout] --> src/dex/minswap_v2.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl MinswapV2 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | fn compare_token_with_policy(token: &Token, policy: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool_asset_b_name` is never read [INFO] [stdout] --> src/dex/minswap_v2.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 84 | struct PoolDatum { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 90 | pool_asset_b_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PoolDatum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `corresponding_reserves` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn corresponding_reserves(pool: &LiquidityPool, token: &Token) -> (u128, u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fee_mods` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn fee_mods(pool_fee_percent: f64) -> (u128, u128) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ORDER_SCRIPT_HASH` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const ORDER_SCRIPT_HASH: &str = "c3e28c36c3447315ba5a56f33da6a6ddc1770a876a8d9f0cb3a97c4c"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ORDER_SCRIPT_REF_UTXO_TX` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | pub const ORDER_SCRIPT_REF_UTXO_TX: &str = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ORDER_SCRIPT_REF_UTXO_INDEX` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | pub const ORDER_SCRIPT_REF_UTXO_INDEX: u64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ORDER_SCRIPT_SIZE_BYTES` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub const ORDER_SCRIPT_SIZE_BYTES: u64 = 2659; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LP_TOKEN_POLICY_ID` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | pub const LP_TOKEN_POLICY_ID: &str = "f5808c2c990d86da54bfc97d89cee6efa20cd8461616359478d96b4c"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CANCEL_REDEEMER` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | pub const CANCEL_REDEEMER: &str = "d87a80"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ORDER_SCRIPT_CBOR_HEX` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | pub const ORDER_SCRIPT_CBOR_HEX: &str = "590a600100003332323232323232323222222533300832323232533300c3370e900118058008991919299980799... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BATCHER_FEE_LOVELACE` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | pub const BATCHER_FEE_LOVELACE: u64 = 2_000_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEPOSIT_LOVELACE` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | pub const DEPOSIT_LOVELACE: u64 = 2_000_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_direction` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn compute_direction(swap_in: &Token, swap_out: &Token) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `payment_credential_is_order_script` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn payment_credential_is_order_script(addr: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_v2_order_datum` is never used [INFO] [stdout] --> src/dex/minswap_v2_swap.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn build_v2_order_datum( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `identifier` is never used [INFO] [stdout] --> src/dex/minswap_stable.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl MinswapStable { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn identifier(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDENTIFIER` is never used [INFO] [stdout] --> src/dex/chadswap.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const IDENTIFIER: &str = "ChadSwap"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `identifier` is never used [INFO] [stdout] --> src/dex/chadswap.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ChadSwap { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn identifier(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDENTIFIER` is never used [INFO] [stdout] --> src/dex/vyfi_bar.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const IDENTIFIER: &str = "VyfiBar"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `identifier` and `rate_from_utxo` are never used [INFO] [stdout] --> src/dex/vyfi_bar.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl VyfiBar { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn identifier(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn rate_from_utxo(&self, utxo: &Utxo, pool_identifier: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DexSwap` is never used [INFO] [stdout] --> src/dex/swap.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait DexSwap: Send + Sync { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_client` and `tip_slot` are never used [INFO] [stdout] --> src/kupo.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl KupoApi { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn with_client(api_url: &str, client: reqwest::Client) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub async fn tip_slot(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `asset_name` is never used [INFO] [stdout] --> src/models/asset.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Asset { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn asset_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `policy_id` and `as_asset` are never used [INFO] [stdout] --> src/models/asset.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Token { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn policy_id(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn as_asset(&self) -> Option<&Asset> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_name` is never used [INFO] [stdout] --> src/models/asset.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn token_name(token: &Token) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pair`, `price`, and `uuid` are never used [INFO] [stdout] --> src/models/liquidity_pool.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl LiquidityPool { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn pair(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn price(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn uuid(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pair` and `price` are never used [INFO] [stdout] --> src/models/stable_pool.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl StablePool { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 30 | pub fn pair(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn price(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_asset` and `has_data_hash` are never used [INFO] [stdout] --> src/models/utxo.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Utxo { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 43 | pub fn get_asset(&self, unit: &str) -> Option<&Unit> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn has_data_hash(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KupoUtxoResponse` is never constructed [INFO] [stdout] --> src/models/utxo.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct KupoUtxoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_output_index` is never used [INFO] [stdout] --> src/models/utxo.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn deserialize_output_index<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KupoValue` is never constructed [INFO] [stdout] --> src/models/utxo.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct KupoValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_coins` is never used [INFO] [stdout] --> src/models/utxo.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn deserialize_coins<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KupoCreatedAt` is never constructed [INFO] [stdout] --> src/models/utxo.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct KupoCreatedAt { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KupoDatumResponse` is never constructed [INFO] [stdout] --> src/models/utxo.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct KupoDatumResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PlutusData` is never used [INFO] [stdout] --> src/plutus/data.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum PlutusData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `bytes_hex`, `to_cbor_hex`, and `write_cbor` are never used [INFO] [stdout] --> src/plutus/data.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl PlutusData { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 24 | /// Convenience: construct `PlutusData::Bytes` from a hex string. [INFO] [stdout] 25 | pub fn bytes_hex(hex_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn to_cbor_hex(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn write_cbor(&self, out: &mut Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_head` is never used [INFO] [stdout] --> src/plutus/data.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn write_head(mt: u8, n: u64, out: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_int` is never used [INFO] [stdout] --> src/plutus/data.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn write_int(i: i128, out: &mut Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_tag` is never used [INFO] [stdout] --> src/plutus/data.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn write_tag(tag: u64, out: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_fields` is never used [INFO] [stdout] --> src/plutus/data.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn write_fields(fields: &[PlutusData], out: &mut Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BulkOrderPlan` is never constructed [INFO] [stdout] --> src/requests/bulk.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct BulkOrderPlan { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BulkSwapRequest` is never constructed [INFO] [stdout] --> src/requests/bulk.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct BulkSwapRequest<'a, D: DexSwap + ?Sized> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/requests/bulk.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl<'a, D: DexSwap + ?Sized> BulkSwapRequest<'a, D> { [INFO] [stdout] | ---------------------------------------------------- associated items in this implementation [INFO] [stdout] 33 | pub fn new(dex: &'a D) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn for_pool(mut self, pool: LiquidityPool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn with_return_address(mut self, addr: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn add_cancel(mut self, utxo: Utxo) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn add_swap(mut self, params: SwapParams) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn add_update(mut self, old_utxo: Utxo, new_params: SwapParams) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AddressType` is never used [INFO] [stdout] --> src/requests/types.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AddressType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PlutusVersion` is never used [INFO] [stdout] --> src/requests/types.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum PlutusVersion { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OrderKind` is never used [INFO] [stdout] --> src/requests/types.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum OrderKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AssetAmount` is never constructed [INFO] [stdout] --> src/requests/types.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct AssetAmount { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlutusScript` is never constructed [INFO] [stdout] --> src/requests/types.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct PlutusScript { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UtxoRef` is never constructed [INFO] [stdout] --> src/requests/types.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct UtxoRef { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SpendUtxo` is never constructed [INFO] [stdout] --> src/requests/types.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct SpendUtxo { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PayToAddress` is never constructed [INFO] [stdout] --> src/requests/types.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct PayToAddress { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SwapFee` is never constructed [INFO] [stdout] --> src/requests/types.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct SwapFee { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SwapParams` is never constructed [INFO] [stdout] --> src/requests/types.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct SwapParams { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PricingMode` is never used [INFO] [stdout] --> src/requests/swap.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum PricingMode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SwapRequest` is never constructed [INFO] [stdout] --> src/requests/swap.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct SwapRequest<'a, D: DexSwap + ?Sized> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/requests/swap.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl<'a, D: DexSwap + ?Sized> SwapRequest<'a, D> { [INFO] [stdout] | ------------------------------------------------ associated items in this implementation [INFO] [stdout] 30 | pub fn new(dex: &'a D) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn for_pool(mut self, pool: LiquidityPool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn with_swap_in_token(mut self, token: Token) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn with_swap_in_amount(mut self, amount: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn with_slippage_percent(mut self, slippage: f64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn with_minimum_receive(mut self, raw: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn with_kill_on_failed(mut self, kill: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn with_sender_address(mut self, bech32: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn with_receiver_address(mut self, bech32: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn with_spend_utxos(mut self, utxos: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn get_swap_fees(&self) -> Vec { self.dex.swap_order_fees() } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 85 | [INFO] [stdout] 86 | pub fn get_estimated_receive(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn get_minimum_receive(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn get_price_impact_percent(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub(crate) fn into_dex_pool_params(self) -> Result<(&'a D, LiquidityPool, SwapParams)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn build(self) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CancelSwapRequest` is never constructed [INFO] [stdout] --> src/requests/cancel.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CancelSwapRequest<'a, D: DexSwap + ?Sized> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_order_utxos`, `with_return_address`, and `build` are never used [INFO] [stdout] --> src/requests/cancel.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a, D: DexSwap + ?Sized> CancelSwapRequest<'a, D> { [INFO] [stdout] | ------------------------------------------------------ associated items in this implementation [INFO] [stdout] 16 | pub fn new(dex: &'a D) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn with_order_utxos(mut self, utxos: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn with_return_address(mut self, addr: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn build(self) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateSwapRequest` is never constructed [INFO] [stdout] --> src/requests/update.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct UpdateSwapRequest<'a, D: DexSwap + ?Sized> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/requests/update.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a, D: DexSwap + ?Sized> UpdateSwapRequest<'a, D> { [INFO] [stdout] | ------------------------------------------------------ associated items in this implementation [INFO] [stdout] 17 | pub fn new(dex: &'a D) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn with_old_order_utxos(mut self, utxos: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn for_pool(mut self, pool: LiquidityPool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn with_swap_in_token(mut self, token: Token) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn with_swap_in_amount(mut self, amount: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn with_slippage_percent(mut self, slippage: f64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn with_minimum_receive(mut self, raw: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn with_kill_on_failed(mut self, kill: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn with_sender_address(mut self, bech32: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn with_receiver_address(mut self, bech32: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn with_spend_utxos(mut self, utxos: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn build(self) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `join_policy_id` is never used [INFO] [stdout] --> src/utils/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn join_policy_id(policy_id: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_policy_id` is never used [INFO] [stdout] --> src/utils/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn split_policy_id(policy_id: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_shelly_address` is never used [INFO] [stdout] --> src/utils/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn is_shelly_address(address: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `script_hash_to_address` is never used [INFO] [stdout] --> src/utils/mod.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn script_hash_to_address(script_hash_hex: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::DeserializeOwned` [INFO] [stdout] --> src/kupo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::de::DeserializeOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KupoCreatedAt`, `KupoDatumResponse`, `KupoUtxoResponse`, and `KupoValue` [INFO] [stdout] --> src/models/mod.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | pub use utxo::{KupoCreatedAt, KupoDatumResponse, KupoUtxoResponse, KupoValue, Unit, Utxo}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BulkOrderPlan` and `BulkSwapRequest` [INFO] [stdout] --> src/requests/mod.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub use bulk::{BulkOrderPlan, BulkSwapRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cancel::CancelSwapRequest` [INFO] [stdout] --> src/requests/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use cancel::CancelSwapRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swap::SwapRequest` [INFO] [stdout] --> src/requests/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use swap::SwapRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update::UpdateSwapRequest` [INFO] [stdout] --> src/requests/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use update::UpdateSwapRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrderKind` [INFO] [stdout] --> src/requests/mod.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 18 | AddressType, AssetAmount, OrderKind, PayToAddress, PlutusScript, PlutusVersion, SpendUtxo, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::DeserializeOwned` [INFO] [stdout] --> src/kupo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::de::DeserializeOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `compare_token_with_policy` is never used [INFO] [stdout] --> src/dex/minswap_v2.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl MinswapV2 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | fn compare_token_with_policy(token: &Token, policy: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool_asset_b_name` is never read [INFO] [stdout] --> src/dex/minswap_v2.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 84 | struct PoolDatum { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 90 | pool_asset_b_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PoolDatum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pool_address`, `lp_token_policy_id`, `kupo`, and `liquidity_pool_from_pool_id` are never used [INFO] [stdout] --> src/dex/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait BaseDex: Send + Sync { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 24 | fn identifier(&self) -> &str; [INFO] [stdout] 25 | fn pool_address(&self) -> &str; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 26 | fn lp_token_policy_id(&self) -> &str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | fn kupo(&self) -> &KupoApi; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | async fn liquidity_pool_from_pool_id( [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 `is_constr` is never used [INFO] [stdout] --> src/dex/cbor.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn is_constr(v: &Value) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `compare_token_with_policy` is never used [INFO] [stdout] --> src/dex/minswap_v2.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl MinswapV2 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | fn compare_token_with_policy(token: &Token, policy: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool_asset_b_name` is never read [INFO] [stdout] --> src/dex/minswap_v2.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 84 | struct PoolDatum { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 90 | pool_asset_b_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PoolDatum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `identifier` is never used [INFO] [stdout] --> src/dex/minswap_stable.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl MinswapStable { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn identifier(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDENTIFIER` is never used [INFO] [stdout] --> src/dex/chadswap.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const IDENTIFIER: &str = "ChadSwap"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `identifier` is never used [INFO] [stdout] --> src/dex/chadswap.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ChadSwap { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn identifier(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDENTIFIER` is never used [INFO] [stdout] --> src/dex/vyfi_bar.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const IDENTIFIER: &str = "VyfiBar"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `identifier` and `rate_from_utxo` are never used [INFO] [stdout] --> src/dex/vyfi_bar.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl VyfiBar { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn identifier(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn rate_from_utxo(&self, utxo: &Utxo, pool_identifier: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `identifier`, `swap_order_fees`, and `build_bulk_orders` are never used [INFO] [stdout] --> src/dex/swap.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait DexSwap: Send + Sync { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 12 | fn identifier(&self) -> &str; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn swap_order_fees(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn build_bulk_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_client` and `tip_slot` are never used [INFO] [stdout] --> src/kupo.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl KupoApi { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn with_client(api_url: &str, client: reqwest::Client) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub async fn tip_slot(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `asset_name` is never used [INFO] [stdout] --> src/models/asset.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Asset { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn asset_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `policy_id` and `as_asset` are never used [INFO] [stdout] --> src/models/asset.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Token { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn policy_id(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn as_asset(&self) -> Option<&Asset> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_name` is never used [INFO] [stdout] --> src/models/asset.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn token_name(token: &Token) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pair`, `price`, and `uuid` are never used [INFO] [stdout] --> src/models/liquidity_pool.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl LiquidityPool { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn pair(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn price(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn uuid(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pair` and `price` are never used [INFO] [stdout] --> src/models/stable_pool.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl StablePool { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 30 | pub fn pair(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn price(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_asset` and `has_data_hash` are never used [INFO] [stdout] --> src/models/utxo.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Utxo { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 43 | pub fn get_asset(&self, unit: &str) -> Option<&Unit> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn has_data_hash(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KupoUtxoResponse` is never constructed [INFO] [stdout] --> src/models/utxo.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct KupoUtxoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_output_index` is never used [INFO] [stdout] --> src/models/utxo.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn deserialize_output_index<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KupoValue` is never constructed [INFO] [stdout] --> src/models/utxo.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct KupoValue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_coins` is never used [INFO] [stdout] --> src/models/utxo.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn deserialize_coins<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KupoCreatedAt` is never constructed [INFO] [stdout] --> src/models/utxo.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct KupoCreatedAt { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KupoDatumResponse` is never constructed [INFO] [stdout] --> src/models/utxo.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct KupoDatumResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BulkOrderPlan` is never constructed [INFO] [stdout] --> src/requests/bulk.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct BulkOrderPlan { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BulkSwapRequest` is never constructed [INFO] [stdout] --> src/requests/bulk.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct BulkSwapRequest<'a, D: DexSwap + ?Sized> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/requests/bulk.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl<'a, D: DexSwap + ?Sized> BulkSwapRequest<'a, D> { [INFO] [stdout] | ---------------------------------------------------- associated items in this implementation [INFO] [stdout] 33 | pub fn new(dex: &'a D) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn for_pool(mut self, pool: LiquidityPool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn with_return_address(mut self, addr: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn add_cancel(mut self, utxo: Utxo) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn add_swap(mut self, params: SwapParams) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn add_update(mut self, old_utxo: Utxo, new_params: SwapParams) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SwapFee` is never constructed [INFO] [stdout] --> src/requests/types.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct SwapFee { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `spend_utxos` are never read [INFO] [stdout] --> src/requests/types.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct SwapParams { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 104 | pub kind: OrderKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 105 | pub kill_on_failed: bool, [INFO] [stdout] 106 | pub spend_utxos: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SwapParams` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PricingMode` is never used [INFO] [stdout] --> src/requests/swap.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum PricingMode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SwapRequest` is never constructed [INFO] [stdout] --> src/requests/swap.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct SwapRequest<'a, D: DexSwap + ?Sized> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/requests/swap.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl<'a, D: DexSwap + ?Sized> SwapRequest<'a, D> { [INFO] [stdout] | ------------------------------------------------ associated items in this implementation [INFO] [stdout] 30 | pub fn new(dex: &'a D) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn for_pool(mut self, pool: LiquidityPool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn with_swap_in_token(mut self, token: Token) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn with_swap_in_amount(mut self, amount: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn with_slippage_percent(mut self, slippage: f64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn with_minimum_receive(mut self, raw: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn with_kill_on_failed(mut self, kill: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn with_sender_address(mut self, bech32: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn with_receiver_address(mut self, bech32: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn with_spend_utxos(mut self, utxos: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn get_swap_fees(&self) -> Vec { self.dex.swap_order_fees() } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 85 | [INFO] [stdout] 86 | pub fn get_estimated_receive(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn get_minimum_receive(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn get_price_impact_percent(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub(crate) fn into_dex_pool_params(self) -> Result<(&'a D, LiquidityPool, SwapParams)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn build(self) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CancelSwapRequest` is never constructed [INFO] [stdout] --> src/requests/cancel.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CancelSwapRequest<'a, D: DexSwap + ?Sized> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_order_utxos`, `with_return_address`, and `build` are never used [INFO] [stdout] --> src/requests/cancel.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a, D: DexSwap + ?Sized> CancelSwapRequest<'a, D> { [INFO] [stdout] | ------------------------------------------------------ associated items in this implementation [INFO] [stdout] 16 | pub fn new(dex: &'a D) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn with_order_utxos(mut self, utxos: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn with_return_address(mut self, addr: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn build(self) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateSwapRequest` is never constructed [INFO] [stdout] --> src/requests/update.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct UpdateSwapRequest<'a, D: DexSwap + ?Sized> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/requests/update.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a, D: DexSwap + ?Sized> UpdateSwapRequest<'a, D> { [INFO] [stdout] | ------------------------------------------------------ associated items in this implementation [INFO] [stdout] 17 | pub fn new(dex: &'a D) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn with_old_order_utxos(mut self, utxos: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn for_pool(mut self, pool: LiquidityPool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn with_swap_in_token(mut self, token: Token) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn with_swap_in_amount(mut self, amount: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn with_slippage_percent(mut self, slippage: f64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn with_minimum_receive(mut self, raw: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn with_kill_on_failed(mut self, kill: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn with_sender_address(mut self, bech32: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn with_receiver_address(mut self, bech32: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn with_spend_utxos(mut self, utxos: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn build(self) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `join_policy_id` is never used [INFO] [stdout] --> src/utils/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn join_policy_id(policy_id: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_policy_id` is never used [INFO] [stdout] --> src/utils/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn split_policy_id(policy_id: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_shelly_address` is never used [INFO] [stdout] --> src/utils/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn is_shelly_address(address: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused dependency `thiserror` [INFO] [stderr] --> Cargo.toml:11:1 [INFO] [stderr] | [INFO] [stderr] 11 | thiserror = "1.0" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `thiserror` [INFO] [stderr] warning: `dexter-kupo-rs` (manifest) generated 1 warning [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 32s [INFO] running `Command { std: "docker" "inspect" "bfbe304814789ba8af1f24d10837bf6700f23d5fddb09661d0e7740a9e322934", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfbe304814789ba8af1f24d10837bf6700f23d5fddb09661d0e7740a9e322934", kill_on_drop: false }` [INFO] [stdout] bfbe304814789ba8af1f24d10837bf6700f23d5fddb09661d0e7740a9e322934