Skip to content

Commit

Permalink
Uncomment code
Browse files Browse the repository at this point in the history
This was commented while debugging and was missed to be uncommented afterwards.
  • Loading branch information
edif2008 committed Dec 23, 2024
1 parent c46fb3c commit 426db2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,11 +543,11 @@ fn parse_const_expr(e: &Expr) -> Result<RustConstExpr, ParseError> {
struct ExprLitVisitor(pub Option<Result<RustConstExpr, ParseError>>);
impl Visit<'_> for ExprLitVisitor {
fn visit_expr_lit(&mut self, el: &ExprLit) {
// if self.0.is_some() {
// // should we throw an error instead of silently ignoring a second literal?
// // or would this create false positives?
// return;
// }
if self.0.is_some() {
// should we throw an error instead of silently ignoring a second literal?
// or would this create false positives?
return;
}
let check_literal_type = || {
Ok(match &el.lit {
Lit::Int(lit_int) => {
Expand Down

0 comments on commit 426db2a

Please sign in to comment.