mirror of https://github.com/tracel-ai/burn.git
allow collapsible else if in test
This commit is contained in:
parent
8e829da1b6
commit
1d05a19406
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue