Skip to content

Commit 08b1515

Browse files
committed
Added error handling
1 parent bb13922 commit 08b1515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/pyxel-engine/src/pyxel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub static TONES: LazyLock<shared_type!(Vec<SharedTone>)> = LazyLock::new(|| {
9393
1 => set_default_tone!(tone, DEFAULT_TONE_1),
9494
2 => set_default_tone!(tone, DEFAULT_TONE_2),
9595
3 => set_default_tone!(tone, DEFAULT_TONE_3),
96-
_ => {}
96+
_ => panic!(),
9797
}
9898
}
9999
}

0 commit comments

Comments
 (0)