Skip to content

Commit 4d8337d

Browse files
committed
Clippy
1 parent 3dec407 commit 4d8337d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

naga/src/back/spv/ray.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ impl Writer {
933933
],
934934
);
935935

936-
let all_valid_id = self.write_reduce_and(
936+
self.write_reduce_and(
937937
&mut block,
938938
vec![
939939
tmin_le_tmax_id,
@@ -944,9 +944,7 @@ impl Writer {
944944
not_contain_skip_triangles_cull,
945945
not_contain_multiple_opaque,
946946
],
947-
);
948-
949-
all_valid_id
947+
)
950948
});
951949

952950
let merge_label_id = self.id_gen.next();

wgpu-types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7938,7 +7938,7 @@ pub struct ShaderRuntimeChecks {
79387938
/// - `rayQueryProceed` must have been called and have returned true before `rayQueryTerminate`,
79397939
/// `getCandidateHitVertexPositions` or `rayQueryGetCandidateIntersection` is called
79407940
/// - `rayQueryProceed` must have been called and have returned false before `rayQueryGetCommittedIntersection`
7941-
/// or `getCommittedHitVertexPositions` are called
7941+
/// or `getCommittedHitVertexPositions` are called
79427942
///
79437943
/// It is the aim that these cases will not cause UB if this is set to true, but currently this will still happen on DX12 and Metal.
79447944
pub ray_query_initialization_tracking: bool,

0 commit comments

Comments
 (0)