mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
rust 1.64 + clippy
This commit is contained in:
parent
5d43d732cd
commit
38ea090c3e
3 changed files with 37 additions and 24 deletions
|
@ -2358,15 +2358,11 @@ impl<'a> Stmt<'a> {
|
|||
pub fn is_terminal(&self) -> bool {
|
||||
use Stmt::*;
|
||||
|
||||
match self {
|
||||
Switch { .. } => {
|
||||
// TODO is this the reason Lean only looks at the outermost `when`?
|
||||
true
|
||||
}
|
||||
Ret(_) => true,
|
||||
Jump(_, _) => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(
|
||||
self,
|
||||
Switch { .. } | Ret(_) | Jump(_, _)
|
||||
// TODO for Switch; is this the reason Lean only looks at the outermost `when`?
|
||||
)
|
||||
}
|
||||
|
||||
pub fn if_then_else(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue