Skip to content

Commit

Permalink
chore: clippy fixes (#7505)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Feb 24, 2025
1 parent 8b1e50a commit 3bc52e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ impl DependencyContext {
function.dfg[block].instructions().iter().for_each(|instruction| {
if let Instruction::Call { func, arguments } = &function.dfg[*instruction] {
if let Value::Function(callee) = &function.dfg[*func] {
if all_functions[&callee].runtime().is_brillig() {
if all_functions[callee].runtime().is_brillig() {
// Skip already visited locations (happens often in unrolled functions)
let call_stack = function.dfg.get_instruction_call_stack(*instruction);
let location = call_stack.last();
Expand Down
7 changes: 2 additions & 5 deletions tooling/lsp/src/modules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,12 @@ pub(crate) fn module_def_id_relative_path(
interner,
)
} else {
let Some(module_full_path) = relative_module_full_path(
relative_module_full_path(
module_def_id,
current_module_id,
current_module_parent_id,
interner,
) else {
return None;
};
module_full_path
)?
};

let path = if defining_module.is_some() || !matches!(module_def_id, ModuleDefId::ModuleId(..)) {
Expand Down

0 comments on commit 3bc52e4

Please sign in to comment.