allow collapsible else if in test

This commit is contained in:
louisfd 2024-07-03 16:21:38 -04:00
parent 8e829da1b6
commit 1d05a19406
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ pub fn comptime_if_else<T: Numeric>(lhs: T, cond: Comptime<bool>) {
}
#[cube]
#[allow(clippy::collapsible_else_if)]
pub fn comptime_else_then_if<T: Numeric>(lhs: T, cond1: Comptime<bool>, cond2: Comptime<bool>) {
if Comptime::get(cond1) {
let _ = lhs + T::from_int(4);