Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brockelmore committed Jul 10, 2024
1 parent 4ee72fa commit bf5aa5a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions crates/graph/src/solvers/dl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,10 @@ impl DLSolver {
added_atoms.push((*dyn_elem).clone());
self.graph_map.insert((*dyn_elem).clone(), idx);
if let Some(dep) = dep {
if !self.var_to_atom_idx.contains_key(&dep) {
self.var_to_atom_idx.entry(dep).or_insert_with(|| {
added_deps.push(dep);
self.var_to_atom_idx.insert(dep, idx);
}
idx
});
}
idx
};
Expand Down
4 changes: 2 additions & 2 deletions crates/pyrometer/src/graph_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,10 @@ pub fn arena_mermaid_node(
format!("{indent}{}{{{{\"{}\"}}}}", idx.index(), arena_idx)
}
ArenaNode::ELEM(label) => {
format!("{indent}{}(\"{}\")", idx.index(), label.replace("\"", "'"))
format!("{indent}{}(\"{}\")", idx.index(), label.replace('"', "'"))
}
ArenaNode::CVAR(label) => {
format!("{indent}{}(\"{}\")", idx.index(), label.replace("\"", "'"))
format!("{indent}{}(\"{}\")", idx.index(), label.replace('"', "'"))
}
};

Expand Down
6 changes: 3 additions & 3 deletions crates/solc-expressions/src/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ mod tests {
let func_node = analyzer.graph.add_node(Node::Function(func)).into();

let loc = Loc::File(0, 0, 0);
let ctx = Context::new(func_node, format!("{}", "test_fn"), loc);
let ctx_node = ContextNode::from(analyzer.graph.add_node(Node::Context(ctx)));
ctx_node
let ctx = Context::new(func_node, "test_fn".to_string(), loc);

ContextNode::from(analyzer.graph.add_node(Node::Context(ctx)))
}

fn test_number_literal(
Expand Down

0 comments on commit bf5aa5a

Please sign in to comment.