From 5b79cca384ad9834f56bd7ecf164210deded054b Mon Sep 17 00:00:00 2001 From: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com> Date: Fri, 18 Nov 2022 17:29:49 +0100 Subject: [PATCH] bump MSRV to 1.63 (#2129) --- .github/workflows/pipeline.yml | 2 +- Cargo.toml | 2 +- README.md | 2 +- src/front/wgsl/number.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 46c427ee0f..512571327b 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -11,7 +11,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: "1.56.0" + toolchain: "1.63.0" override: true - uses: taiki-e/install-action@cargo-hack - uses: taiki-e/install-action@cargo-minimal-versions diff --git a/Cargo.toml b/Cargo.toml index c9f589421e..40e8106d61 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["shader", "SPIR-V", "GLSL", "MSL"] license = "MIT OR Apache-2.0" exclude = ["bin/**/*", "tests/**/*", "Cargo.lock", "target/**/*"] resolver = "2" -rust-version = "1.56" +rust-version = "1.63" [package.metadata.docs.rs] all-features = true diff --git a/README.md b/README.md index 1e407a959e..0de0cd61bb 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Crates.io](https://img.shields.io/crates/v/naga.svg?label=naga)](https://crates.io/crates/naga) [![Docs.rs](https://docs.rs/naga/badge.svg)](https://docs.rs/naga) [![Build Status](https://github.com/gfx-rs/naga/workflows/pipeline/badge.svg)](https://github.com/gfx-rs/naga/actions) -![MSRV](https://img.shields.io/badge/rustc-1.56+-blue.svg) +![MSRV](https://img.shields.io/badge/rustc-1.63+-blue.svg) [![codecov.io](https://codecov.io/gh/gfx-rs/naga/branch/master/graph/badge.svg?token=9VOKYO8BM2)](https://codecov.io/gh/gfx-rs/naga) The shader translation library for the needs of [wgpu](https://github.com/gfx-rs/wgpu). diff --git a/src/front/wgsl/number.rs b/src/front/wgsl/number.rs index fafe1d2270..6c3d93c398 100644 --- a/src/front/wgsl/number.rs +++ b/src/front/wgsl/number.rs @@ -397,13 +397,13 @@ fn parse_dec_float(input: &str, kind: Option) -> Result { let num = input.parse::().unwrap(); // will never fail num.is_finite() - .then(|| Number::AbstractFloat(num)) + .then_some(Number::AbstractFloat(num)) .ok_or(NumberError::NotRepresentable) } Some(FloatKind::F32) => { let num = input.parse::().unwrap(); // will never fail num.is_finite() - .then(|| Number::F32(num)) + .then_some(Number::F32(num)) .ok_or(NumberError::NotRepresentable) } Some(FloatKind::F16) => Err(NumberError::UnimplementedF16),