From 448504ec030e90e7b6abac3849cd4bb6f42090be Mon Sep 17 00:00:00 2001 From: Yuta Nagai <67227640+nayuta-ai@users.noreply.github.com> Date: Mon, 14 Oct 2024 00:00:02 +0900 Subject: [PATCH] Update tests/contest/contest/src/tests/linux_masked_paths/masked_paths.rs Signed-off-by: nayuta-ai --- .../contest/src/tests/linux_masked_paths/masked_paths.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/contest/contest/src/tests/linux_masked_paths/masked_paths.rs b/tests/contest/contest/src/tests/linux_masked_paths/masked_paths.rs index 21c2e44ff..530d5231c 100644 --- a/tests/contest/contest/src/tests/linux_masked_paths/masked_paths.rs +++ b/tests/contest/contest/src/tests/linux_masked_paths/masked_paths.rs @@ -55,11 +55,8 @@ fn check_masked_paths() -> TestResult { use std::{fs, io}; let test_dir = bundle_path.join(&masked_dir_sub); - match fs::create_dir_all(&test_dir) { - io::Result::Ok(_) => { /*This is expected*/ } - io::Result::Err(e) => { - bail!(e) - } + if let Err(e) = fs::create_dir_all(&test_dir) { + bail!(e) } match fs::File::create(test_dir.join("tmp")) {