Skip to content

Commit 0a6b816

Browse files
committed
fix clippy
1 parent b23a803 commit 0a6b816

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/lean_compiler/src/a_simplify_lang.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,9 +1161,9 @@ fn make_non_exhaustive_exhaustive(lines: &mut Vec<Line>) {
11611161
// Only look for direct returns, not nested ones
11621162
fn has_direct_return(lines: &[Line]) -> bool {
11631163
for line in lines {
1164-
match line {
1165-
Line::FunctionRet { .. } => return true,
1166-
_ => {} // Don't recurse into nested structures
1164+
// Don't recurse into nested structures
1165+
if let Line::FunctionRet { .. } = line {
1166+
return true;
11671167
}
11681168
}
11691169
false

0 commit comments

Comments
 (0)