Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 22facec

Browse files
author
Hendrik van Antwerpen
committed
Reduce scope of all_paths
1 parent 9baa6a6 commit 22facec

File tree

1 file changed

+1
-1
lines changed
  • tree-sitter-stack-graphs/src/cli

1 file changed

+1
-1
lines changed

tree-sitter-stack-graphs/src/cli/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ impl TestArgs {
209209
.with_context(|| format!("Loading builtins into {}", test_path.display()))?;
210210
let mut globals = Variables::new();
211211
for test_fragment in &test.fragments {
212-
let mut all_paths = test.fragments.iter().map(|f| f.path.as_path());
213212
if let Some(fa) = test_fragment
214213
.path
215214
.file_name()
216215
.and_then(|f| lc.special_files.get(&f.to_string_lossy()))
217216
{
217+
let mut all_paths = test.fragments.iter().map(|f| f.path.as_path());
218218
fa.build_stack_graph_into(
219219
&mut test.graph,
220220
test_fragment.file,

0 commit comments

Comments
 (0)