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 60c1505 commit 097b3bdCopy full SHA for 097b3bd
src/main.rs
@@ -133,7 +133,7 @@ impl Type {
133
}
134
135
Type::List(l) => l.len() as f64,
136
- Type::Error(_) => 0f64,
+ Type::Error(e) => e.parse().unwrap_or(0f64),
137
138
139
@@ -144,7 +144,7 @@ impl Type {
144
Type::Number(i) => *i != 0.0,
145
Type::Bool(b) => *b,
146
Type::List(l) => !l.is_empty(),
147
- Type::Error(_) => false,
+ Type::Error(e) => e.parse().unwrap_or(false),
148
149
150
0 commit comments