From ac6f9fe86a2073eb44218c280aabc5e0d85117f1 Mon Sep 17 00:00:00 2001 From: 255doesnotexist <1293883574jcy@gmail.com> Date: Mon, 26 Aug 2024 04:12:56 +0800 Subject: [PATCH] feat: make dir moved in for --- src/testscript_manager.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/testscript_manager.rs b/src/testscript_manager.rs index 0cb2570..881b5b9 100644 --- a/src/testscript_manager.rs +++ b/src/testscript_manager.rs @@ -8,7 +8,7 @@ impl TestScriptManager { pub fn new(distro: &str, package: &str) -> Result> { let dir = format!("./{}/{}", distro, package); let mut test_scripts = Vec::new(); - for entry in std::fs::read_dir(&dir)? { + for entry in std::fs::read_dir(dir)? { let entry = entry?; let path = entry.path(); if path.is_file() && path.extension().unwrap_or_default() == "sh" { @@ -26,3 +26,4 @@ impl TestScriptManager { &self.test_scripts } } +