Only report warning for closures, not any block

This commit is contained in:
132ikl
2025-02-26 22:39:19 -05:00
parent c292b5f609
commit f5b8ae61cc
3 changed files with 43 additions and 11 deletions

View File

@@ -11,8 +11,14 @@ fn quickcheck_parse(data: String) -> bool {
let mut working_set = StateWorkingSet::new(&context);
let _ = working_set.add_file("quickcheck".into(), data.as_bytes());
let _ =
nu_parser::parse_block(&mut working_set, &tokens, Span::new(0, 0), false, false);
let _ = nu_parser::parse_block(
&mut working_set,
&tokens,
Span::new(0, 0),
false,
false,
false,
);
}
}
true