v0.1.3-pre.009-fix.001

This commit is contained in:
2026-08-15 21:32:56 +02:00
parent a5b4c748ea
commit 97a07ce683
3 changed files with 32 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-config-lib/unit_tests/composite.rs
// version: 1
// version: 2
const TEST_COMPOSITE_FILE_ID: &str = "cfg.composite.test";
const TEST_COMPOSITE_FILENAME: &str = "examples/composite.example.json";
@@ -239,9 +239,9 @@ fn fixture_roots(name: &str) -> FixtureRoots {
fn cleanup_fixture(fixture: &FixtureRoots) {
let removal = std::fs::remove_dir_all(fixture.root.as_path());
if let std::result::Result::Err(error) = removal {
if error.kind() != std::io::ErrorKind::NotFound {
eprintln!("unable to cleanup Config composite fixture {}: {error}", fixture.root.display());
}
if let std::result::Result::Err(error) = removal
&& error.kind() != std::io::ErrorKind::NotFound
{
eprintln!("unable to cleanup Config composite fixture {}: {error}", fixture.root.display());
}
}