mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-23 09:28:05 +00:00
fix: resolve all remaining clippy warnings in examples and benchmarks including unused imports, variables, empty println statements, and enum naming conventions
This commit is contained in:
+1
-1
@@ -322,7 +322,7 @@ impl MockMarketData {
|
||||
|
||||
// Generate random price movement
|
||||
let random_factor = Decimal::from(rand::random::<i64>() % 100 - 50) / Decimal::from(100);
|
||||
let volatility_f64 = self.volatility.to_f64().unwrap_or(0.01);
|
||||
let _volatility_f64 = self.volatility.to_f64().unwrap_or(0.01);
|
||||
let price_change = random_factor * Decimal::from(2) * self.volatility;
|
||||
let new_price = self.base_price * (Decimal::from(1) + price_change);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user