Skip to content

Commit abb0f30

Browse files
committed
Python: Borrow Python grammar language in test
Fixes the all-targets compilation error exposed while running Clippy with Rust 1.98. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
1 parent f5a18e1 commit abb0f30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • python/extractor/tsg-python/tsp/bindings/rust

‎python/extractor/tsg-python/tsp/bindings/rust/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ mod tests {
6262
fn can_load_grammar() {
6363
let mut parser = tree_sitter::Parser::new();
6464
parser
65-
.set_language(super::language())
65+
.set_language(&super::language())
6666
.expect("Error loading Python grammar");
6767
}
6868
}

0 commit comments

Comments
 (0)