summaryrefslogtreecommitdiff
path: root/cli/tools/bench/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/bench/mod.rs')
-rw-r--r--cli/tools/bench/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tools/bench/mod.rs b/cli/tools/bench/mod.rs
index 732d889eb..1c44c8b3c 100644
--- a/cli/tools/bench/mod.rs
+++ b/cli/tools/bench/mod.rs
@@ -15,7 +15,7 @@ use crate::tools::test::format_test_error;
use crate::tools::test::TestFilter;
use crate::util::file_watcher;
use crate::util::fs::collect_specifiers;
-use crate::util::path::is_supported_ext;
+use crate::util::path::is_script_ext;
use crate::version::get_user_agent;
use crate::worker::CliMainWorkerFactory;
@@ -347,7 +347,7 @@ fn is_supported_bench_path(path: &Path) -> bool {
(basename.ends_with("_bench")
|| basename.ends_with(".bench")
|| basename == "bench")
- && is_supported_ext(path)
+ && is_script_ext(path)
} else {
false
}