fix(rust): adapt to new nightly lint
This commit is contained in:
parent
066fd77d39
commit
11071ed682
7 changed files with 37 additions and 25 deletions
|
|
@ -183,7 +183,8 @@ pub fn generate_parser_in_directory(
|
|||
if grammar_path.file_name().unwrap() != "grammar.json" {
|
||||
fs::write(src_path.join("grammar.json"), &grammar_json).map_err(|e| {
|
||||
GenerateError::IO(format!(
|
||||
"Failed to write grammar.json to {src_path:?} -- {e}"
|
||||
"Failed to write grammar.json to {} -- {e}",
|
||||
src_path.display()
|
||||
))
|
||||
})?;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue