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 21c2e44fff..530d5231c8 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")) {