Fix compile error in parser hang test

This commit is contained in:
Max Brunsfeld 2023-12-27 15:10:52 -08:00
parent 4a8e4b1963
commit 82c1b5ead3

View file

@ -95,7 +95,7 @@ fn test_grammar_that_should_hang_and_not_segfault() {
get_test_language(&parser_name, &parser_code, Some(test_grammar_dir.as_path()));
let mut parser = Parser::new();
parser.set_language(language).unwrap();
parser.set_language(&language).unwrap();
let code_that_should_hang = "\nHello";