fix(rust): adapt to a few new nightly lints
This commit is contained in:
parent
48fe030bdd
commit
4f9869142f
2 changed files with 5 additions and 4 deletions
|
|
@ -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());
|
||||
}"#;
|
||||
|
|
|
|||
|
|
@ -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(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue