Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: MSRV

on: push

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run check
run: |
# extract the MSRV
MSRV=$(grep '^rust-version ' Cargo.toml | cut -d= -f2- | tr -d ' "')
# enable the MSRV
rustup default "${MSRV}"
cargo check --all-features --all-targets
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ authors = [
description = "Evolution Kernel Operators"
readme = "README.md"
categories = ["science"]
edition = "2021"
edition = "2024"
keywords = ["physics"]
license = "GPL-3.0-or-later"
repository = "https://github.com/NNPDF/eko"
rust-version = "1.70.0"
rust-version = "1.85.0"
version = "0.0.1"
2 changes: 1 addition & 1 deletion crates/dekoder/src/eko.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Utilities for reading and writing an eko output.
use std::fs::remove_dir_all;
use std::fs::File;
use std::fs::remove_dir_all;
use std::io::BufWriter;
use std::path::PathBuf;
use yaml_rust2::Yaml;
Expand Down
4 changes: 2 additions & 2 deletions crates/dekoder/src/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use lz4_flex::frame::FrameDecoder;
use ndarray_npy::NpzReader;
use std::collections::HashMap;
use std::ffi::OsString;
use std::fs::{read_dir, read_to_string, File};
use std::fs::{File, read_dir, read_to_string};
use std::io::{Cursor, Read};
use std::path::PathBuf;
use yaml_rust2::{Yaml, YamlLoader};
Expand Down Expand Up @@ -35,7 +35,7 @@ impl<K: Eq + for<'a> TryFrom<&'a Yaml, Error = EKOError>> Inventory<K> {
for entry in read_dir(&self.path)? {
// is header file?
let entry = entry?.path();
if !entry.extension().is_some_and(|ext| ext == HEADER_EXT) {
if entry.extension().is_none_or(|ext| ext != HEADER_EXT) {
continue;
}
// read
Expand Down
2 changes: 1 addition & 1 deletion crates/dekoder/tests/test_load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use assert_fs::prelude::*;
use predicates::prelude::*;
use std::path::PathBuf;

use dekoder::eko::{EvolutionPoint, EKO};
use dekoder::eko::{EKO, EvolutionPoint};

// assert_fs will clean up the directories for us,
// so for the most part we don't need worry about that.
Expand Down
Loading
Loading