Skip to content

Commit 4c59510

Browse files
committed
chore: tidy up Rust bindings
1 parent 05b6908 commit 4c59510

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bindings/rust/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fn main() {
55
let src_dir = Path::new("src");
66

77
let mut c_config = cc::Build::new();
8-
c_config.include(&src_dir);
8+
c_config.include(src_dir);
99
c_config
1010
.flag_if_supported("-Wno-unused-parameter")
1111
.flag_if_supported("-Wno-unused-but-set-variable")

bindings/rust/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ pub fn language() -> Language {
4646
}
4747

4848
/// The source of the Java tree-sitter grammar description.
49-
pub const GRAMMAR: &'static str = include_str!("../../grammar.js");
49+
pub const GRAMMAR: &str = include_str!("../../grammar.js");
5050

5151
/// The syntax highlighting query for this language.
52-
pub const HIGHLIGHT_QUERY: &'static str = include_str!("../../queries/highlights.scm");
52+
pub const HIGHLIGHT_QUERY: &str = include_str!("../../queries/highlights.scm");
5353

5454
/// The content of the [`node-types.json`][] file for this grammar.
5555
///
5656
/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types
57-
pub const NODE_TYPES: &'static str = include_str!("../../src/node-types.json");
57+
pub const NODE_TYPES: &str = include_str!("../../src/node-types.json");
5858

5959
/// The symbol tagging query for this language.
60-
pub const TAGGING_QUERY: &'static str = include_str!("../../queries/tags.scm");
60+
pub const TAGGING_QUERY: &str = include_str!("../../queries/tags.scm");
6161

6262
#[cfg(test)]
6363
mod tests {

0 commit comments

Comments
 (0)