Skip to content

Commit a19b076

Browse files
committed
clippy & fmt
1 parent 9084749 commit a19b076

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

naga/src/valid/function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ impl super::Validator {
10971097
let good = if let Some(&Ti::Atomic(ref scalar)) = pointer_base_ty {
10981098
// The Naga IR allows storing a scalar to an atomic.
10991099
*value_ty == Ti::Scalar(*scalar)
1100-
} else if let Some(Ti::RayQuery { .. }) = pointer_base_ty {
1100+
} else if let Some(&Ti::RayQuery { .. }) = pointer_base_ty {
11011101
return Err(FunctionError::RayQueryStore(pointer)
11021102
.with_span_context((
11031103
context.expressions.get_span(pointer),

naga/tests/naga/wgsl_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5660,4 +5660,4 @@ fn ray_query_store() {
56605660
}),
56615661
Capabilities::RAY_QUERY
56625662
}
5663-
}
5663+
}

0 commit comments

Comments
 (0)