Remove clause guards.

Closes #886.
This commit is contained in:
KtorZ
2024-08-01 16:14:56 +02:00
committed by Kasey
parent b28d4a6e9f
commit bf5a406ffb
65 changed files with 170 additions and 1492 deletions

View File

@@ -26,9 +26,7 @@ test is_work_2() {
fn is_happy_hour(day: DayOfTheWeek, current_time: Int) {
when day is {
Monday | Sunday -> True
Tuesday | Wednesday | Thursday | Friday | Saturday if current_time > 18 ->
True
_ -> False
Tuesday | Wednesday | Thursday | Friday | Saturday -> current_time > 18
}
}