Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: cargo +nightly fmt --all
- name: Cargo Clippy
run: cargo +nightly clippy --fix --allow-dirty --all-features --workspace -- -D warnings
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
concurrency:
group: autofix-${{github.ref}}
cancel-in-progress: false
11 changes: 5 additions & 6 deletions tailcall-template/src/jq/jq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ where
match n.parse::<f64>() {
Ok(num) => ValR::Ok(JsonLikeHelper(A::number_f64(num))),
Err(err) => ValR::Err(jaq_core::Error::str(format!(
"Invalid number format: {}",
err
"Invalid number format: {err}"
))),
}
}
Expand Down Expand Up @@ -182,9 +181,9 @@ where
let obj = A::obj(iter.collect::<Result<Vec<_>, jaq_core::Exn<_>>>()?);
Ok(JsonLikeHelper(obj))
} else {
return opt.fail(self, |_v| {
opt.fail(self, |_v| {
jaq_core::Exn::from(jaq_core::Error::str("Value is not object or array"))
});
})
}
}

Expand Down Expand Up @@ -239,9 +238,9 @@ where
}
Ok(self)
} else {
return opt.fail(self, |_v| {
opt.fail(self, |_v| {
jaq_core::Exn::from(jaq_core::Error::str("Value is not object or array"))
});
})
}
}

Expand Down
2 changes: 1 addition & 1 deletion tailcall-template/src/mustache/mustache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ impl Display for Mustache {
.collect::<Vec<String>>()
.join("");

write!(f, "{}", str)
write!(f, "{str}")
}
}
2 changes: 1 addition & 1 deletion tailcall-template/src/mustache/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn parse_name(input: &str) -> IResult<&str, String> {

nom::combinator::map(parser, |(_, a, b, _)| {
let b: String = b.into_iter().collect();
format!("{}{}", a, b)
format!("{a}{b}")
})
.parse(input)
}
Expand Down
Loading