From 4ee72fa81c15d8f1c2d7487f39033b0f97211912 Mon Sep 17 00:00:00 2001 From: brock elmore Date: Wed, 10 Jul 2024 15:42:07 -0700 Subject: [PATCH] tiny lint --- crates/solc-expressions/src/literal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/solc-expressions/src/literal.rs b/crates/solc-expressions/src/literal.rs index 8d351936..97742856 100644 --- a/crates/solc-expressions/src/literal.rs +++ b/crates/solc-expressions/src/literal.rs @@ -1,6 +1,6 @@ use graph::{ elem::*, - nodes::{Builtin, Concrete, ConcreteNode, ContextNode, ContextVar, ContextVarNode, ExprRet}, + nodes::{Concrete, ConcreteNode, ContextNode, ContextVar, ContextVarNode, ExprRet}, AnalyzerBackend, ContextEdge, Edge, Node, }; use shared::{ExprErr, IntoExprErr, RangeArena}; @@ -97,7 +97,7 @@ pub trait Literal: AnalyzerBackend + Sized { ) -> Result<(), ExprErr> { let int = U256::from_dec_str(integer).map_err(|e| ExprErr::ParseError(loc, e.to_string()))?; - let mut exp = if !exponent.is_empty() { + let exp = if !exponent.is_empty() { U256::from_dec_str(exponent).map_err(|e| ExprErr::ParseError(loc, e.to_string()))? } else { U256::from(0)