[INFO] cloning repository https://github.com/chankung9/payoff-diagram-web [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chankung9/payoff-diagram-web" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchankung9%2Fpayoff-diagram-web", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchankung9%2Fpayoff-diagram-web'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d7f2b7c199576c03cb34c9e6e4af431a9bae9bb4 [INFO] testing chankung9/payoff-diagram-web/d7f2b7c199576c03cb34c9e6e4af431a9bae9bb4 against 1.95.0 for beta-1.96-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchankung9%2Fpayoff-diagram-web" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/chankung9/payoff-diagram-web [INFO] finished tweaking git repo https://github.com/chankung9/payoff-diagram-web [INFO] tweaked toml for git repo https://github.com/chankung9/payoff-diagram-web written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chankung9/payoff-diagram-web on toolchain 1.95.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chankung9/payoff-diagram-web 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.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gdkx11 v0.18.2 [INFO] [stderr] Downloaded dioxus-mobile v0.6.2 [INFO] [stderr] Downloaded kuchikiki v0.8.2 [INFO] [stderr] Downloaded windows-version v0.1.5 [INFO] [stderr] Downloaded zbus_names v3.0.0 [INFO] [stderr] Downloaded webview2-com v0.33.0 [INFO] [stderr] Downloaded zvariant_utils v1.1.0 [INFO] [stderr] Downloaded zvariant_derive v4.0.0 [INFO] [stderr] Downloaded infer v0.11.0 [INFO] [stderr] Downloaded dlopen2 v0.7.0 [INFO] [stderr] Downloaded async-signal v0.2.12 [INFO] [stderr] Downloaded global-hotkey v0.5.5 [INFO] [stderr] Downloaded async-io v2.5.0 [INFO] [stderr] Downloaded muda v0.11.5 [INFO] [stderr] Downloaded ashpd v0.8.1 [INFO] [stderr] Downloaded wry v0.45.0 [INFO] [stderr] Downloaded muda v0.15.3 [INFO] [stderr] Downloaded zbus v4.0.1 [INFO] [stderr] Downloaded objc2-core-graphics v0.3.1 [INFO] [stderr] Downloaded zvariant v4.0.0 [INFO] [stderr] Downloaded rfd v0.14.1 [INFO] [stderr] Downloaded async-process v2.4.0 [INFO] [stderr] Downloaded tray-icon v0.19.3 [INFO] [stderr] Downloaded zbus_macros v4.0.1 [INFO] [stderr] Downloaded objc2-foundation v0.3.1 [INFO] [stderr] Downloaded dioxus-desktop v0.6.3 [INFO] [stderr] Downloaded objc2-app-kit v0.3.1 [INFO] [stderr] Downloaded tao v0.30.8 [INFO] [stderr] Downloaded webview2-com-sys v0.33.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 71a606041d53fdbf9153427279fb86caa0bc5bb95f0d39405d196ce35f2395da [INFO] running `Command { std: "docker" "start" "-a" "71a606041d53fdbf9153427279fb86caa0bc5bb95f0d39405d196ce35f2395da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "71a606041d53fdbf9153427279fb86caa0bc5bb95f0d39405d196ce35f2395da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71a606041d53fdbf9153427279fb86caa0bc5bb95f0d39405d196ce35f2395da", kill_on_drop: false }` [INFO] [stdout] 71a606041d53fdbf9153427279fb86caa0bc5bb95f0d39405d196ce35f2395da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c8cf641f296d29a1abcc99b1d6787e99702bf82f5d3f8846940bd1d29cfbcf3b [INFO] running `Command { std: "docker" "start" "-a" "c8cf641f296d29a1abcc99b1d6787e99702bf82f5d3f8846940bd1d29cfbcf3b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.101 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling wasm-bindgen v0.2.101 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling dioxus-core-types v0.6.2 [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling longest-increasing-subsequence v0.1.0 [INFO] [stderr] Compiling lazy-js-bundle v0.6.2 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling cc v1.2.37 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling keyboard-types v0.7.0 [INFO] [stderr] Compiling sledgehammer_utils v0.3.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling dioxus-interpreter-js v0.6.2 [INFO] [stderr] Compiling dioxus-document v0.6.3 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling dioxus-web v0.6.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling dioxus-config-macro v0.6.2 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling euclid v0.22.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling const_format v0.2.34 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.101 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling dioxus-rsx v0.6.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling warnings-macro v0.2.0 [INFO] [stderr] Compiling const-serialize-macro v0.6.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.101 [INFO] [stderr] Compiling sledgehammer_bindgen_macro v0.6.1 [INFO] [stderr] Compiling dioxus-html-internal-macro v0.6.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling dioxus-core-macro v0.6.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling generational-box v0.6.2 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.101 [INFO] [stderr] Compiling warnings v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tungstenite v0.23.0 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling enumset_derive v0.14.0 [INFO] [stderr] Compiling js-sys v0.3.78 [INFO] [stderr] Compiling dioxus-cli-config v0.6.3 [INFO] [stderr] Compiling sledgehammer_bindgen v0.6.0 [INFO] [stderr] Compiling dioxus-logger v0.6.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling enumset v1.1.10 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling const-serialize v0.6.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling manganis-core v0.6.2 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling dioxus-core v0.6.3 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling web-sys v0.3.78 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.51 [INFO] [stderr] Compiling serde-wasm-bindgen v0.5.0 [INFO] [stderr] Compiling gloo-timers v0.3.0 [INFO] [stderr] Compiling manganis-macro v0.6.2 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling manganis v0.6.2 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling dioxus-signals v0.6.3 [INFO] [stderr] Compiling dioxus-devtools-types v0.6.2 [INFO] [stderr] Compiling dioxus-history v0.6.2 [INFO] [stderr] Compiling dioxus-hooks v0.6.2 [INFO] [stderr] Compiling dioxus-devtools v0.6.2 [INFO] [stderr] Compiling dioxus-html v0.6.3 [INFO] [stderr] Compiling gloo-utils v0.2.0 [INFO] [stderr] Compiling gloo-net v0.6.0 [INFO] [stderr] Compiling dioxus v0.6.3 [INFO] [stderr] Compiling payoff-diagram-web v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `StorageInfo` [INFO] [stdout] --> src/components/portfolio_manager.rs:3:80 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{BrowserFileManager, LocalStorageManager, PortfolioListItem, StorageInfo}; [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: `StorageInfo` [INFO] [stdout] --> src/components/portfolio_manager.rs:3:80 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{BrowserFileManager, LocalStorageManager, PortfolioListItem, StorageInfo}; [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: `Serialize` [INFO] [stdout] --> src/components/api_tester.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/components/api_tester.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ApiKeyForm` and `PositionSyncDialog` [INFO] [stdout] --> src/components/api_key_manager.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::components::{ApiKeyForm, PositionSyncDialog}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Position` [INFO] [stdout] --> src/components/api_key_manager.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::models::{Portfolio, Position}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ApiKeyForm` and `PositionSyncDialog` [INFO] [stdout] --> src/components/api_key_manager.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::components::{ApiKeyForm, PositionSyncDialog}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Position` [INFO] [stdout] --> src/components/api_key_manager.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::models::{Portfolio, Position}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AssetSelection` and `SymbolFilter` [INFO] [stdout] --> src/components/data_import_dialog.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | import_data::{ImportConfig, ImportMode, AssetSelection, SymbolFilter, ImportStatus, ImportResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AssetSelection` and `SymbolFilter` [INFO] [stdout] --> src/components/data_import_dialog.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | import_data::{ImportConfig, ImportMode, AssetSelection, SymbolFilter, ImportStatus, ImportResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::LocalStorageManager` [INFO] [stdout] --> src/components/position_sync_dialog.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | utils::LocalStorageManager [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::LocalStorageManager` [INFO] [stdout] --> src/components/position_sync_dialog.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | utils::LocalStorageManager [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `app::App` [INFO] [stdout] --> src/components/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use app::App; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api_key_list::ApiKeyList` [INFO] [stdout] --> src/components/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use api_key_list::ApiKeyList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `app::App` [INFO] [stdout] --> src/components/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use app::App; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api_key_list::ApiKeyList` [INFO] [stdout] --> src/components/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use api_key_list::ApiKeyList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data_import_dialog::DataImportDialog` [INFO] [stdout] --> src/components/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use data_import_dialog::DataImportDialog; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data_import_dialog::DataImportDialog` [INFO] [stdout] --> src/components/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use data_import_dialog::DataImportDialog; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PortfolioEngine` and `PortfolioMetrics` [INFO] [stdout] --> src/engine/mod.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | pub use portfolio_engine::{PortfolioEngine, PortfolioMetrics}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ValidationEngine` and `ValidationResult` [INFO] [stdout] --> src/engine/mod.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | pub use validation_engine::{ValidationEngine, ValidationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/models/payoff.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PortfolioEngine` and `PortfolioMetrics` [INFO] [stdout] --> src/engine/mod.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | pub use portfolio_engine::{PortfolioEngine, PortfolioMetrics}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ValidationEngine` and `ValidationResult` [INFO] [stdout] --> src/engine/mod.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | pub use validation_engine::{ValidationEngine, ValidationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/models/payoff.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BackupLocation`, `CalculationSettings`, `ChartSettings`, `ChartTheme`, `ChartType`, `ConflictType`, `DisplaySettings`, `ExportSettings`, `LegendPosition`, `PortfolioSettings`, `PositionOrder`, `StorageMetadata`, `StorageProvider`, `SyncConflict`, and `SyncMetadata` [INFO] [stdout] --> src/models/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | BackupLocation, CalculationSettings, ChartSettings, ChartTheme, ChartType, ConflictType, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 14 | DataExchangeFormat, DisplaySettings, EnhancedPosition, ExportFormat, ExportSettings, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 15 | ExternalDataSource, LegendPosition, Portfolio, PortfolioSettings, PositionMetadata, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | PositionOrder, PositionSource, PositionTemplate, StorageMetadata, StorageProvider, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | SyncConflict, SyncMetadata, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BackupLocation`, `CalculationSettings`, `ChartSettings`, `ChartTheme`, `ChartType`, `ConflictType`, `DisplaySettings`, `ExportSettings`, `LegendPosition`, `PortfolioSettings`, `PositionOrder`, `StorageMetadata`, `StorageProvider`, `SyncConflict`, and `SyncMetadata` [INFO] [stdout] --> src/models/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | BackupLocation, CalculationSettings, ChartSettings, ChartTheme, ChartType, ConflictType, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 14 | DataExchangeFormat, DisplaySettings, EnhancedPosition, ExportFormat, ExportSettings, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 15 | ExternalDataSource, LegendPosition, Portfolio, PortfolioSettings, PositionMetadata, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | PositionOrder, PositionSource, PositionTemplate, StorageMetadata, StorageProvider, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | SyncConflict, SyncMetadata, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_data` [INFO] [stdout] --> src/utils/browser_file.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::{web3_data, Portfolio}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Document` [INFO] [stdout] --> src/utils/browser_file.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use web_sys::{window, Blob, BlobPropertyBag, Document, File, FileReader, HtmlAnchorElement, Url}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_data` [INFO] [stdout] --> src/utils/browser_file.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::{web3_data, Portfolio}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataTransfer` and `FileList` [INFO] [stdout] --> src/utils/browser_file.rs:215:19 [INFO] [stdout] | [INFO] [stdout] 215 | use web_sys::{DataTransfer, DragEvent, FileList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/utils/local_storage.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExternalDataSource` and `PositionTemplate` [INFO] [stdout] --> src/utils/web3_export_import.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | DataExchangeFormat, ExportFormat, ExternalDataSource, Portfolio, Position, PositionTemplate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::export as web3_export` [INFO] [stdout] --> src/utils/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use web3_export_import::export as web3_export; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::file_utils` [INFO] [stdout] --> src/utils/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use web3_export_import::file_utils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::import as web3_import` [INFO] [stdout] --> src/utils/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use web3_export_import::import as web3_import; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Document` [INFO] [stdout] --> src/utils/browser_file.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use web_sys::{window, Blob, BlobPropertyBag, Document, File, FileReader, HtmlAnchorElement, Url}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataTransfer` and `FileList` [INFO] [stdout] --> src/utils/browser_file.rs:215:19 [INFO] [stdout] | [INFO] [stdout] 215 | use web_sys::{DataTransfer, DragEvent, FileList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/utils/local_storage.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExternalDataSource` and `PositionTemplate` [INFO] [stdout] --> src/utils/web3_export_import.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | DataExchangeFormat, ExportFormat, ExternalDataSource, Portfolio, Position, PositionTemplate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::export as web3_export` [INFO] [stdout] --> src/utils/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use web3_export_import::export as web3_export; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::file_utils` [INFO] [stdout] --> src/utils/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use web3_export_import::file_utils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::import as web3_import` [INFO] [stdout] --> src/utils/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use web3_export_import::import as web3_import; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auto_save_effect` [INFO] [stdout] --> src/components/app.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let auto_save_effect = use_resource(move || { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auto_save_effect` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chart_config` [INFO] [stdout] --> src/components/payoff_chart.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | let chart_config = ChartConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chart_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auto_save_effect` [INFO] [stdout] --> src/components/app.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let auto_save_effect = use_resource(move || { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auto_save_effect` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chart_config` [INFO] [stdout] --> src/components/payoff_chart.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | let chart_config = ChartConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chart_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unrealized_profit` [INFO] [stdout] --> src/components/position_sync_dialog.rs:802:17 [INFO] [stdout] | [INFO] [stdout] 802 | let unrealized_profit: f64 = unrealized_profit_str.parse().unwrap_or(0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unrealized_profit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/components/position_sync_dialog.rs:807:21 [INFO] [stdout] | [INFO] [stdout] 807 | let side = if position_side == "LONG" || (position_side == "BOTH" && position_amt > 0.0) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unrealized_profit` [INFO] [stdout] --> src/components/position_sync_dialog.rs:802:17 [INFO] [stdout] | [INFO] [stdout] 802 | let unrealized_profit: f64 = unrealized_profit_str.parse().unwrap_or(0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unrealized_profit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/components/position_sync_dialog.rs:807:21 [INFO] [stdout] | [INFO] [stdout] 807 | let side = if position_side == "LONG" || (position_side == "BOTH" && position_amt > 0.0) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/browser_file.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let mut blob_options = BlobPropertyBag::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CanvasRust`, `ChartJs`, `TradingView`, and `Plotters` are never constructed [INFO] [stdout] --> src/components/payoff_chart.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ChartEngine { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 8 | SvgNative, [INFO] [stdout] 9 | CanvasRust, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | ChartJs, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | TradingView, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | Plotters, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `price_range` is never read [INFO] [stdout] --> src/components/payoff_chart.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ChartData { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub price_range: (f64, f64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartData` 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: fields `width` and `height` are never read [INFO] [stdout] --> src/components/payoff_chart.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ChartConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 26 | pub width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | pub height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartConfig` 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: method `is_available` is never used [INFO] [stdout] --> src/components/payoff_chart.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl ChartEngine { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `maker_commission`, `taker_commission`, `buyer_commission`, `seller_commission`, `can_withdraw`, and `can_deposit` are never read [INFO] [stdout] --> src/components/api_tester.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct BinanceAccountInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 7 | #[serde(rename = "makerCommission")] [INFO] [stdout] 8 | maker_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | #[serde(rename = "takerCommission")] [INFO] [stdout] 10 | taker_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | #[serde(rename = "buyerCommission")] [INFO] [stdout] 12 | buyer_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | #[serde(rename = "sellerCommission")] [INFO] [stdout] 14 | seller_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | can_withdraw: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | #[serde(rename = "canDeposit")] [INFO] [stdout] 20 | can_deposit: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceAccountInfo` 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: fields `asset`, `free`, and `locked` are never read [INFO] [stdout] --> src/components/api_tester.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct BinanceBalance { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 28 | asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | free: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | locked: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceBalance` 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: struct `BinanceBalance` is never constructed [INFO] [stdout] --> src/components/position_sync_dialog.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BinanceBalance { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinanceAccountInfo` is never constructed [INFO] [stdout] --> src/components/position_sync_dialog.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct BinanceAccountInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PortfolioMetrics` is never constructed [INFO] [stdout] --> src/engine/portfolio_engine.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PortfolioMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PortfolioEngine` is never constructed [INFO] [stdout] --> src/engine/portfolio_engine.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct PortfolioEngine; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `analyze_portfolio`, `calculate_profit_probability`, `calculate_expected_value`, `has_unlimited_profit`, `has_unlimited_loss`, and `get_risk_level` are never used [INFO] [stdout] --> src/engine/portfolio_engine.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl PortfolioEngine { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 19 | /// Analyze portfolio and return comprehensive metrics [INFO] [stdout] 20 | pub fn analyze_portfolio( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn calculate_profit_probability(payoff_curve: &[PayoffPoint]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn calculate_expected_value(payoff_curve: &[PayoffPoint]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn has_unlimited_profit(positions: &[Position]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn has_unlimited_loss(positions: &[Position]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn get_risk_level(positions: &[Position]) -> RiskLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RiskLevel` is never used [INFO] [stdout] --> src/engine/portfolio_engine.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | pub enum RiskLevel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidationResult` is never constructed [INFO] [stdout] --> src/engine/validation_engine.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_error`, `add_warning`, and `is_ok` are never used [INFO] [stdout] --> src/engine/validation_engine.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ValidationResult { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn add_error(&mut self, error: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_warning(&mut self, warning: String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidationEngine` is never constructed [INFO] [stdout] --> src/engine/validation_engine.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct ValidationEngine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/engine/validation_engine.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ValidationEngine { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] 34 | /// Validate a single position [INFO] [stdout] 35 | pub fn validate_position(position: &Position) -> ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn validate_portfolio(positions: &[Position]) -> ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn validate_chart_parameters( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn validate_spot_position(spot: &SpotPosition, result: &mut ValidationResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn validate_option_position(option: &OptionPosition, result: &mut ValidationResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn validate_futures_position(futures: &FuturesPosition, result: &mut ValidationResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn validate_portfolio_risk(positions: &[Position], result: &mut ValidationResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PayoffPoint` is never constructed [INFO] [stdout] --> src/models/payoff.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PayoffPoint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PayoffCalculator` is never constructed [INFO] [stdout] --> src/models/payoff.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct PayoffCalculator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/models/payoff.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl PayoffCalculator { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] 15 | /// Calculate payoff for a single position at a given underlying price [INFO] [stdout] 16 | pub fn calculate_single_payoff(position: &Position, underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn calculate_portfolio_payoff(positions: &[Position], underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn generate_payoff_curve( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn calculate_spot_payoff(spot: &SpotPosition, underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn calculate_option_payoff(option: &OptionPosition, underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn calculate_futures_payoff(futures: &FuturesPosition, underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn find_breakeven_points( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn interpolate_zero_crossing(x1: f64, y1: f64, x2: f64, y2: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn calculate_max_profit( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn calculate_max_loss( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_active` is never used [INFO] [stdout] --> src/models/position.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn set_active(&mut self, active: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `last_modified` is never used [INFO] [stdout] --> src/models/web3_data.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Portfolio { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn last_modified(&self) -> chrono::DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `mark_as_used` are never used [INFO] [stdout] --> src/models/api_keys.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl ApiKey { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 49 | /// Create a new API key instance [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn mark_as_used(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `description` and `icon` are never used [INFO] [stdout] --> src/models/import_data.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ImportMode { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 14 | pub fn description(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn icon(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportResult` is never constructed [INFO] [stdout] --> src/models/import_data.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct ImportResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RawPositionData` is never constructed [INFO] [stdout] --> src/models/import_data.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct RawPositionData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_position` and `convert_binance_position` are never used [INFO] [stdout] --> src/models/import_data.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl RawPositionData { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 119 | /// Convert raw position data to app Position model [INFO] [stdout] 120 | pub fn to_position(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn convert_binance_position(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ImportStatus` is never used [INFO] [stdout] --> src/models/import_data.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | pub enum ImportStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_to_json_string` is never used [INFO] [stdout] --> src/utils/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn export_to_json_string(positions: &[crate::models::Position]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `import_from_json_string` is never used [INFO] [stdout] --> src/utils/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn import_from_json_string(json_data: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read_file_content` and `validate_import_file` are never used [INFO] [stdout] --> src/utils/browser_file.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl BrowserFileManager { [INFO] [stdout] | ----------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub async fn read_file_content(file: &File) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn validate_import_file(file: &File) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_files_from_drop_event` is never used [INFO] [stdout] --> src/utils/browser_file.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn get_files_from_drop_event(event: &DragEvent) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drag_event_has_files` is never used [INFO] [stdout] --> src/utils/browser_file.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn drag_event_has_files(event: &DragEvent) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_dropped_files` is never used [INFO] [stdout] --> src/utils/browser_file.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn validate_dropped_files(files: &[File]) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_storage_info` and `clear_all_data` are never used [INFO] [stdout] --> src/utils/local_storage.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl LocalStorageManager { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn get_storage_info() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn clear_all_data() -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StorageInfo` is never constructed [INFO] [stdout] --> src/utils/local_storage.rs:408:12 [INFO] [stdout] | [INFO] [stdout] 408 | pub struct StorageInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `total_size_mb` and `largest_portfolio` are never used [INFO] [stdout] --> src/utils/local_storage.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 415 | impl StorageInfo { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 416 | pub fn total_size_mb(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 420 | pub fn largest_portfolio(&self) -> Option<&(String, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_positions_only` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn export_positions_only(positions: &[Position]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_settings_only` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn export_settings_only(portfolio: &Portfolio) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_import_data` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:284:12 [INFO] [stdout] | [INFO] [stdout] 284 | pub fn validate_import_data(portfolio: &Portfolio) -> Result<(), Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_filename` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn sanitize_filename(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_format_from_filename` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn detect_format_from_filename(filename: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `estimate_export_size` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | pub fn estimate_export_size(portfolio: &super::Portfolio) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `App` should have a snake case name [INFO] [stdout] --> src/components/app.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn App() -> Element { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `app` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ChartControls` should have a snake case name [INFO] [stdout] --> src/components/chart_controls.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn ChartControls(props: ChartControlsProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `chart_controls` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PayoffChart` should have a snake case name [INFO] [stdout] --> src/components/payoff_chart.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn PayoffChart(props: PayoffChartProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `payoff_chart` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionForm` should have a snake case name [INFO] [stdout] --> src/components/position_form.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn PositionForm(props: PositionFormProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_form` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionList` should have a snake case name [INFO] [stdout] --> src/components/position_list.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn PositionList(props: PositionListProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionCard` should have a snake case name [INFO] [stdout] --> src/components/position_list.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn PositionCard(props: PositionCardProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/browser_file.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let mut blob_options = BlobPropertyBag::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CanvasRust`, `ChartJs`, `TradingView`, and `Plotters` are never constructed [INFO] [stdout] --> src/components/payoff_chart.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ChartEngine { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 8 | SvgNative, [INFO] [stdout] 9 | CanvasRust, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | ChartJs, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | TradingView, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | Plotters, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `price_range` is never read [INFO] [stdout] --> src/components/payoff_chart.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ChartData { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub price_range: (f64, f64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartData` 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: fields `width` and `height` are never read [INFO] [stdout] --> src/components/payoff_chart.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ChartConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 26 | pub width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | pub height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartConfig` 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: method `is_available` is never used [INFO] [stdout] --> src/components/payoff_chart.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl ChartEngine { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `maker_commission`, `taker_commission`, `buyer_commission`, `seller_commission`, `can_withdraw`, and `can_deposit` are never read [INFO] [stdout] --> src/components/api_tester.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct BinanceAccountInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 7 | #[serde(rename = "makerCommission")] [INFO] [stdout] 8 | maker_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | #[serde(rename = "takerCommission")] [INFO] [stdout] 10 | taker_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | #[serde(rename = "buyerCommission")] [INFO] [stdout] 12 | buyer_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | #[serde(rename = "sellerCommission")] [INFO] [stdout] 14 | seller_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | can_withdraw: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | #[serde(rename = "canDeposit")] [INFO] [stdout] 20 | can_deposit: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceAccountInfo` 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: fields `asset`, `free`, and `locked` are never read [INFO] [stdout] --> src/components/api_tester.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct BinanceBalance { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 28 | asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | free: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | locked: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceBalance` 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: struct `BinanceBalance` is never constructed [INFO] [stdout] --> src/components/position_sync_dialog.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BinanceBalance { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinanceAccountInfo` is never constructed [INFO] [stdout] --> src/components/position_sync_dialog.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct BinanceAccountInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PortfolioMetrics` is never constructed [INFO] [stdout] --> src/engine/portfolio_engine.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PortfolioMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PortfolioEngine` is never constructed [INFO] [stdout] --> src/engine/portfolio_engine.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct PortfolioEngine; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `analyze_portfolio`, `calculate_profit_probability`, `calculate_expected_value`, `has_unlimited_profit`, `has_unlimited_loss`, and `get_risk_level` are never used [INFO] [stdout] --> src/engine/portfolio_engine.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl PortfolioEngine { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 19 | /// Analyze portfolio and return comprehensive metrics [INFO] [stdout] 20 | pub fn analyze_portfolio( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn calculate_profit_probability(payoff_curve: &[PayoffPoint]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn calculate_expected_value(payoff_curve: &[PayoffPoint]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn has_unlimited_profit(positions: &[Position]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn has_unlimited_loss(positions: &[Position]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn get_risk_level(positions: &[Position]) -> RiskLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RiskLevel` is never used [INFO] [stdout] --> src/engine/portfolio_engine.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | pub enum RiskLevel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidationResult` is never constructed [INFO] [stdout] --> src/engine/validation_engine.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_error`, `add_warning`, and `is_ok` are never used [INFO] [stdout] --> src/engine/validation_engine.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ValidationResult { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn add_error(&mut self, error: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_warning(&mut self, warning: String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidationEngine` is never constructed [INFO] [stdout] --> src/engine/validation_engine.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct ValidationEngine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/engine/validation_engine.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ValidationEngine { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] 34 | /// Validate a single position [INFO] [stdout] 35 | pub fn validate_position(position: &Position) -> ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn validate_portfolio(positions: &[Position]) -> ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn validate_chart_parameters( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn validate_spot_position(spot: &SpotPosition, result: &mut ValidationResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn validate_option_position(option: &OptionPosition, result: &mut ValidationResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn validate_futures_position(futures: &FuturesPosition, result: &mut ValidationResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn validate_portfolio_risk(positions: &[Position], result: &mut ValidationResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PayoffPoint` is never constructed [INFO] [stdout] --> src/models/payoff.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PayoffPoint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PayoffCalculator` is never constructed [INFO] [stdout] --> src/models/payoff.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct PayoffCalculator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/models/payoff.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl PayoffCalculator { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] 15 | /// Calculate payoff for a single position at a given underlying price [INFO] [stdout] 16 | pub fn calculate_single_payoff(position: &Position, underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn calculate_portfolio_payoff(positions: &[Position], underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn generate_payoff_curve( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn calculate_spot_payoff(spot: &SpotPosition, underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn calculate_option_payoff(option: &OptionPosition, underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn calculate_futures_payoff(futures: &FuturesPosition, underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn find_breakeven_points( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn interpolate_zero_crossing(x1: f64, y1: f64, x2: f64, y2: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn calculate_max_profit( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn calculate_max_loss( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_active` is never used [INFO] [stdout] --> src/models/position.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn set_active(&mut self, active: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `last_modified` is never used [INFO] [stdout] --> src/models/web3_data.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Portfolio { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn last_modified(&self) -> chrono::DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `mark_as_used` are never used [INFO] [stdout] --> src/models/api_keys.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl ApiKey { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 49 | /// Create a new API key instance [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn mark_as_used(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `description` and `icon` are never used [INFO] [stdout] --> src/models/import_data.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ImportMode { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 14 | pub fn description(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn icon(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportResult` is never constructed [INFO] [stdout] --> src/models/import_data.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct ImportResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RawPositionData` is never constructed [INFO] [stdout] --> src/models/import_data.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct RawPositionData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_position` and `convert_binance_position` are never used [INFO] [stdout] --> src/models/import_data.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl RawPositionData { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 119 | /// Convert raw position data to app Position model [INFO] [stdout] 120 | pub fn to_position(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn convert_binance_position(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ImportStatus` is never used [INFO] [stdout] --> src/models/import_data.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | pub enum ImportStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_to_json_string` is never used [INFO] [stdout] --> src/utils/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn export_to_json_string(positions: &[crate::models::Position]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `import_from_json_string` is never used [INFO] [stdout] --> src/utils/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn import_from_json_string(json_data: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read_file_content` and `validate_import_file` are never used [INFO] [stdout] --> src/utils/browser_file.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl BrowserFileManager { [INFO] [stdout] | ----------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub async fn read_file_content(file: &File) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn validate_import_file(file: &File) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_files_from_drop_event` is never used [INFO] [stdout] --> src/utils/browser_file.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn get_files_from_drop_event(event: &DragEvent) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drag_event_has_files` is never used [INFO] [stdout] --> src/utils/browser_file.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn drag_event_has_files(event: &DragEvent) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_dropped_files` is never used [INFO] [stdout] --> src/utils/browser_file.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn validate_dropped_files(files: &[File]) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_storage_info` and `clear_all_data` are never used [INFO] [stdout] --> src/utils/local_storage.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl LocalStorageManager { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn get_storage_info() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn clear_all_data() -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StorageInfo` is never constructed [INFO] [stdout] --> src/utils/local_storage.rs:408:12 [INFO] [stdout] | [INFO] [stdout] 408 | pub struct StorageInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `total_size_mb` and `largest_portfolio` are never used [INFO] [stdout] --> src/utils/local_storage.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 415 | impl StorageInfo { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 416 | pub fn total_size_mb(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 420 | pub fn largest_portfolio(&self) -> Option<&(String, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_positions_only` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn export_positions_only(positions: &[Position]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_settings_only` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn export_settings_only(portfolio: &Portfolio) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_import_data` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:284:12 [INFO] [stdout] | [INFO] [stdout] 284 | pub fn validate_import_data(portfolio: &Portfolio) -> Result<(), Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_filename` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn sanitize_filename(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_format_from_filename` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn detect_format_from_filename(filename: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `estimate_export_size` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | pub fn estimate_export_size(portfolio: &super::Portfolio) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `App` should have a snake case name [INFO] [stdout] --> src/components/app.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn App() -> Element { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `app` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ChartControls` should have a snake case name [INFO] [stdout] --> src/components/chart_controls.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn ChartControls(props: ChartControlsProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `chart_controls` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PayoffChart` should have a snake case name [INFO] [stdout] --> src/components/payoff_chart.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn PayoffChart(props: PayoffChartProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `payoff_chart` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionForm` should have a snake case name [INFO] [stdout] --> src/components/position_form.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn PositionForm(props: PositionFormProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_form` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionList` should have a snake case name [INFO] [stdout] --> src/components/position_list.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn PositionList(props: PositionListProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionCard` should have a snake case name [INFO] [stdout] --> src/components/position_list.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn PositionCard(props: PositionCardProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 22s [INFO] running `Command { std: "docker" "inspect" "c8cf641f296d29a1abcc99b1d6787e99702bf82f5d3f8846940bd1d29cfbcf3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8cf641f296d29a1abcc99b1d6787e99702bf82f5d3f8846940bd1d29cfbcf3b", kill_on_drop: false }` [INFO] [stdout] c8cf641f296d29a1abcc99b1d6787e99702bf82f5d3f8846940bd1d29cfbcf3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2f08b682703a45fe774886612e9f6adbc543f61faa9b96a7a734d6ef18c6825 [INFO] running `Command { std: "docker" "start" "-a" "d2f08b682703a45fe774886612e9f6adbc543f61faa9b96a7a734d6ef18c6825", kill_on_drop: false }` [INFO] [stderr] Compiling payoff-diagram-web v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `StorageInfo` [INFO] [stdout] --> src/components/portfolio_manager.rs:3:80 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{BrowserFileManager, LocalStorageManager, PortfolioListItem, StorageInfo}; [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: `StorageInfo` [INFO] [stdout] --> src/components/portfolio_manager.rs:3:80 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{BrowserFileManager, LocalStorageManager, PortfolioListItem, StorageInfo}; [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: `Serialize` [INFO] [stdout] --> src/components/api_tester.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/components/api_tester.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ApiKeyForm` and `PositionSyncDialog` [INFO] [stdout] --> src/components/api_key_manager.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::components::{ApiKeyForm, PositionSyncDialog}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Position` [INFO] [stdout] --> src/components/api_key_manager.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::models::{Portfolio, Position}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ApiKeyForm` and `PositionSyncDialog` [INFO] [stdout] --> src/components/api_key_manager.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::components::{ApiKeyForm, PositionSyncDialog}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Position` [INFO] [stdout] --> src/components/api_key_manager.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::models::{Portfolio, Position}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AssetSelection` and `SymbolFilter` [INFO] [stdout] --> src/components/data_import_dialog.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | import_data::{ImportConfig, ImportMode, AssetSelection, SymbolFilter, ImportStatus, ImportResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AssetSelection` and `SymbolFilter` [INFO] [stdout] --> src/components/data_import_dialog.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | import_data::{ImportConfig, ImportMode, AssetSelection, SymbolFilter, ImportStatus, ImportResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::LocalStorageManager` [INFO] [stdout] --> src/components/position_sync_dialog.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | utils::LocalStorageManager [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::LocalStorageManager` [INFO] [stdout] --> src/components/position_sync_dialog.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | utils::LocalStorageManager [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `app::App` [INFO] [stdout] --> src/components/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use app::App; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api_key_list::ApiKeyList` [INFO] [stdout] --> src/components/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use api_key_list::ApiKeyList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data_import_dialog::DataImportDialog` [INFO] [stdout] --> src/components/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use data_import_dialog::DataImportDialog; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PortfolioEngine` and `PortfolioMetrics` [INFO] [stdout] --> src/engine/mod.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | pub use portfolio_engine::{PortfolioEngine, PortfolioMetrics}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ValidationEngine` and `ValidationResult` [INFO] [stdout] --> src/engine/mod.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | pub use validation_engine::{ValidationEngine, ValidationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/models/payoff.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `app::App` [INFO] [stdout] --> src/components/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use app::App; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api_key_list::ApiKeyList` [INFO] [stdout] --> src/components/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use api_key_list::ApiKeyList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data_import_dialog::DataImportDialog` [INFO] [stdout] --> src/components/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use data_import_dialog::DataImportDialog; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PortfolioEngine` and `PortfolioMetrics` [INFO] [stdout] --> src/engine/mod.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | pub use portfolio_engine::{PortfolioEngine, PortfolioMetrics}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ValidationEngine` and `ValidationResult` [INFO] [stdout] --> src/engine/mod.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | pub use validation_engine::{ValidationEngine, ValidationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/models/payoff.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BackupLocation`, `CalculationSettings`, `ChartSettings`, `ChartTheme`, `ChartType`, `ConflictType`, `DisplaySettings`, `ExportSettings`, `LegendPosition`, `PortfolioSettings`, `PositionOrder`, `StorageMetadata`, `StorageProvider`, `SyncConflict`, and `SyncMetadata` [INFO] [stdout] --> src/models/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | BackupLocation, CalculationSettings, ChartSettings, ChartTheme, ChartType, ConflictType, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 14 | DataExchangeFormat, DisplaySettings, EnhancedPosition, ExportFormat, ExportSettings, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 15 | ExternalDataSource, LegendPosition, Portfolio, PortfolioSettings, PositionMetadata, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | PositionOrder, PositionSource, PositionTemplate, StorageMetadata, StorageProvider, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | SyncConflict, SyncMetadata, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_data` [INFO] [stdout] --> src/utils/browser_file.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::{web3_data, Portfolio}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Document` [INFO] [stdout] --> src/utils/browser_file.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use web_sys::{window, Blob, BlobPropertyBag, Document, File, FileReader, HtmlAnchorElement, Url}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataTransfer` and `FileList` [INFO] [stdout] --> src/utils/browser_file.rs:215:19 [INFO] [stdout] | [INFO] [stdout] 215 | use web_sys::{DataTransfer, DragEvent, FileList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/utils/local_storage.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExternalDataSource` and `PositionTemplate` [INFO] [stdout] --> src/utils/web3_export_import.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | DataExchangeFormat, ExportFormat, ExternalDataSource, Portfolio, Position, PositionTemplate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::export as web3_export` [INFO] [stdout] --> src/utils/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use web3_export_import::export as web3_export; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::file_utils` [INFO] [stdout] --> src/utils/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use web3_export_import::file_utils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::import as web3_import` [INFO] [stdout] --> src/utils/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use web3_export_import::import as web3_import; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BackupLocation`, `CalculationSettings`, `ChartSettings`, `ChartTheme`, `ChartType`, `ConflictType`, `DisplaySettings`, `ExportSettings`, `LegendPosition`, `PortfolioSettings`, `PositionOrder`, `StorageMetadata`, `StorageProvider`, `SyncConflict`, and `SyncMetadata` [INFO] [stdout] --> src/models/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | BackupLocation, CalculationSettings, ChartSettings, ChartTheme, ChartType, ConflictType, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 14 | DataExchangeFormat, DisplaySettings, EnhancedPosition, ExportFormat, ExportSettings, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 15 | ExternalDataSource, LegendPosition, Portfolio, PortfolioSettings, PositionMetadata, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | PositionOrder, PositionSource, PositionTemplate, StorageMetadata, StorageProvider, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | SyncConflict, SyncMetadata, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_data` [INFO] [stdout] --> src/utils/browser_file.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::{web3_data, Portfolio}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Document` [INFO] [stdout] --> src/utils/browser_file.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use web_sys::{window, Blob, BlobPropertyBag, Document, File, FileReader, HtmlAnchorElement, Url}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataTransfer` and `FileList` [INFO] [stdout] --> src/utils/browser_file.rs:215:19 [INFO] [stdout] | [INFO] [stdout] 215 | use web_sys::{DataTransfer, DragEvent, FileList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/utils/local_storage.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExternalDataSource` and `PositionTemplate` [INFO] [stdout] --> src/utils/web3_export_import.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | DataExchangeFormat, ExportFormat, ExternalDataSource, Portfolio, Position, PositionTemplate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::export as web3_export` [INFO] [stdout] --> src/utils/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use web3_export_import::export as web3_export; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::file_utils` [INFO] [stdout] --> src/utils/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use web3_export_import::file_utils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web3_export_import::import as web3_import` [INFO] [stdout] --> src/utils/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use web3_export_import::import as web3_import; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auto_save_effect` [INFO] [stdout] --> src/components/app.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let auto_save_effect = use_resource(move || { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auto_save_effect` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chart_config` [INFO] [stdout] --> src/components/payoff_chart.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | let chart_config = ChartConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chart_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auto_save_effect` [INFO] [stdout] --> src/components/app.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let auto_save_effect = use_resource(move || { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auto_save_effect` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chart_config` [INFO] [stdout] --> src/components/payoff_chart.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | let chart_config = ChartConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chart_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unrealized_profit` [INFO] [stdout] --> src/components/position_sync_dialog.rs:802:17 [INFO] [stdout] | [INFO] [stdout] 802 | let unrealized_profit: f64 = unrealized_profit_str.parse().unwrap_or(0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unrealized_profit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/components/position_sync_dialog.rs:807:21 [INFO] [stdout] | [INFO] [stdout] 807 | let side = if position_side == "LONG" || (position_side == "BOTH" && position_amt > 0.0) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unrealized_profit` [INFO] [stdout] --> src/components/position_sync_dialog.rs:802:17 [INFO] [stdout] | [INFO] [stdout] 802 | let unrealized_profit: f64 = unrealized_profit_str.parse().unwrap_or(0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unrealized_profit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/components/position_sync_dialog.rs:807:21 [INFO] [stdout] | [INFO] [stdout] 807 | let side = if position_side == "LONG" || (position_side == "BOTH" && position_amt > 0.0) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/browser_file.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let mut blob_options = BlobPropertyBag::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CanvasRust`, `ChartJs`, `TradingView`, and `Plotters` are never constructed [INFO] [stdout] --> src/components/payoff_chart.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ChartEngine { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 8 | SvgNative, [INFO] [stdout] 9 | CanvasRust, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | ChartJs, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | TradingView, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | Plotters, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `price_range` is never read [INFO] [stdout] --> src/components/payoff_chart.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ChartData { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub price_range: (f64, f64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartData` 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: fields `width` and `height` are never read [INFO] [stdout] --> src/components/payoff_chart.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ChartConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 26 | pub width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | pub height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartConfig` 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: method `is_available` is never used [INFO] [stdout] --> src/components/payoff_chart.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl ChartEngine { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `maker_commission`, `taker_commission`, `buyer_commission`, `seller_commission`, `can_withdraw`, and `can_deposit` are never read [INFO] [stdout] --> src/components/api_tester.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct BinanceAccountInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 7 | #[serde(rename = "makerCommission")] [INFO] [stdout] 8 | maker_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | #[serde(rename = "takerCommission")] [INFO] [stdout] 10 | taker_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | #[serde(rename = "buyerCommission")] [INFO] [stdout] 12 | buyer_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | #[serde(rename = "sellerCommission")] [INFO] [stdout] 14 | seller_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | can_withdraw: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | #[serde(rename = "canDeposit")] [INFO] [stdout] 20 | can_deposit: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceAccountInfo` 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: fields `asset`, `free`, and `locked` are never read [INFO] [stdout] --> src/components/api_tester.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct BinanceBalance { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 28 | asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | free: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | locked: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceBalance` 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: struct `BinanceBalance` is never constructed [INFO] [stdout] --> src/components/position_sync_dialog.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BinanceBalance { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinanceAccountInfo` is never constructed [INFO] [stdout] --> src/components/position_sync_dialog.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct BinanceAccountInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `validate_portfolio` and `validate_portfolio_risk` are never used [INFO] [stdout] --> src/engine/validation_engine.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ValidationEngine { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn validate_portfolio(positions: &[Position]) -> ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn validate_portfolio_risk(positions: &[Position], result: &mut ValidationResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PayoffPoint` is never constructed [INFO] [stdout] --> src/models/payoff.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PayoffPoint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `calculate_portfolio_payoff`, `generate_payoff_curve`, `find_breakeven_points`, `interpolate_zero_crossing`, `calculate_max_profit`, and `calculate_max_loss` are never used [INFO] [stdout] --> src/models/payoff.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl PayoffCalculator { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn calculate_portfolio_payoff(positions: &[Position], underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn generate_payoff_curve( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn find_breakeven_points( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn interpolate_zero_crossing(x1: f64, y1: f64, x2: f64, y2: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn calculate_max_profit( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn calculate_max_loss( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_active` is never used [INFO] [stdout] --> src/models/position.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn set_active(&mut self, active: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `last_modified` is never used [INFO] [stdout] --> src/models/web3_data.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Portfolio { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn last_modified(&self) -> chrono::DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `mark_as_used` are never used [INFO] [stdout] --> src/models/api_keys.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl ApiKey { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 49 | /// Create a new API key instance [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn mark_as_used(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `description` and `icon` are never used [INFO] [stdout] --> src/models/import_data.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ImportMode { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 14 | pub fn description(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn icon(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportResult` is never constructed [INFO] [stdout] --> src/models/import_data.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct ImportResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RawPositionData` is never constructed [INFO] [stdout] --> src/models/import_data.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct RawPositionData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_position` and `convert_binance_position` are never used [INFO] [stdout] --> src/models/import_data.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl RawPositionData { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 119 | /// Convert raw position data to app Position model [INFO] [stdout] 120 | pub fn to_position(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn convert_binance_position(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ImportStatus` is never used [INFO] [stdout] --> src/models/import_data.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | pub enum ImportStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_to_json_string` is never used [INFO] [stdout] --> src/utils/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn export_to_json_string(positions: &[crate::models::Position]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `import_from_json_string` is never used [INFO] [stdout] --> src/utils/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn import_from_json_string(json_data: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read_file_content` and `validate_import_file` are never used [INFO] [stdout] --> src/utils/browser_file.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl BrowserFileManager { [INFO] [stdout] | ----------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub async fn read_file_content(file: &File) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn validate_import_file(file: &File) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_files_from_drop_event` is never used [INFO] [stdout] --> src/utils/browser_file.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn get_files_from_drop_event(event: &DragEvent) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drag_event_has_files` is never used [INFO] [stdout] --> src/utils/browser_file.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn drag_event_has_files(event: &DragEvent) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_dropped_files` is never used [INFO] [stdout] --> src/utils/browser_file.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn validate_dropped_files(files: &[File]) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_storage_info` and `clear_all_data` are never used [INFO] [stdout] --> src/utils/local_storage.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl LocalStorageManager { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn get_storage_info() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn clear_all_data() -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StorageInfo` is never constructed [INFO] [stdout] --> src/utils/local_storage.rs:408:12 [INFO] [stdout] | [INFO] [stdout] 408 | pub struct StorageInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `total_size_mb` and `largest_portfolio` are never used [INFO] [stdout] --> src/utils/local_storage.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 415 | impl StorageInfo { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 416 | pub fn total_size_mb(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 420 | pub fn largest_portfolio(&self) -> Option<&(String, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_positions_only` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn export_positions_only(positions: &[Position]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_settings_only` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn export_settings_only(portfolio: &Portfolio) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_import_data` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:284:12 [INFO] [stdout] | [INFO] [stdout] 284 | pub fn validate_import_data(portfolio: &Portfolio) -> Result<(), Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_filename` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn sanitize_filename(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_format_from_filename` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn detect_format_from_filename(filename: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `estimate_export_size` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | pub fn estimate_export_size(portfolio: &super::Portfolio) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `App` should have a snake case name [INFO] [stdout] --> src/components/app.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn App() -> Element { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `app` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ChartControls` should have a snake case name [INFO] [stdout] --> src/components/chart_controls.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn ChartControls(props: ChartControlsProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `chart_controls` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PayoffChart` should have a snake case name [INFO] [stdout] --> src/components/payoff_chart.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn PayoffChart(props: PayoffChartProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `payoff_chart` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionForm` should have a snake case name [INFO] [stdout] --> src/components/position_form.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn PositionForm(props: PositionFormProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_form` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionList` should have a snake case name [INFO] [stdout] --> src/components/position_list.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn PositionList(props: PositionListProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionCard` should have a snake case name [INFO] [stdout] --> src/components/position_list.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn PositionCard(props: PositionCardProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/browser_file.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let mut blob_options = BlobPropertyBag::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CanvasRust`, `ChartJs`, `TradingView`, and `Plotters` are never constructed [INFO] [stdout] --> src/components/payoff_chart.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ChartEngine { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 8 | SvgNative, [INFO] [stdout] 9 | CanvasRust, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | ChartJs, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | TradingView, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | Plotters, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `price_range` is never read [INFO] [stdout] --> src/components/payoff_chart.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ChartData { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub price_range: (f64, f64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartData` 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: fields `width` and `height` are never read [INFO] [stdout] --> src/components/payoff_chart.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ChartConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 26 | pub width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | pub height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChartConfig` 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: method `is_available` is never used [INFO] [stdout] --> src/components/payoff_chart.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl ChartEngine { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `maker_commission`, `taker_commission`, `buyer_commission`, `seller_commission`, `can_withdraw`, and `can_deposit` are never read [INFO] [stdout] --> src/components/api_tester.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct BinanceAccountInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 7 | #[serde(rename = "makerCommission")] [INFO] [stdout] 8 | maker_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | #[serde(rename = "takerCommission")] [INFO] [stdout] 10 | taker_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | #[serde(rename = "buyerCommission")] [INFO] [stdout] 12 | buyer_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | #[serde(rename = "sellerCommission")] [INFO] [stdout] 14 | seller_commission: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | can_withdraw: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | #[serde(rename = "canDeposit")] [INFO] [stdout] 20 | can_deposit: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceAccountInfo` 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: fields `asset`, `free`, and `locked` are never read [INFO] [stdout] --> src/components/api_tester.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct BinanceBalance { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 28 | asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | free: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | locked: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceBalance` 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: struct `BinanceBalance` is never constructed [INFO] [stdout] --> src/components/position_sync_dialog.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BinanceBalance { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinanceAccountInfo` is never constructed [INFO] [stdout] --> src/components/position_sync_dialog.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct BinanceAccountInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `validate_portfolio` and `validate_portfolio_risk` are never used [INFO] [stdout] --> src/engine/validation_engine.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ValidationEngine { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn validate_portfolio(positions: &[Position]) -> ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn validate_portfolio_risk(positions: &[Position], result: &mut ValidationResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PayoffPoint` is never constructed [INFO] [stdout] --> src/models/payoff.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PayoffPoint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `calculate_portfolio_payoff`, `generate_payoff_curve`, `find_breakeven_points`, `interpolate_zero_crossing`, `calculate_max_profit`, and `calculate_max_loss` are never used [INFO] [stdout] --> src/models/payoff.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl PayoffCalculator { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn calculate_portfolio_payoff(positions: &[Position], underlying_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn generate_payoff_curve( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn find_breakeven_points( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn interpolate_zero_crossing(x1: f64, y1: f64, x2: f64, y2: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn calculate_max_profit( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn calculate_max_loss( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_active` is never used [INFO] [stdout] --> src/models/position.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn set_active(&mut self, active: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `last_modified` is never used [INFO] [stdout] --> src/models/web3_data.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Portfolio { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn last_modified(&self) -> chrono::DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `mark_as_used` are never used [INFO] [stdout] --> src/models/api_keys.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl ApiKey { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 49 | /// Create a new API key instance [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn mark_as_used(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `description` and `icon` are never used [INFO] [stdout] --> src/models/import_data.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ImportMode { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 14 | pub fn description(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn icon(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportResult` is never constructed [INFO] [stdout] --> src/models/import_data.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct ImportResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RawPositionData` is never constructed [INFO] [stdout] --> src/models/import_data.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct RawPositionData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_position` and `convert_binance_position` are never used [INFO] [stdout] --> src/models/import_data.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl RawPositionData { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 119 | /// Convert raw position data to app Position model [INFO] [stdout] 120 | pub fn to_position(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn convert_binance_position(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ImportStatus` is never used [INFO] [stdout] --> src/models/import_data.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | pub enum ImportStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_to_json_string` is never used [INFO] [stdout] --> src/utils/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn export_to_json_string(positions: &[crate::models::Position]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `import_from_json_string` is never used [INFO] [stdout] --> src/utils/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn import_from_json_string(json_data: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read_file_content` and `validate_import_file` are never used [INFO] [stdout] --> src/utils/browser_file.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl BrowserFileManager { [INFO] [stdout] | ----------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub async fn read_file_content(file: &File) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn validate_import_file(file: &File) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_files_from_drop_event` is never used [INFO] [stdout] --> src/utils/browser_file.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn get_files_from_drop_event(event: &DragEvent) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drag_event_has_files` is never used [INFO] [stdout] --> src/utils/browser_file.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn drag_event_has_files(event: &DragEvent) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_dropped_files` is never used [INFO] [stdout] --> src/utils/browser_file.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn validate_dropped_files(files: &[File]) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_storage_info` and `clear_all_data` are never used [INFO] [stdout] --> src/utils/local_storage.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl LocalStorageManager { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn get_storage_info() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn clear_all_data() -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StorageInfo` is never constructed [INFO] [stdout] --> src/utils/local_storage.rs:408:12 [INFO] [stdout] | [INFO] [stdout] 408 | pub struct StorageInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `total_size_mb` and `largest_portfolio` are never used [INFO] [stdout] --> src/utils/local_storage.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 415 | impl StorageInfo { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 416 | pub fn total_size_mb(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 420 | pub fn largest_portfolio(&self) -> Option<&(String, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_positions_only` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn export_positions_only(positions: &[Position]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_settings_only` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn export_settings_only(portfolio: &Portfolio) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_import_data` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:284:12 [INFO] [stdout] | [INFO] [stdout] 284 | pub fn validate_import_data(portfolio: &Portfolio) -> Result<(), Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_filename` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn sanitize_filename(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_format_from_filename` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn detect_format_from_filename(filename: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `estimate_export_size` is never used [INFO] [stdout] --> src/utils/web3_export_import.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | pub fn estimate_export_size(portfolio: &super::Portfolio) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `App` should have a snake case name [INFO] [stdout] --> src/components/app.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn App() -> Element { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `app` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ChartControls` should have a snake case name [INFO] [stdout] --> src/components/chart_controls.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn ChartControls(props: ChartControlsProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `chart_controls` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PayoffChart` should have a snake case name [INFO] [stdout] --> src/components/payoff_chart.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn PayoffChart(props: PayoffChartProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `payoff_chart` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionForm` should have a snake case name [INFO] [stdout] --> src/components/position_form.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn PositionForm(props: PositionFormProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_form` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionList` should have a snake case name [INFO] [stdout] --> src/components/position_list.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn PositionList(props: PositionListProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `PositionCard` should have a snake case name [INFO] [stdout] --> src/components/position_list.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn PositionCard(props: PositionCardProps) -> Element { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 10.30s [INFO] running `Command { std: "docker" "inspect" "d2f08b682703a45fe774886612e9f6adbc543f61faa9b96a7a734d6ef18c6825", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2f08b682703a45fe774886612e9f6adbc543f61faa9b96a7a734d6ef18c6825", kill_on_drop: false }` [INFO] [stdout] d2f08b682703a45fe774886612e9f6adbc543f61faa9b96a7a734d6ef18c6825 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] dd97cc74de992046de08ada745f0fe1fcb746d516b6b3c8fd1fb91d923aea8a6 [INFO] running `Command { std: "docker" "start" "-a" "dd97cc74de992046de08ada745f0fe1fcb746d516b6b3c8fd1fb91d923aea8a6", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `StorageInfo` [INFO] [stderr] --> src/components/portfolio_manager.rs:3:80 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::utils::{BrowserFileManager, LocalStorageManager, PortfolioListItem, StorageInfo}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/components/api_tester.rs:2:26 [INFO] [stderr] | [INFO] [stderr] 2 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ApiKeyForm` and `PositionSyncDialog` [INFO] [stderr] --> src/components/api_key_manager.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::components::{ApiKeyForm, PositionSyncDialog}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Position` [INFO] [stderr] --> src/components/api_key_manager.rs:4:32 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::models::{Portfolio, Position}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AssetSelection` and `SymbolFilter` [INFO] [stderr] --> src/components/data_import_dialog.rs:3:45 [INFO] [stderr] | [INFO] [stderr] 3 | import_data::{ImportConfig, ImportMode, AssetSelection, SymbolFilter, ImportStatus, ImportResult}, [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `utils::LocalStorageManager` [INFO] [stderr] --> src/components/position_sync_dialog.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | utils::LocalStorageManager [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `app::App` [INFO] [stderr] --> src/components/mod.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub use app::App; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `api_key_list::ApiKeyList` [INFO] [stderr] --> src/components/mod.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | pub use api_key_list::ApiKeyList; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `data_import_dialog::DataImportDialog` [INFO] [stderr] --> src/components/mod.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | pub use data_import_dialog::DataImportDialog; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `PortfolioEngine` and `PortfolioMetrics` [INFO] [stderr] --> src/engine/mod.rs:10:28 [INFO] [stderr] | [INFO] [stderr] 10 | pub use portfolio_engine::{PortfolioEngine, PortfolioMetrics}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ValidationEngine` and `ValidationResult` [INFO] [stderr] --> src/engine/mod.rs:11:29 [INFO] [stderr] | [INFO] [stderr] 11 | pub use validation_engine::{ValidationEngine, ValidationResult}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/models/payoff.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BackupLocation`, `CalculationSettings`, `ChartSettings`, `ChartTheme`, `ChartType`, `ConflictType`, `DisplaySettings`, `ExportSettings`, `LegendPosition`, `PortfolioSettings`, `PositionOrder`, `StorageMetadata`, `StorageProvider`, `SyncConflict`, and `SyncMetadata` [INFO] [stderr] --> src/models/mod.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | BackupLocation, CalculationSettings, ChartSettings, ChartTheme, ChartType, ConflictType, [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] 14 | DataExchangeFormat, DisplaySettings, EnhancedPosition, ExportFormat, ExportSettings, [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] 15 | ExternalDataSource, LegendPosition, Portfolio, PortfolioSettings, PositionMetadata, [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 16 | PositionOrder, PositionSource, PositionTemplate, StorageMetadata, StorageProvider, [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] 17 | SyncConflict, SyncMetadata, [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `web3_data` [INFO] [stderr] --> src/utils/browser_file.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::models::{web3_data, Portfolio}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Document` [INFO] [stderr] --> src/utils/browser_file.rs:6:46 [INFO] [stderr] | [INFO] [stderr] 6 | use web_sys::{window, Blob, BlobPropertyBag, Document, File, FileReader, HtmlAnchorElement, Url}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DataTransfer` and `FileList` [INFO] [stderr] --> src/utils/browser_file.rs:215:19 [INFO] [stderr] | [INFO] [stderr] 215 | use web_sys::{DataTransfer, DragEvent, FileList}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stderr] --> src/utils/local_storage.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use wasm_bindgen::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ExternalDataSource` and `PositionTemplate` [INFO] [stderr] --> src/utils/web3_export_import.rs:6:39 [INFO] [stderr] | [INFO] [stderr] 6 | DataExchangeFormat, ExportFormat, ExternalDataSource, Portfolio, Position, PositionTemplate, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `web3_export_import::export as web3_export` [INFO] [stderr] --> src/utils/mod.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub use web3_export_import::export as web3_export; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `web3_export_import::file_utils` [INFO] [stderr] --> src/utils/mod.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 10 | pub use web3_export_import::file_utils; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `web3_export_import::import as web3_import` [INFO] [stderr] --> src/utils/mod.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 11 | pub use web3_export_import::import as web3_import; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `auto_save_effect` [INFO] [stderr] --> src/components/app.rs:58:9 [INFO] [stderr] | [INFO] [stderr] 58 | let auto_save_effect = use_resource(move || { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auto_save_effect` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `chart_config` [INFO] [stderr] --> src/components/payoff_chart.rs:167:9 [INFO] [stderr] | [INFO] [stderr] 167 | let chart_config = ChartConfig::default(); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chart_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `unrealized_profit` [INFO] [stderr] --> src/components/position_sync_dialog.rs:802:17 [INFO] [stderr] | [INFO] [stderr] 802 | let unrealized_profit: f64 = unrealized_profit_str.parse().unwrap_or(0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unrealized_profit` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `side` [INFO] [stderr] --> src/components/position_sync_dialog.rs:807:21 [INFO] [stderr] | [INFO] [stderr] 807 | let side = if position_side == "LONG" || (position_side == "BOTH" && position_amt > 0.0) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/utils/browser_file.rs:205:9 [INFO] [stderr] | [INFO] [stderr] 205 | let mut blob_options = BlobPropertyBag::new(); [INFO] [stderr] | ----^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variants `CanvasRust`, `ChartJs`, `TradingView`, and `Plotters` are never constructed [INFO] [stderr] --> src/components/payoff_chart.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 7 | pub enum ChartEngine { [INFO] [stderr] | ----------- variants in this enum [INFO] [stderr] 8 | SvgNative, [INFO] [stderr] 9 | CanvasRust, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 10 | ChartJs, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 11 | TradingView, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 12 | Plotters, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ChartEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `price_range` is never read [INFO] [stderr] --> src/components/payoff_chart.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct ChartData { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 21 | pub price_range: (f64, f64), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ChartData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `width` and `height` are never read [INFO] [stderr] --> src/components/payoff_chart.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 25 | pub struct ChartConfig { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 26 | pub width: u32, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 27 | pub height: u32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ChartConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `is_available` is never used [INFO] [stderr] --> src/components/payoff_chart.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 36 | impl ChartEngine { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 47 | pub fn is_available(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `maker_commission`, `taker_commission`, `buyer_commission`, `seller_commission`, `can_withdraw`, and `can_deposit` are never read [INFO] [stderr] --> src/components/api_tester.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 6 | struct BinanceAccountInfo { [INFO] [stderr] | ------------------ fields in this struct [INFO] [stderr] 7 | #[serde(rename = "makerCommission")] [INFO] [stderr] 8 | maker_commission: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 9 | #[serde(rename = "takerCommission")] [INFO] [stderr] 10 | taker_commission: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 11 | #[serde(rename = "buyerCommission")] [INFO] [stderr] 12 | buyer_commission: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 13 | #[serde(rename = "sellerCommission")] [INFO] [stderr] 14 | seller_commission: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 18 | can_withdraw: bool, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 19 | #[serde(rename = "canDeposit")] [INFO] [stderr] 20 | can_deposit: bool, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BinanceAccountInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `asset`, `free`, and `locked` are never read [INFO] [stderr] --> src/components/api_tester.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 27 | struct BinanceBalance { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 28 | asset: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 29 | free: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 30 | locked: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BinanceBalance` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `BinanceBalance` is never constructed [INFO] [stderr] --> src/components/position_sync_dialog.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct BinanceBalance { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BinanceAccountInfo` is never constructed [INFO] [stderr] --> src/components/position_sync_dialog.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 22 | pub struct BinanceAccountInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `validate_portfolio` and `validate_portfolio_risk` are never used [INFO] [stderr] --> src/engine/validation_engine.rs:48:12 [INFO] [stderr] | [INFO] [stderr] 33 | impl ValidationEngine { [INFO] [stderr] | --------------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 48 | pub fn validate_portfolio(positions: &[Position]) -> ValidationResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 175 | fn validate_portfolio_risk(positions: &[Position], result: &mut ValidationResult) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PayoffPoint` is never constructed [INFO] [stderr] --> src/models/payoff.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct PayoffPoint { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `calculate_portfolio_payoff`, `generate_payoff_curve`, `find_breakeven_points`, `interpolate_zero_crossing`, `calculate_max_profit`, and `calculate_max_loss` are never used [INFO] [stderr] --> src/models/payoff.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl PayoffCalculator { [INFO] [stderr] | --------------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 25 | pub fn calculate_portfolio_payoff(positions: &[Position], underlying_price: f64) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | pub fn generate_payoff_curve( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 88 | pub fn find_breakeven_points( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 122 | fn interpolate_zero_crossing(x1: f64, y1: f64, x2: f64, y2: f64) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 132 | pub fn calculate_max_profit( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 143 | pub fn calculate_max_loss( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `set_active` is never used [INFO] [stderr] --> src/models/position.rs:104:12 [INFO] [stderr] | [INFO] [stderr] 57 | impl Position { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 104 | pub fn set_active(&mut self, active: bool) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `last_modified` is never used [INFO] [stderr] --> src/models/web3_data.rs:70:12 [INFO] [stderr] | [INFO] [stderr] 30 | impl Portfolio { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 70 | pub fn last_modified(&self) -> chrono::DateTime { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `mark_as_used` are never used [INFO] [stderr] --> src/models/api_keys.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 48 | impl ApiKey { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] 49 | /// Create a new API key instance [INFO] [stderr] 50 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 73 | pub fn mark_as_used(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `description` and `icon` are never used [INFO] [stderr] --> src/models/import_data.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl ImportMode { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] 14 | pub fn description(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | pub fn icon(&self) -> &str { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ImportResult` is never constructed [INFO] [stderr] --> src/models/import_data.rs:95:12 [INFO] [stderr] | [INFO] [stderr] 95 | pub struct ImportResult { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `RawPositionData` is never constructed [INFO] [stderr] --> src/models/import_data.rs:107:12 [INFO] [stderr] | [INFO] [stderr] 107 | pub struct RawPositionData { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `to_position` and `convert_binance_position` are never used [INFO] [stderr] --> src/models/import_data.rs:120:12 [INFO] [stderr] | [INFO] [stderr] 118 | impl RawPositionData { [INFO] [stderr] | -------------------- methods in this implementation [INFO] [stderr] 119 | /// Convert raw position data to app Position model [INFO] [stderr] 120 | pub fn to_position(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 127 | fn convert_binance_position(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ImportStatus` is never used [INFO] [stderr] --> src/models/import_data.rs:136:10 [INFO] [stderr] | [INFO] [stderr] 136 | pub enum ImportStatus { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `export_to_json_string` is never used [INFO] [stderr] --> src/utils/mod.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn export_to_json_string(positions: &[crate::models::Position]) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `import_from_json_string` is never used [INFO] [stderr] --> src/utils/mod.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn import_from_json_string(json_data: &str) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `read_file_content` and `validate_import_file` are never used [INFO] [stderr] --> src/utils/browser_file.rs:54:18 [INFO] [stderr] | [INFO] [stderr] 11 | impl BrowserFileManager { [INFO] [stderr] | ----------------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 54 | pub async fn read_file_content(file: &File) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 163 | pub fn validate_import_file(file: &File) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_files_from_drop_event` is never used [INFO] [stderr] --> src/utils/browser_file.rs:218:12 [INFO] [stderr] | [INFO] [stderr] 218 | pub fn get_files_from_drop_event(event: &DragEvent) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `drag_event_has_files` is never used [INFO] [stderr] --> src/utils/browser_file.rs:240:12 [INFO] [stderr] | [INFO] [stderr] 240 | pub fn drag_event_has_files(event: &DragEvent) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `validate_dropped_files` is never used [INFO] [stderr] --> src/utils/browser_file.rs:256:12 [INFO] [stderr] | [INFO] [stderr] 256 | pub fn validate_dropped_files(files: &[File]) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `get_storage_info` and `clear_all_data` are never used [INFO] [stderr] --> src/utils/local_storage.rs:292:12 [INFO] [stderr] | [INFO] [stderr] 53 | impl LocalStorageManager { [INFO] [stderr] | ------------------------ associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 292 | pub fn get_storage_info() -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 346 | pub fn clear_all_data() -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `StorageInfo` is never constructed [INFO] [stderr] --> src/utils/local_storage.rs:408:12 [INFO] [stderr] | [INFO] [stderr] 408 | pub struct StorageInfo { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `total_size_mb` and `largest_portfolio` are never used [INFO] [stderr] --> src/utils/local_storage.rs:416:12 [INFO] [stderr] | [INFO] [stderr] 415 | impl StorageInfo { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] 416 | pub fn total_size_mb(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 420 | pub fn largest_portfolio(&self) -> Option<&(String, usize)> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `export_positions_only` is never used [INFO] [stderr] --> src/utils/web3_export_import.rs:35:12 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn export_positions_only(positions: &[Position]) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `export_settings_only` is never used [INFO] [stderr] --> src/utils/web3_export_import.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 53 | pub fn export_settings_only(portfolio: &Portfolio) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `validate_import_data` is never used [INFO] [stderr] --> src/utils/web3_export_import.rs:284:12 [INFO] [stderr] | [INFO] [stderr] 284 | pub fn validate_import_data(portfolio: &Portfolio) -> Result<(), Vec> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `sanitize_filename` is never used [INFO] [stderr] --> src/utils/web3_export_import.rs:342:12 [INFO] [stderr] | [INFO] [stderr] 342 | pub fn sanitize_filename(input: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `detect_format_from_filename` is never used [INFO] [stderr] --> src/utils/web3_export_import.rs:352:12 [INFO] [stderr] | [INFO] [stderr] 352 | pub fn detect_format_from_filename(filename: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `estimate_export_size` is never used [INFO] [stderr] --> src/utils/web3_export_import.rs:364:12 [INFO] [stderr] | [INFO] [stderr] 364 | pub fn estimate_export_size(portfolio: &super::Portfolio) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `App` should have a snake case name [INFO] [stderr] --> src/components/app.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn App() -> Element { [INFO] [stderr] | ^^^ help: convert the identifier to snake case: `app` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `ChartControls` should have a snake case name [INFO] [stderr] --> src/components/chart_controls.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn ChartControls(props: ChartControlsProps) -> Element { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `chart_controls` [INFO] [stderr] [INFO] [stderr] warning: function `PayoffChart` should have a snake case name [INFO] [stderr] --> src/components/payoff_chart.rs:63:8 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn PayoffChart(props: PayoffChartProps) -> Element { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `payoff_chart` [INFO] [stderr] [INFO] [stderr] warning: function `PositionForm` should have a snake case name [INFO] [stderr] --> src/components/position_form.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn PositionForm(props: PositionFormProps) -> Element { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_form` [INFO] [stderr] [INFO] [stderr] warning: function `PositionList` should have a snake case name [INFO] [stderr] --> src/components/position_list.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn PositionList(props: PositionListProps) -> Element { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_list` [INFO] [stderr] [INFO] [stderr] warning: function `PositionCard` should have a snake case name [INFO] [stderr] --> src/components/position_list.rs:106:8 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn PositionCard(props: PositionCardProps) -> Element { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_card` [INFO] [stderr] [INFO] [stderr] warning: `payoff-diagram-web` (bin "payoff-diagram-web" test) generated 66 warnings (run `cargo fix --bin "payoff-diagram-web" -p payoff-diagram-web --tests` to apply 26 suggestions) [INFO] [stderr] warning: `payoff-diagram-web` (lib test) generated 66 warnings (66 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/payoff_diagram_web-fe18049537443952) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test engine::payoff_engine::tests::test_spot_payoff ... ok [INFO] [stdout] test engine::portfolio_engine::tests::test_risk_level_classification ... ok [INFO] [stdout] test engine::payoff_engine::tests::test_payoff_curve_generation ... ok [INFO] [stdout] test engine::payoff_engine::tests::test_option_payoff ... ok [INFO] [stdout] test engine::validation_engine::tests::test_chart_parameter_validation ... ok [INFO] [stdout] test models::payoff::tests::test_option_payoff ... ok [INFO] [stdout] test models::payoff::tests::test_spot_payoff ... ok [INFO] [stdout] test engine::validation_engine::tests::test_valid_spot_position ... ok [INFO] [stdout] test engine::validation_engine::tests::test_invalid_spot_position ... ok [INFO] [stderr] [INFO] [stderr] thread 'engine::portfolio_engine::tests::test_portfolio_analysis' (20) panicked at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panicking.rs:225:5: [INFO] [stderr] panic in a function that cannot unwind [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x60c230c54d9a - std[e28293b1aa0f68bd]::backtrace_rs::backtrace::libunwind::trace [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stderr] 1: 0x60c230c54d9a - std[e28293b1aa0f68bd]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stderr] 2: 0x60c230c54d9a - std[e28293b1aa0f68bd]::sys::backtrace::_print_fmt [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:74:9 [INFO] [stderr] 3: 0x60c230c54d9a - <::print::DisplayBacktrace as core[c1f1a4ba060b9bfa]::fmt::Display>::fmt [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:44:26 [INFO] [stderr] 4: 0x60c230c68e2a - ::fmt [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/fmt/rt.rs:152:76 [INFO] [stderr] 5: 0x60c230c68e2a - core[c1f1a4ba060b9bfa]::fmt::write [INFO] [stderr] 6: 0x60c230c5a172 - std[e28293b1aa0f68bd]::io::default_write_fmt:: [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/io/mod.rs:639:11 [INFO] [stderr] 7: 0x60c230c5a172 - ::write_fmt [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/io/mod.rs:1994:13 [INFO] [stderr] 8: 0x60c230c33faf - ::print [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:47:9 [INFO] [stderr] 9: 0x60c230c33faf - std[e28293b1aa0f68bd]::panicking::default_hook::{closure#0} [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:292:27 [INFO] [stderr] 10: 0x60c230c4d2d1 - std[e28293b1aa0f68bd]::panicking::default_hook [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:319:9 [INFO] [stderr] 11: 0x60c230be8b5c - core[c1f1a4ba060b9bfa]::ops::function::Fn<(&'a std[e28293b1aa0f68bd]::panic::PanicHookInfo<'b>,), Output = ()> + core[c1f1a4ba060b9bfa]::marker::Sync + core[c1f1a4ba060b9bfa]::marker::Send> as core[c1f1a4ba060b9bfa]::ops::function::Fn<(&std[e28293b1aa0f68bd]::panic::PanicHookInfo,)>>::call [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/alloc/src/boxed.rs:2254:9 [INFO] [stderr] 12: 0x60c230be8b5c - test[273d7611820c9051]::test_main_with_exit_callback::::{closure#0} [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:145:21 [INFO] [stderr] 13: 0x60c230c4d4c2 - core[c1f1a4ba060b9bfa]::ops::function::Fn<(&'a std[e28293b1aa0f68bd]::panic::PanicHookInfo<'b>,), Output = ()> + core[c1f1a4ba060b9bfa]::marker::Sync + core[c1f1a4ba060b9bfa]::marker::Send> as core[c1f1a4ba060b9bfa]::ops::function::Fn<(&std[e28293b1aa0f68bd]::panic::PanicHookInfo,)>>::call [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/alloc/src/boxed.rs:2254:9 [INFO] [stderr] 14: 0x60c230c4d4c2 - std[e28293b1aa0f68bd]::panicking::panic_with_hook [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:833:13 [INFO] [stderr] 15: 0x60c230c3409a - std[e28293b1aa0f68bd]::panicking::panic_handler::{closure#0} [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:691:13 [INFO] [stderr] 16: 0x60c230c2ba09 - std[e28293b1aa0f68bd]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:182:18 [INFO] [stderr] 17: 0x60c230c34d7d - __rustc[b7974e8690430dd9]::rust_begin_unwind [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:689:5 [INFO] [stderr] 18: 0x60c230c694bd - core[c1f1a4ba060b9bfa]::panicking::panic_nounwind_fmt::runtime [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panicking.rs:122:22 [INFO] [stderr] 19: 0x60c230c694bd - core[c1f1a4ba060b9bfa]::panicking::panic_nounwind_fmt [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/intrinsics/mod.rs:2447:9 [INFO] [stderr] 20: 0x60c230c6943b - core[c1f1a4ba060b9bfa]::panicking::panic_nounwind [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panicking.rs:225:5 [INFO] [stderr] 21: 0x60c230c695c7 - core[c1f1a4ba060b9bfa]::panicking::panic_cannot_unwind [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panicking.rs:337:5 [INFO] [stderr] 22: 0x60c230c1b721 - wasm_bindgen::__wbindgen_string_new::h5162e68227aee7b8 [INFO] [stderr] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wasm-bindgen-0.2.101/src/lib.rs:109:13 [INFO] [stderr] 23: 0x60c230c1b7ce - wasm_bindgen::JsValue::from_str::h465169ef5fe2b962 [INFO] [stderr] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wasm-bindgen-0.2.101/src/lib.rs:197:32 [INFO] [stderr] 24: 0x60c230c1b949 - >::from::hd0f5537dbab342a3 [INFO] [stderr] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wasm-bindgen-0.2.101/src/lib.rs:864:9 [INFO] [stderr] 25: 0x60c230c1b9b6 - >::into::hda8c324e89428640 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/convert/mod.rs:778:9 [INFO] [stderr] 26: 0x60c230bd8865 - payoff_diagram_web::engine::payoff_engine::PayoffEngine::calculate_max_profit::h5fa3ab4917f5848e [INFO] [stderr] at /opt/rustwide/workdir/src/engine/payoff_engine.rs:111:84 [INFO] [stderr] 27: 0x60c230bd3f8a - payoff_diagram_web::engine::portfolio_engine::PortfolioEngine::analyze_portfolio::h61f147ccc5dbb5f7 [INFO] [stderr] at /opt/rustwide/workdir/src/engine/portfolio_engine.rs:30:13 [INFO] [stderr] 28: 0x60c230bd951f - payoff_diagram_web::engine::portfolio_engine::tests::test_portfolio_analysis::hbec24ab134449afc [INFO] [stderr] at /opt/rustwide/workdir/src/engine/portfolio_engine.rs:138:23 [INFO] [stderr] 29: 0x60c230bd9697 - payoff_diagram_web::engine::portfolio_engine::tests::test_portfolio_analysis::{{closure}}::h0df3636dafb5079f [INFO] [stderr] at /opt/rustwide/workdir/src/engine/portfolio_engine.rs:133:33 [INFO] [stderr] 30: 0x60c230bd6276 - core::ops::function::FnOnce::call_once::hfafa9db84b789dad [INFO] [stdout] [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ops/function.rs:250:5 [INFO] [stdout] thread 'engine::portfolio_engine::tests::test_portfolio_analysis' (20) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wasm-bindgen-0.2.101/src/lib.rs:1098:1: [INFO] [stderr] 31: 0x60c230bdcc3b - core[c1f1a4ba060b9bfa]::result::Result<(), alloc[fdfd2bd8633a6659]::string::String> as core[c1f1a4ba060b9bfa]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] function not implemented on non-wasm32 targets [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ops/function.rs:250:5 [INFO] [stdout] stack backtrace: [INFO] [stderr] 32: 0x60c230bdcc3b - test[273d7611820c9051]::__rust_begin_short_backtrace::, fn() -> core[c1f1a4ba060b9bfa]::result::Result<(), alloc[fdfd2bd8633a6659]::string::String>> [INFO] [stdout] 0: 0x60c230c54d9a - std[e28293b1aa0f68bd]::backtrace_rs::backtrace::libunwind::trace [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:663:18 [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stderr] 33: 0x60c230be962b - test[273d7611820c9051]::run_test_in_process::{closure#0} [INFO] [stdout] 1: 0x60c230c54d9a - std[e28293b1aa0f68bd]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:686:74 [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stderr] 34: 0x60c230be962b - as core[c1f1a4ba060b9bfa]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] 2: 0x60c230c54d9a - std[e28293b1aa0f68bd]::sys::backtrace::_print_fmt [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:74:9 [INFO] [stderr] 35: 0x60c230be962b - std[e28293b1aa0f68bd]::panicking::catch_unwind::do_call::, core[c1f1a4ba060b9bfa]::result::Result<(), alloc[fdfd2bd8633a6659]::string::String>> [INFO] [stdout] 3: 0x60c230c54d9a - <::print::DisplayBacktrace as core[c1f1a4ba060b9bfa]::fmt::Display>::fmt [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:581:40 [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:44:26 [INFO] [stderr] 36: 0x60c230be962b - std[e28293b1aa0f68bd]::panicking::catch_unwind::, core[c1f1a4ba060b9bfa]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] 4: 0x60c230c68e2a - ::fmt [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:544:19 [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/fmt/rt.rs:152:76 [INFO] [stderr] 37: 0x60c230be962b - std[e28293b1aa0f68bd]::panic::catch_unwind::, core[c1f1a4ba060b9bfa]::result::Result<(), alloc[fdfd2bd8633a6659]::string::String>> [INFO] [stdout] 5: 0x60c230c68e2a - core[c1f1a4ba060b9bfa]::fmt::write [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panic.rs:359:14 [INFO] [stdout] 6: 0x60c230c59622 - std[e28293b1aa0f68bd]::io::default_write_fmt::> [INFO] [stderr] 38: 0x60c230be962b - test[273d7611820c9051]::run_test_in_process [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/io/mod.rs:639:11 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:686:27 [INFO] [stdout] 7: 0x60c230c59622 - as std[e28293b1aa0f68bd]::io::Write>::write_fmt [INFO] [stderr] 39: 0x60c230be962b - test[273d7611820c9051]::run_test::{closure#0} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/io/mod.rs:1994:13 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:607:43 [INFO] [stdout] 8: 0x60c230c33faf - ::print [INFO] [stderr] 40: 0x60c230be4d44 - test[273d7611820c9051]::run_test::{closure#1} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:47:9 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:637:41 [INFO] [stdout] 9: 0x60c230c33faf - std[e28293b1aa0f68bd]::panicking::default_hook::{closure#0} [INFO] [stderr] 41: 0x60c230be4d44 - std[e28293b1aa0f68bd]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:292:27 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 10: 0x60c230c4d309 - std[e28293b1aa0f68bd]::panicking::default_hook [INFO] [stderr] 42: 0x60c230bec232 - std[e28293b1aa0f68bd]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:316:9 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 11: 0x60c230be8b5c - core[c1f1a4ba060b9bfa]::ops::function::Fn<(&'a std[e28293b1aa0f68bd]::panic::PanicHookInfo<'b>,), Output = ()> + core[c1f1a4ba060b9bfa]::marker::Sync + core[c1f1a4ba060b9bfa]::marker::Send> as core[c1f1a4ba060b9bfa]::ops::function::Fn<(&std[e28293b1aa0f68bd]::panic::PanicHookInfo,)>>::call [INFO] [stderr] 43: 0x60c230bec232 - ::{closure#1}::{closure#0}> as core[c1f1a4ba060b9bfa]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/alloc/src/boxed.rs:2254:9 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 12: 0x60c230be8b5c - test[273d7611820c9051]::test_main_with_exit_callback::::{closure#0} [INFO] [stderr] 44: 0x60c230bec232 - std[e28293b1aa0f68bd]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:145:21 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:581:40 [INFO] [stdout] 13: 0x60c230c4d4c2 - core[c1f1a4ba060b9bfa]::ops::function::Fn<(&'a std[e28293b1aa0f68bd]::panic::PanicHookInfo<'b>,), Output = ()> + core[c1f1a4ba060b9bfa]::marker::Sync + core[c1f1a4ba060b9bfa]::marker::Send> as core[c1f1a4ba060b9bfa]::ops::function::Fn<(&std[e28293b1aa0f68bd]::panic::PanicHookInfo,)>>::call [INFO] [stderr] 45: 0x60c230bec232 - std[e28293b1aa0f68bd]::panicking::catch_unwind::<(), core[c1f1a4ba060b9bfa]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/alloc/src/boxed.rs:2254:9 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:544:19 [INFO] [stdout] 14: 0x60c230c4d4c2 - std[e28293b1aa0f68bd]::panicking::panic_with_hook [INFO] [stderr] 46: 0x60c230bec232 - std[e28293b1aa0f68bd]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:833:13 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panic.rs:359:14 [INFO] [stdout] 15: 0x60c230c3409a - std[e28293b1aa0f68bd]::panicking::panic_handler::{closure#0} [INFO] [stderr] 47: 0x60c230bec232 - std[e28293b1aa0f68bd]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:691:13 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 16: 0x60c230c2ba09 - std[e28293b1aa0f68bd]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stderr] 48: 0x60c230bec232 - ::{closure#1} as core[c1f1a4ba060b9bfa]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:182:18 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 17: 0x60c230c34d7d - __rustc[b7974e8690430dd9]::rust_begin_unwind [INFO] [stderr] 49: 0x60c230c546af - + core[c1f1a4ba060b9bfa]::marker::Send> as core[c1f1a4ba060b9bfa]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:689:5 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 18: 0x60c230c6969c - core[c1f1a4ba060b9bfa]::panicking::panic_fmt [INFO] [stderr] 50: 0x60c230c546af - ::new::thread_start [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panicking.rs:80:14 [INFO] [stderr] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 19: 0x60c230c1b73b - wasm_bindgen::__wbindgen_string_new::h5162e68227aee7b8 [INFO] [stderr] 51: 0x7e98e388caa4 - [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wasm-bindgen-0.2.101/src/lib.rs:110:17 [INFO] [stderr] 52: 0x7e98e3919a64 - clone [INFO] [stdout] 20: 0x60c230c1b7ce - wasm_bindgen::JsValue::from_str::h465169ef5fe2b962 [INFO] [stderr] 53: 0x0 - [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wasm-bindgen-0.2.101/src/lib.rs:197:32 [INFO] [stderr] thread caused non-unwinding panic. aborting. [INFO] [stdout] 21: 0x60c230c1b949 - >::from::hd0f5537dbab342a3 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wasm-bindgen-0.2.101/src/lib.rs:864:9 [INFO] [stdout] 22: 0x60c230c1b9b6 - >::into::hda8c324e89428640 [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/convert/mod.rs:778:9 [INFO] [stdout] 23: 0x60c230bd8865 - payoff_diagram_web::engine::payoff_engine::PayoffEngine::calculate_max_profit::h5fa3ab4917f5848e [INFO] [stdout] at /opt/rustwide/workdir/src/engine/payoff_engine.rs:111:84 [INFO] [stdout] 24: 0x60c230bd3f8a - payoff_diagram_web::engine::portfolio_engine::PortfolioEngine::analyze_portfolio::h61f147ccc5dbb5f7 [INFO] [stdout] at /opt/rustwide/workdir/src/engine/portfolio_engine.rs:30:13 [INFO] [stdout] 25: 0x60c230bd951f - payoff_diagram_web::engine::portfolio_engine::tests::test_portfolio_analysis::hbec24ab134449afc [INFO] [stdout] at /opt/rustwide/workdir/src/engine/portfolio_engine.rs:138:23 [INFO] [stdout] 26: 0x60c230bd9697 - payoff_diagram_web::engine::portfolio_engine::tests::test_portfolio_analysis::{{closure}}::h0df3636dafb5079f [INFO] [stdout] at /opt/rustwide/workdir/src/engine/portfolio_engine.rs:133:33 [INFO] [stdout] 27: 0x60c230bd6276 - core::ops::function::FnOnce::call_once::hfafa9db84b789dad [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 28: 0x60c230bdcc3b - core[c1f1a4ba060b9bfa]::result::Result<(), alloc[fdfd2bd8633a6659]::string::String> as core[c1f1a4ba060b9bfa]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 29: 0x60c230bdcc3b - test[273d7611820c9051]::__rust_begin_short_backtrace::, fn() -> core[c1f1a4ba060b9bfa]::result::Result<(), alloc[fdfd2bd8633a6659]::string::String>> [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:663:18 [INFO] [stdout] 30: 0x60c230be962b - test[273d7611820c9051]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:686:74 [INFO] [stdout] 31: 0x60c230be962b - as core[c1f1a4ba060b9bfa]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 32: 0x60c230be962b - std[e28293b1aa0f68bd]::panicking::catch_unwind::do_call::, core[c1f1a4ba060b9bfa]::result::Result<(), alloc[fdfd2bd8633a6659]::string::String>> [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:581:40 [INFO] [stdout] 33: 0x60c230be962b - std[e28293b1aa0f68bd]::panicking::catch_unwind::, core[c1f1a4ba060b9bfa]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:544:19 [INFO] [stdout] 34: 0x60c230be962b - std[e28293b1aa0f68bd]::panic::catch_unwind::, core[c1f1a4ba060b9bfa]::result::Result<(), alloc[fdfd2bd8633a6659]::string::String>> [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x60c230be962b - test[273d7611820c9051]::run_test_in_process [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:686:27 [INFO] [stdout] 36: 0x60c230be962b - test[273d7611820c9051]::run_test::{closure#0} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:607:43 [INFO] [stdout] 37: 0x60c230be4d44 - test[273d7611820c9051]::run_test::{closure#1} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/test/src/lib.rs:637:41 [INFO] [stdout] 38: 0x60c230be4d44 - std[e28293b1aa0f68bd]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 39: 0x60c230bec232 - std[e28293b1aa0f68bd]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 40: 0x60c230bec232 - ::{closure#1}::{closure#0}> as core[c1f1a4ba060b9bfa]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 41: 0x60c230bec232 - std[e28293b1aa0f68bd]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:581:40 [INFO] [stdout] 42: 0x60c230bec232 - std[e28293b1aa0f68bd]::panicking::catch_unwind::<(), core[c1f1a4ba060b9bfa]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:544:19 [INFO] [stdout] 43: 0x60c230bec232 - std[e28293b1aa0f68bd]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panic.rs:359:14 [INFO] [stdout] 44: 0x60c230bec232 - std[e28293b1aa0f68bd]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 45: 0x60c230bec232 - ::{closure#1} as core[c1f1a4ba060b9bfa]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 46: 0x60c230c546af - + core[c1f1a4ba060b9bfa]::marker::Send> as core[c1f1a4ba060b9bfa]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 47: 0x60c230c546af - ::new::thread_start [INFO] [stdout] at /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 48: 0x7e98e388caa4 - [INFO] [stdout] 49: 0x7e98e3919a64 - clone [INFO] [stdout] 50: 0x0 - [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/target/debug/deps/payoff_diagram_web-fe18049537443952` (signal: 6, SIGABRT: process abort signal) [INFO] running `Command { std: "docker" "inspect" "dd97cc74de992046de08ada745f0fe1fcb746d516b6b3c8fd1fb91d923aea8a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd97cc74de992046de08ada745f0fe1fcb746d516b6b3c8fd1fb91d923aea8a6", kill_on_drop: false }` [INFO] [stdout] dd97cc74de992046de08ada745f0fe1fcb746d516b6b3c8fd1fb91d923aea8a6