1
0
mirror of https://github.com/scoobybejesus/cryptools.git synced 2025-01-18 11:20:14 +00:00

Removed unneeded muts. Resolves #30.

This commit is contained in:
scoobybejesus 2019-08-30 18:29:47 -04:00
parent 4212c94170
commit 5b2bd175c4

View File

@ -92,8 +92,8 @@ pub fn create_lots_and_movements(
acct_balances_are_zero = true
}
let mut base_lot: Rc<Lot>;
let mut quote_lot: Rc<Lot>;
let base_lot: Rc<Lot>;
let quote_lot: Rc<Lot>;
if acct_balances_are_zero {
base_lot =
@ -349,7 +349,7 @@ pub fn create_lots_and_movements(
// txn.tx_number, txn.transaction_type(), ar.amount, acct.ticker);
match tx_type {
TxType::Flow => {
let mut lot: Rc<Lot>;
let lot: Rc<Lot>;
if raw_acct.is_margin {
let this_acct = acct_map.get(&ar.account_key).unwrap();
let lot_list = this_acct.list_of_lots.borrow_mut();