Skip to content

Commit 1930c41

Browse files
committed
Fix clippy warnings
1 parent 7351115 commit 1930c41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/abi.rs

+2
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ pub fn conv_to_fn_attribute<'gcc>(conv: Conv, arch: &str) -> Option<FnAttribute<
251251
Conv::PreserveMost => return None,
252252
Conv::PreserveAll => return None,
253253
Conv::GpuKernel => {
254+
// TODO(antoyo): remove clippy allow attribute when this is implemented.
255+
#[allow(clippy::if_same_then_else)]
254256
if arch == "amdgpu" {
255257
return None;
256258
} else if arch == "nvptx64" {

0 commit comments

Comments
 (0)