fix: minor issues with CI
* update ctor * pass empty `RUSTFLAGS` when installing cross, overriding the default `-D warnings` * fix some clippy lints * create `target` directory before curling wasmtime lib
This commit is contained in:
parent
e445532a1f
commit
c7b218838d
6 changed files with 13 additions and 11 deletions
|
|
@ -223,11 +223,11 @@ pub fn assert_expected_captures(
|
|||
let contents = fs::read_to_string(path)?;
|
||||
let pairs = parse_position_comments(parser, language, contents.as_bytes())?;
|
||||
for assertion in &pairs {
|
||||
if let Some(found) = &infos
|
||||
.iter()
|
||||
.find(|p| assertion.position >= p.start &&
|
||||
(assertion.position.row < p.end.row || assertion.position.column + assertion.length - 1 < p.end.column))
|
||||
{
|
||||
if let Some(found) = &infos.iter().find(|p| {
|
||||
assertion.position >= p.start
|
||||
&& (assertion.position.row < p.end.row
|
||||
|| assertion.position.column + assertion.length - 1 < p.end.column)
|
||||
}) {
|
||||
if assertion.expected_capture_name != found.name && found.name != "name" {
|
||||
return Err(anyhow!(
|
||||
"Assertion failed: at {}, found {}, expected {}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue