mirror of https://github.com/encounter/nod-rs.git
Bump MSRV all the way to Rust 1.51 (thanks libraries)
This commit is contained in:
parent
e7fc234fdf
commit
d7279f50de
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue