From ed514aed9901fe4e1dd654336a00260d48b3fd43 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 22 Jun 2024 18:34:45 +0200 Subject: [PATCH] deps: update tree-sitter crate to 0.22.6 --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- bindings/rust/lib.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 74c38f9..f64a4d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.92" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2678b2e3449475e95b0aa6f9b506a28e61b3dc8996592b983695e8ebb58a8b41" +checksum = "96c51067fd44124faa7f870b4b1c969379ad32b2ba805aa959430ceaa384f695" [[package]] name = "memchr" @@ -54,9 +54,9 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" [[package]] name = "tree-sitter" -version = "0.20.10" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e747b1f9b7b931ed39a548c1fae149101497de3c1fc8d9e18c62c1a66c683d3d" +checksum = "df7cc499ceadd4dcdf7ec6d4cbc34ece92c3fa07821e287aedecd4416c516dca" dependencies = [ "cc", "regex", diff --git a/Cargo.toml b/Cargo.toml index ab55e33..a394823 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"] path = "bindings/rust/lib.rs" [dependencies] -tree-sitter = "~0.20.10" +tree-sitter = "~0.22.6" [build-dependencies] cc = "1.0.73" diff --git a/bindings/rust/lib.rs b/bindings/rust/lib.rs index 093a9b7..0e12118 100644 --- a/bindings/rust/lib.rs +++ b/bindings/rust/lib.rs @@ -6,7 +6,7 @@ //! ``` //! let code = ""; //! let mut parser = tree_sitter::Parser::new(); -//! parser.set_language(tree_sitter_slang::language()).expect("Error loading slang grammar"); +//! parser.set_language(&tree_sitter_slang::language()).expect("Error loading slang grammar"); //! let tree = parser.parse(code, None).unwrap(); //! ``` //! @@ -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 slang language"); } }