mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-12-03 20:23:40 +00:00
fix msrv incompatibility
This commit is contained in:
parent
9dddfeec37
commit
800fc7471f
@ -3312,12 +3312,13 @@ impl Parser {
|
||||
.expressions
|
||||
.append(crate::Expression::Binary { op, left, right }, span.into())
|
||||
}
|
||||
(op @ Token::IncrementOperation | op @ Token::DecrementOperation, op_span) => {
|
||||
let op = match op {
|
||||
token @ (Token::IncrementOperation, _) | token @ (Token::DecrementOperation, _) => {
|
||||
let op = match token.0 {
|
||||
Token::IncrementOperation => Bo::Add,
|
||||
Token::DecrementOperation => Bo::Subtract,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
let op_span = token.1;
|
||||
|
||||
// prepare the typifier, but work around mutable borrowing...
|
||||
let _ = context.resolve_type(reference.handle)?;
|
||||
|
Loading…
Reference in New Issue
Block a user