Skip to content

Commit 3bc52e4

Browse files
authored
chore: clippy fixes (#7505)
1 parent 8b1e50a commit 3bc52e4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

compiler/noirc_evaluator/src/ssa/checks/check_for_underconstrained_values.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ impl DependencyContext {
327327
function.dfg[block].instructions().iter().for_each(|instruction| {
328328
if let Instruction::Call { func, arguments } = &function.dfg[*instruction] {
329329
if let Value::Function(callee) = &function.dfg[*func] {
330-
if all_functions[&callee].runtime().is_brillig() {
330+
if all_functions[callee].runtime().is_brillig() {
331331
// Skip already visited locations (happens often in unrolled functions)
332332
let call_stack = function.dfg.get_instruction_call_stack(*instruction);
333333
let location = call_stack.last();

tooling/lsp/src/modules.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,12 @@ pub(crate) fn module_def_id_relative_path(
248248
interner,
249249
)
250250
} else {
251-
let Some(module_full_path) = relative_module_full_path(
251+
relative_module_full_path(
252252
module_def_id,
253253
current_module_id,
254254
current_module_parent_id,
255255
interner,
256-
) else {
257-
return None;
258-
};
259-
module_full_path
256+
)?
260257
};
261258

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

0 commit comments

Comments
 (0)