Skip to content

Commit 885a006

Browse files
committed
fix: suggestions from code review
1 parent 3362463 commit 885a006

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

libs/@local/hashql/mir/src/pass/execution/storage/entity.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,7 @@ fn resolve(projections: &[Projection<'_>]) -> Option<(EntityPath, usize)> {
192192
return Some(($cond, index));
193193
}
194194

195-
let Some(value) = next!() else {
196-
return None;
197-
};
198-
199-
value
195+
next!()?
200196
}};
201197
}
202198

libs/@local/hashql/mir/src/pass/execution/vertex.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use hashql_core::{
2+
debug_panic,
23
symbol::sym,
34
r#type::{
45
TypeId,
@@ -20,7 +21,7 @@ fn peel<'heap>(
2021
// occur here is if apply and generic substitutions are the only members in a cycle, haven't
2122
// been resolved and simplified away. Which should've created a type error earlier anyway.
2223
if depth > 32 {
23-
// debug_panic!("maximum opaque type recursion depth exceeded");
24+
debug_panic!("maximum opaque type recursion depth exceeded");
2425

2526
return None;
2627
}

0 commit comments

Comments
 (0)