aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-05-29 23:06:24 -0700
committerRose Hogenson <rosehogenson@posteo.net>2024-05-29 23:06:24 -0700
commit74f594d1ecd57973f2976067589a71fdfcedecbe (patch)
treed683af61d5bd172d26ba02fc23049ab40f2b2503 /src/parser.rs
parent545e25efbf022ee76775b9d97bb1267edf0b03bf (diff)
downloadqc-74f594d1ecd57973f2976067589a71fdfcedecbe.tar.zst
Get rid of BigInt.
Too much trouble, tbh. Who needs more than 64 bits anyway?
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 2b33e0f..c0f3a9b 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -1,7 +1,6 @@
use crate::eval;
use crate::eval::Num;
use crate::lexer::Lexer;
-use num::BigInt;
use std::str::FromStr;
enum Op {
@@ -58,7 +57,7 @@ impl<'a> Parser<'a> {
}
return Some(eval::float(f));
}
- let Ok(i) = BigInt::from_str(t) else {
+ let Ok(i) = i64::from_str(t) else {
return None;
};
if negative {