Skip to content

Commit e8799e3

Browse files
author
Paolo Tranquilli
committed
Rust/Python: fix edition-related errors
1 parent eff87d2 commit e8799e3

File tree

2 files changed

+3
-3
lines changed
  • python/extractor/tsg-python/tsp/bindings/rust
  • rust/extractor/macros/src

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
3232
use tree_sitter::Language;
3333

34-
extern "C" {
34+
unsafe extern "C" {
3535
fn tree_sitter_python() -> Language;
3636
}
3737

rust/extractor/macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub fn extractor_cli_config(_attr: TokenStream, item: TokenStream) -> TokenStrea
9696
})
9797
.collect::<Vec<_>>();
9898

99-
let gen = quote! {
99+
let ret = quote! {
100100
#[serde_with::apply(_ => #[serde(default)])]
101101
#[derive(Deserialize, Default)]
102102
pub struct #name {
@@ -118,5 +118,5 @@ pub fn extractor_cli_config(_attr: TokenStream, item: TokenStream) -> TokenStrea
118118
#(#cli_fields),*
119119
}
120120
};
121-
gen.into()
121+
ret.into()
122122
}

0 commit comments

Comments
 (0)