Skip to content

Commit c03b434

Browse files
committed
Remove needless tree-sitter build borrows
Fixes the clippy::needless_borrows_for_generic_args lint errors reported by Clippy 1.98. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
1 parent 8aa4afb commit c03b434

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • ql/buramu/tree-sitter-blame/bindings/rust

‎ql/buramu/tree-sitter-blame/bindings/rust/build.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fn main() {
22
let src_dir = std::path::Path::new("src");
33

44
let mut c_config = cc::Build::new();
5-
c_config.include(&src_dir);
5+
c_config.include(src_dir);
66
c_config
77
.flag_if_supported("-Wno-unused-parameter")
88
.flag_if_supported("-Wno-unused-but-set-variable")
@@ -11,7 +11,7 @@ fn main() {
1111
c_config.flag("-utf-8");
1212

1313
let parser_path = src_dir.join("parser.c");
14-
c_config.file(&parser_path);
14+
c_config.file(parser_path.as_path());
1515

1616
// If your language uses an external scanner written in C,
1717
// then include this block of code:

0 commit comments

Comments
 (0)