diff --git a/src/main.rs b/src/main.rs index b9c75937..18863f6b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -440,7 +440,7 @@ fn init_rayon(stack: &Option, threads: &Option) -> rayon::ThreadPo None } else { let large_stack = usize::pow(1024, 3); - let mut sys = System::new_all(); + let mut sys = System::new(); sys.refresh_memory(); // Larger stack size if possible to handle cases with lots of nested directories let available = sys.available_memory(); diff --git a/tests/test_exact_output.rs b/tests/test_exact_output.rs index 2d4a4bad..58d2cf9b 100644 --- a/tests/test_exact_output.rs +++ b/tests/test_exact_output.rs @@ -42,7 +42,7 @@ fn create_unreadable_directory() -> io::Result<()> { use std::fs::Permissions; use std::os::unix::fs::PermissionsExt; fs::create_dir_all(UNREADABLE_DIR_PATH)?; - fs::set_permissions(UNREADABLE_DIR_PATH, Permissions::from_mode(0))?; + fs::set_permissions(UNREADABLE_DIR_PATH, Permissions::from_mode(0o0))?; } Ok(()) }