From 4f1adcc0b6550f182832613578f27476ea3d34b0 Mon Sep 17 00:00:00 2001 From: Willard Date: Fri, 3 May 2024 20:42:23 +0200 Subject: [PATCH] im not a smart man --- .github/workflows/coverage.yml | 2 +- tests/test-data-setup/src/main.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5f8a9c9..22cd25c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -36,7 +36,7 @@ jobs: ${{ runner.os }}-lfs- - name: ls checkout - run: ls tests + run: ls tests/test-data - uses: dtolnay/rust-toolchain@stable with: diff --git a/tests/test-data-setup/src/main.rs b/tests/test-data-setup/src/main.rs index de3670a..8ee2e5e 100644 --- a/tests/test-data-setup/src/main.rs +++ b/tests/test-data-setup/src/main.rs @@ -3,9 +3,7 @@ use std::{env, path::Path}; fn main() { if Path::new("tests/real_virtuality/test-data") .read_dir() - .expect("read_dir failed") - .next() - .is_some() + .is_ok_and(|mut rd| rd.next().is_some()) { return; }