Bump MSRV all the way to Rust 1.51 (thanks libraries)

This commit is contained in:
Luke Street 2021-08-23 10:36:57 -04:00
parent e7fc234fdf
commit d7279f50de
3 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@ jobs:
strategy: strategy:
matrix: matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ] platform: [ ubuntu-latest, macos-latest, windows-latest ]
toolchain: [ stable, 1.35.0, nightly ] toolchain: [ stable, 1.51.0, nightly ]
fail-fast: false fail-fast: false
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:

View File

@ -1,4 +1,4 @@
# nod-rs [![Build Status]][actions] [![Latest Version]][crates.io] [![Api Rustdoc]][rustdoc] [![Rust](https://img.shields.io/badge/rust-1.35%2B-blue.svg?maxAge=3600)](https://github.com/eqrion/cbindgen) # nod-rs [![Build Status]][actions] [![Latest Version]][crates.io] [![Api Rustdoc]][rustdoc] [![Rust](https://img.shields.io/badge/rust-1.51%2B-blue.svg?maxAge=3600)](https://github.com/eqrion/cbindgen)
[Build Status]: https://github.com/encounter/nod-rs/workflows/build/badge.svg [Build Status]: https://github.com/encounter/nod-rs/workflows/build/badge.svg
[actions]: https://github.com/encounter/nod-rs/actions [actions]: https://github.com/encounter/nod-rs/actions

View File

@ -24,7 +24,9 @@ pub trait DiscIO {
#[inline(always)] #[inline(always)]
pub fn has_extension(filename: &Path, extension: &str) -> bool { pub fn has_extension(filename: &Path, extension: &str) -> bool {
if let Some(ext) = filename.extension() { if let Some(ext) = filename.extension() {
ext.eq_ignore_ascii_case(extension) // TODO use with Rust 1.53+
// ext.eq_ignore_ascii_case(extension)
ext.to_str().unwrap_or("").eq_ignore_ascii_case(extension)
} else { false } } else { false }
} }