Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brockelmore committed Dec 22, 2023
1 parent 0d42551 commit c687003
Show file tree
Hide file tree
Showing 5 changed files with 169 additions and 170 deletions.
10 changes: 1 addition & 9 deletions crates/graph/src/nodes/context/node.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
use crate::elem::Elem;
use crate::nodes::ExprRet;
use crate::range::elem::RangeElem;
use crate::range::Range;
use crate::ContextEdge;
use crate::Edge;
use crate::VarType;
use crate::{
nodes::{Context, ContextVarNode, FunctionNode, FunctionParamNode, KilledKind},
nodes::{Context, ContextVarNode, KilledKind},
AnalyzerBackend, AsDotStr, GraphBackend, GraphError, Node,
};

use shared::NodeIdx;

use solang_parser::pt::Loc;
use std::collections::BTreeMap;

#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
/// A wrapper of a node index that corresponds to a [`Context`]
Expand Down
10 changes: 4 additions & 6 deletions crates/solc-expressions/src/func_call/func_caller.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//! Traits & blanket implementations that facilitate performing various forms of function calls.

use crate::{
func_call::join::FuncJoiner,
func_call::modifier::ModifierCaller, helper::CallerHelper, internal_call::InternalFuncCaller,
intrinsic_call::IntrinsicFuncCaller, namespaced_call::NameSpaceFuncCaller, ContextBuilder,
ExprErr, ExpressionParser, IntoExprErr, StatementParser,
func_call::join::FuncJoiner, func_call::modifier::ModifierCaller, helper::CallerHelper,
internal_call::InternalFuncCaller, intrinsic_call::IntrinsicFuncCaller,
namespaced_call::NameSpaceFuncCaller, ContextBuilder, ExprErr, ExpressionParser, IntoExprErr,
StatementParser,
};
use std::cell::RefCell;
use std::rc::Rc;
Expand Down Expand Up @@ -407,7 +406,6 @@ pub trait FuncCaller:
func_call_str: Option<&str>,
modifier_state: &Option<ModifierState>,
) -> Result<(), ExprErr> {

if !entry_call {
if let Ok(true) = self.join(ctx, loc, func_node, params, inputs) {
return Ok(());
Expand Down
Loading

0 comments on commit c687003

Please sign in to comment.