Fix clippy warnings

This commit is contained in:
Antoni Boucher 2025-03-27 14:34:44 -04:00
parent f9822772e8
commit 5cf2bbc4e2

View file

@ -251,6 +251,8 @@ pub fn conv_to_fn_attribute<'gcc>(conv: Conv, arch: &str) -> Option<FnAttribute<
Conv::PreserveMost => return None,
Conv::PreserveAll => return None,
Conv::GpuKernel => {
// TODO(antoyo): remove clippy allow attribute when this is implemented.
#[allow(clippy::if_same_then_else)]
if arch == "amdgpu" {
return None
} else if arch == "nvptx64" {