[INFO] cloning repository https://github.com/ZCKun/option-process [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZCKun/option-process" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZCKun%2Foption-process", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZCKun%2Foption-process'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 50af242a62796c68b49b2b0e94a0c0fef1e03ed2 [INFO] checking ZCKun/option-process against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZCKun%2Foption-process" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZCKun/option-process on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ZCKun/option-process [INFO] finished tweaking git repo https://github.com/ZCKun/option-process [INFO] tweaked toml for git repo https://github.com/ZCKun/option-process written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/ZCKun/option-process already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lru v0.6.5 [INFO] [stderr] Downloaded derive_utils v0.11.2 [INFO] [stderr] Downloaded mysql_common v0.24.1 [INFO] [stderr] Downloaded lexical v5.2.2 [INFO] [stderr] Downloaded rust_decimal v1.12.2 [INFO] [stderr] Downloaded named_pipe v0.4.1 [INFO] [stderr] Downloaded nix v0.19.1 [INFO] [stderr] Downloaded mysql v20.1.0 [INFO] [stderr] Downloaded generic-array v0.13.3 [INFO] [stderr] Downloaded io-enum v0.2.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d20f30a63f271adb9d908c9f03df597e86fcd9eb6e4ac0e17591706d2d1564eb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d20f30a63f271adb9d908c9f03df597e86fcd9eb6e4ac0e17591706d2d1564eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d20f30a63f271adb9d908c9f03df597e86fcd9eb6e4ac0e17591706d2d1564eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d20f30a63f271adb9d908c9f03df597e86fcd9eb6e4ac0e17591706d2d1564eb", kill_on_drop: false }` [INFO] [stdout] d20f30a63f271adb9d908c9f03df597e86fcd9eb6e4ac0e17591706d2d1564eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d36ebc989a5a4be31f32eb16bcb2d2a7e2311d48d31ec5330fd819a467ca370 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4d36ebc989a5a4be31f32eb16bcb2d2a7e2311d48d31ec5330fd819a467ca370", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] standback v0.2.17 (as host dependency): std [INFO] [stderr] syn v1.0.70 (as host dependency): visit [INFO] [stderr] [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.70 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking regex-syntax v0.6.23 [INFO] [stderr] Compiling openssl v0.10.33 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Compiling mysql v20.1.0 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking bufstream v0.1.4 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Checking lru v0.6.5 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.26 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking generic-array v0.13.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling io-enum v0.2.6 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Compiling openssl-sys v0.9.61 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking flate2 v1.0.20 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking nix v0.19.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking regex v1.4.6 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking alga v0.9.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking lexical v5.2.2 [INFO] [stderr] Checking twox-hash v1.6.0 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking pem v0.8.3 [INFO] [stderr] Checking nalgebra v0.19.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking bigdecimal v0.1.2 [INFO] [stderr] Checking rust_decimal v1.12.2 [INFO] [stderr] Compiling derive_utils v0.11.2 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking mysql_common v0.24.1 [INFO] [stderr] Checking statrs v0.13.0 [INFO] [stderr] Checking option-process-rust v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (6 fixes) [INFO] [stderr] Fixed src/option_util.rs (1 fix) [INFO] [stdout] warning: function is never used: `get_d1` [INFO] [stdout] --> src/option_util.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_d1(s: f64, k: f64, t: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_d2` [INFO] [stdout] --> src/option_util.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn get_d2(t: f64, vol: f64, d1: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nd` [INFO] [stdout] --> src/option_util.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn nd(value: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `normal_cdf` [INFO] [stdout] --> src/option_util.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn normal_cdf(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `black_scholes_calc` [INFO] [stdout] --> src/option_util.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn black_scholes_calc(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `implied_volatility` [INFO] [stdout] --> src/option_util.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn implied_volatility(s: f64, k: f64, t: f64, r: f64, b: f64, target: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn delta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn gamma(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn vega(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn theta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, target: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn rho(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `effective_time_etf` [INFO] [stdout] --> src/option_util.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn effective_time_etf(t: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionUtil` [INFO] [stdout] --> src/option_util.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct OptionUtil { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_util.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn new(spot_price: f64, strike_price: f64, maturity_time: f64, risk_free_rate: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn delta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iv` [INFO] [stdout] --> src/option_util.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn iv(&self) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn gamma(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn vega(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn theta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn rho(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `round3` [INFO] [stdout] --> src/option_process.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn round3(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionProcess` [INFO] [stdout] --> src/option_process.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OptionProcess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_process.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process` [INFO] [stdout] --> src/option_process.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn process() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main2` [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn main2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_d1` [INFO] [stdout] --> src/option_util.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_d1(s: f64, k: f64, t: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_d2` [INFO] [stdout] --> src/option_util.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn get_d2(t: f64, vol: f64, d1: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nd` [INFO] [stdout] --> src/option_util.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn nd(value: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `normal_cdf` [INFO] [stdout] --> src/option_util.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn normal_cdf(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `black_scholes_calc` [INFO] [stdout] --> src/option_util.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn black_scholes_calc(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `implied_volatility` [INFO] [stdout] --> src/option_util.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn implied_volatility(s: f64, k: f64, t: f64, r: f64, b: f64, target: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn delta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn gamma(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn vega(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn theta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, target: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn rho(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `effective_time_etf` [INFO] [stdout] --> src/option_util.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn effective_time_etf(t: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionUtil` [INFO] [stdout] --> src/option_util.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct OptionUtil { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_util.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn new(spot_price: f64, strike_price: f64, maturity_time: f64, risk_free_rate: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn delta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iv` [INFO] [stdout] --> src/option_util.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn iv(&self) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn gamma(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn vega(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn theta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn rho(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `round3` [INFO] [stdout] --> src/option_process.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn round3(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionProcess` [INFO] [stdout] --> src/option_process.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OptionProcess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_process.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process` [INFO] [stdout] --> src/option_process.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn process() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main2` [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn main2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 32s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Compiling syn v1.0.70 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling derive_utils v0.11.2 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling io-enum v0.2.6 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking time v0.2.26 [INFO] [stderr] Checking mysql_common v0.24.1 [INFO] [stderr] Checking mysql v20.1.0 [INFO] [stderr] Checking option-process-rust v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: function is never used: `get_d1` [INFO] [stdout] --> src/option_util.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_d1(s: f64, k: f64, t: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_d2` [INFO] [stdout] --> src/option_util.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn get_d2(t: f64, vol: f64, d1: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nd` [INFO] [stdout] --> src/option_util.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn nd(value: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `normal_cdf` [INFO] [stdout] --> src/option_util.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn normal_cdf(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `black_scholes_calc` [INFO] [stdout] --> src/option_util.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn black_scholes_calc(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `implied_volatility` [INFO] [stdout] --> src/option_util.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn implied_volatility(s: f64, k: f64, t: f64, r: f64, b: f64, target: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn delta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn gamma(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn vega(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn theta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, target: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn rho(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `effective_time_etf` [INFO] [stdout] --> src/option_util.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn effective_time_etf(t: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionUtil` [INFO] [stdout] --> src/option_util.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct OptionUtil { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_util.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn new(spot_price: f64, strike_price: f64, maturity_time: f64, risk_free_rate: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn delta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iv` [INFO] [stdout] --> src/option_util.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn iv(&self) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn gamma(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn vega(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn theta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn rho(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `round3` [INFO] [stdout] --> src/option_process.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn round3(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionProcess` [INFO] [stdout] --> src/option_process.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OptionProcess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_process.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process` [INFO] [stdout] --> src/option_process.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn process() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main2` [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn main2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_d1` [INFO] [stdout] --> src/option_util.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_d1(s: f64, k: f64, t: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_d2` [INFO] [stdout] --> src/option_util.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn get_d2(t: f64, vol: f64, d1: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nd` [INFO] [stdout] --> src/option_util.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn nd(value: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `normal_cdf` [INFO] [stdout] --> src/option_util.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn normal_cdf(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `black_scholes_calc` [INFO] [stdout] --> src/option_util.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn black_scholes_calc(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `implied_volatility` [INFO] [stdout] --> src/option_util.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn implied_volatility(s: f64, k: f64, t: f64, r: f64, b: f64, target: f64, call_put: char) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn delta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn gamma(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn vega(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn theta(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, target: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn rho(s: f64, k: f64, t: f64, r: f64, b: f64, vol: f64, cp: char) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `effective_time_etf` [INFO] [stdout] --> src/option_util.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn effective_time_etf(t: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionUtil` [INFO] [stdout] --> src/option_util.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct OptionUtil { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_util.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn new(spot_price: f64, strike_price: f64, maturity_time: f64, risk_free_rate: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delta` [INFO] [stdout] --> src/option_util.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn delta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iv` [INFO] [stdout] --> src/option_util.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn iv(&self) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gamma` [INFO] [stdout] --> src/option_util.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn gamma(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vega` [INFO] [stdout] --> src/option_util.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn vega(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `theta` [INFO] [stdout] --> src/option_util.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn theta(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rho` [INFO] [stdout] --> src/option_util.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn rho(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `round3` [INFO] [stdout] --> src/option_process.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn round3(value: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OptionProcess` [INFO] [stdout] --> src/option_process.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OptionProcess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/option_process.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process` [INFO] [stdout] --> src/option_process.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn process() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main2` [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn main2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 28.10s [INFO] running `Command { std: "docker" "inspect" "4d36ebc989a5a4be31f32eb16bcb2d2a7e2311d48d31ec5330fd819a467ca370", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d36ebc989a5a4be31f32eb16bcb2d2a7e2311d48d31ec5330fd819a467ca370", kill_on_drop: false }` [INFO] [stdout] 4d36ebc989a5a4be31f32eb16bcb2d2a7e2311d48d31ec5330fd819a467ca370