Skip to content

Commit 9eb380a

Browse files
committed
Formatting
1 parent 7f60378 commit 9eb380a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

primitives/src/targeting/eval.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
use crate::BigNum;
2+
use lazy_static::lazy_static;
23
use serde::{Deserialize, Serialize};
34
use serde_json::{value::Value as SerdeValue, Number};
45
use std::{
6+
collections::HashMap,
57
convert::TryFrom,
68
fmt,
79
ops::{Add, Div, Mul, Rem, Sub},
810
str::FromStr,
9-
collections::HashMap,
1011
};
11-
use lazy_static::lazy_static;
1212

1313
pub type Map = serde_json::value::Map<String, SerdeValue>;
1414

primitives/src/targeting/eval_test.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,9 +1316,11 @@ mod string_and_array {
13161316
};
13171317
for (key, value) in &*DEPOSIT_ASSETS_MAP {
13181318
input.global.channel.deposit_asset = key.to_string();
1319-
let amount_crypto = BigNum::from(100).mul(value);
1319+
let amount_crypto = BigNum::from(100).mul(value);
13201320
let amount_usd = Some(Value::BigNum(BigNum::from(100)));
1321-
let rule = Rule::Function(Function::new_get_price_in_usd(Rule::Value(Value::BigNum(amount_crypto))));
1321+
let rule = Rule::Function(Function::new_get_price_in_usd(Rule::Value(Value::BigNum(
1322+
amount_crypto,
1323+
))));
13221324
assert_eq!(Ok(amount_usd), rule.eval(&input, &mut output));
13231325
}
13241326
let amount_dai = BigNum::from_str("100000000000000000000").expect("Should create BigNum"); // 100 DAI

0 commit comments

Comments
 (0)