From 614e721b91f22d98a645a30575e287028fbcb569 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 21 Nov 2024 10:49:33 +0000 Subject: [PATCH] test: ignore use of expect in tests creating temp fs --- crates/cli/src/repo/tests/given.rs | 1 + crates/cli/src/server/actor/tests/given.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/cli/src/repo/tests/given.rs b/crates/cli/src/repo/tests/given.rs index 2abd5854..6c2810cd 100644 --- a/crates/cli/src/repo/tests/given.rs +++ b/crates/cli/src/repo/tests/given.rs @@ -153,6 +153,7 @@ pub fn a_commit_sha() -> Sha { } pub fn a_filesystem() -> kxio::fs::TempFileSystem { + #[allow(clippy::expect_used)] kxio::fs::temp().expect("temp fs") } diff --git a/crates/cli/src/server/actor/tests/given.rs b/crates/cli/src/server/actor/tests/given.rs index 899633ee..2769f128 100644 --- a/crates/cli/src/server/actor/tests/given.rs +++ b/crates/cli/src/server/actor/tests/given.rs @@ -6,6 +6,7 @@ use crate::alerts::{AlertsActor, History}; // pub fn a_filesystem() -> kxio::fs::TempFileSystem { + #[allow(clippy::expect_used)] kxio::fs::temp().expect("temp fs") }