From 6bc92930a719b9575126229d9d4337887a9dddcb Mon Sep 17 00:00:00 2001 From: maunzCache Date: Sun, 16 Feb 2025 13:44:57 +0100 Subject: [PATCH] deps: support tree-sitter 0.24 --- Cargo.toml | 2 +- bindings/rust/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d0b9dc6..3150c8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"] path = "bindings/rust/lib.rs" [dependencies] -tree-sitter = "~0.20.10" +tree-sitter = "~0.24" [build-dependencies] cc = "1.0" diff --git a/bindings/rust/lib.rs b/bindings/rust/lib.rs index 3eaa9c0..9e2ac29 100644 --- a/bindings/rust/lib.rs +++ b/bindings/rust/lib.rs @@ -46,7 +46,7 @@ mod tests { fn test_can_load_grammar() { let mut parser = tree_sitter::Parser::new(); parser - .set_language(super::language()) + .set_language(&super::language()) .expect("Error loading hcl language"); } }