We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d11d65 commit 4106f2eCopy full SHA for 4106f2e
primitives/src/targeting/eval.rs
@@ -58,8 +58,8 @@ impl TryFrom<SerdeValue> for Value {
58
match serde_value {
59
SerdeValue::Bool(bool) => Ok(Self::Bool(bool)),
60
SerdeValue::Number(number) => Ok(Self::Number(number)),
61
- // String can be either a String or a BigNum
62
- // but we handle this case by using Type casting with the Function::Bn
+ // It's impossible to have a BigNumber literal in the rules, since they're JSON based (conform to serde_json::value::Value)
+ // However it is possible to obtain a BigNumber by invoking the Function::Bn
63
SerdeValue::String(string) => Ok(Value::String(string)),
64
SerdeValue::Array(serde_array) => {
65
let array = serde_array
0 commit comments