fix(rust): adapt to a few new nightly lints

This commit is contained in:
Will Lillis 2024-12-28 01:17:04 -05:00 committed by GitHub
parent 48fe030bdd
commit 4f9869142f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -5337,11 +5337,12 @@ fn test_query_execution_with_timeout() {
}
#[test]
fn idk() {
fn test_query_execution_with_points_causing_underflow() {
let language = get_language("rust");
let mut parser = Parser::new();
parser.set_language(&language).unwrap();
#[allow(clippy::literal_string_with_formatting_args)]
let code = r#"fn main() {
println!("{:?}", foo());
}"#;

View file

@ -47,7 +47,7 @@ pub fn run_fixtures() -> Result<()> {
]);
bail_on_err(
&command.spawn()?.wait_with_output()?,
"Failed to clone the {grammar} grammar",
&format!("Failed to clone the {grammar} grammar"),
)?;
}
@ -57,14 +57,14 @@ pub fn run_fixtures() -> Result<()> {
command.args(["fetch", "origin", r#ref, "--depth", "1"]);
bail_on_err(
&command.spawn()?.wait_with_output()?,
"Failed to fetch the {grammar} grammar",
&format!("Failed to fetch the {grammar} grammar"),
)?;
let mut command = Command::new("git");
command.args(["reset", "--hard", "FETCH_HEAD"]);
bail_on_err(
&command.spawn()?.wait_with_output()?,
"Failed to reset the {grammar} grammar",
&format!("Failed to reset the {grammar} grammar"),
)?;
Ok(())