diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-09-08 15:04:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 15:04:45 +0100 |
commit | 17276a1df9fb4926f813d2b8a5ac2a2a8bf289eb (patch) | |
tree | 7e511b1536692ab82c7ccc7f424cb572c211217e /cli/tools/bench/mod.rs | |
parent | 14522fc62886b95431f62d5bd21d70cfaac780ee (diff) |
fix: empty include in config file excludes all (#20404)
Diffstat (limited to 'cli/tools/bench/mod.rs')
-rw-r--r-- | cli/tools/bench/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tools/bench/mod.rs b/cli/tools/bench/mod.rs index d876c2504..732d889eb 100644 --- a/cli/tools/bench/mod.rs +++ b/cli/tools/bench/mod.rs @@ -429,7 +429,9 @@ pub async fn run_benchmarks_with_watch( let bench_options = cli_options.resolve_bench_options(bench_flags)?; let _ = sender.send(cli_options.watch_paths()); - let _ = sender.send(bench_options.files.include.clone()); + if let Some(include) = &bench_options.files.include { + let _ = sender.send(include.clone()); + } let graph_kind = cli_options.type_check_mode().as_graph_kind(); let module_graph_builder = factory.module_graph_builder().await?; |