Skip to content

Commit 789e881

Browse files
authored
Merge pull request #19542 from github/redsun82/rust-ignore-target-in-qltest
Rust: ignore `target` in `qltest`
2 parents c68579b + 799c39b commit 789e881

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/extractor/src/qltest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ path = "main.rs"
5454
fn set_sources(config: &mut Config) -> anyhow::Result<()> {
5555
let path_iterator = glob("**/*.rs").context("globbing test sources")?;
5656
config.inputs = path_iterator
57+
.filter(|f| f.is_err() || !f.as_ref().unwrap().starts_with("target"))
5758
.collect::<Result<Vec<_>, _>>()
5859
.context("fetching test sources")?;
5960
Ok(())

0 commit comments

Comments
 (0)