Skip to content

Commit 612b670

Browse files
clippy: Fix semicolon_if_nothing_returned lints. (#362)
1 parent 427bccf commit 612b670

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ impl ErrorSinkRaw {
523523
native::WGPUDeviceLostReason_Destroyed,
524524
msg.as_ptr(),
525525
userdata,
526-
)
526+
);
527527
};
528528
}
529529
return;
@@ -1027,7 +1027,7 @@ pub unsafe extern "C" fn wgpuBufferMapAsync(
10271027

10281028
if let Err(cause) = gfx_select!(buffer_id => context.buffer_map_async(buffer_id, offset as u64 .. (offset + size) as u64, operation))
10291029
{
1030-
handle_error(context, error_sink, cause, "", None, "wgpuBufferMapAsync")
1030+
handle_error(context, error_sink, cause, "", None, "wgpuBufferMapAsync");
10311031
};
10321032
}
10331033

@@ -1039,7 +1039,7 @@ pub unsafe extern "C" fn wgpuBufferUnmap(buffer: native::WGPUBuffer) {
10391039
};
10401040

10411041
if let Err(cause) = gfx_select!(buffer_id => context.buffer_unmap(buffer_id)) {
1042-
handle_error(context, error_sink, cause, "", None, "wgpuBufferUnmap")
1042+
handle_error(context, error_sink, cause, "", None, "wgpuBufferUnmap");
10431043
}
10441044
}
10451045

@@ -1469,7 +1469,7 @@ pub unsafe extern "C" fn wgpuCommandEncoderPopDebugGroup(
14691469
"",
14701470
None,
14711471
"wgpuCommandEncoderPopDebugGroup",
1472-
)
1472+
);
14731473
}
14741474
}
14751475

@@ -1496,7 +1496,7 @@ pub unsafe extern "C" fn wgpuCommandEncoderPushDebugGroup(
14961496
"",
14971497
None,
14981498
"wgpuCommandEncoderPushDebugGroup",
1499-
)
1499+
);
15001500
}
15011501
}
15021502

@@ -1535,7 +1535,7 @@ pub unsafe extern "C" fn wgpuCommandEncoderResolveQuerySet(
15351535
"",
15361536
None,
15371537
"wgpuCommandEncoderResolveQuerySet",
1538-
)
1538+
);
15391539
}
15401540
}
15411541

@@ -1567,7 +1567,7 @@ pub unsafe extern "C" fn wgpuCommandEncoderWriteTimestamp(
15671567
"",
15681568
None,
15691569
"wgpuCommandEncoderWriteTimestamp",
1570-
)
1570+
);
15711571
}
15721572
}
15731573

@@ -1640,7 +1640,7 @@ pub unsafe extern "C" fn wgpuComputePassEncoderEnd(pass: native::WGPUComputePass
16401640
"encoder",
16411641
Some(Cow::Borrowed(&name)),
16421642
"wgpuComputePassEncoderEnd",
1643-
)
1643+
);
16441644
}
16451645
}
16461646

@@ -1753,7 +1753,7 @@ pub unsafe extern "C" fn wgpuComputePipelineGetBindGroupLayout(
17531753
"",
17541754
None,
17551755
"wgpuComputePipelineGetBindGroupLayout",
1756-
)
1756+
);
17571757
}
17581758

17591759
Arc::into_raw(Arc::new(WGPUBindGroupLayoutImpl {
@@ -3610,7 +3610,7 @@ pub unsafe extern "C" fn wgpuRenderPipelineGetBindGroupLayout(
36103610
"",
36113611
None,
36123612
"wgpuRenderPipelineGetBindGroupLayout",
3613-
)
3613+
);
36143614
}
36153615

36163616
Arc::into_raw(Arc::new(WGPUBindGroupLayoutImpl {

0 commit comments

Comments
 (0)