From a4319cc66ca0573fad737c64cb1e187a09caf165 Mon Sep 17 00:00:00 2001 From: Jan Haller Date: Mon, 1 Apr 2024 17:12:46 +0200 Subject: [PATCH] Update CI to work again --- .github/external-config/public-docs-token.txt | 2 +- bindings-generator/src/methods.rs | 1 + gdnative-core/src/core_types/geom/rect2.rs | 2 +- gdnative-core/src/private.rs | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/external-config/public-docs-token.txt b/.github/external-config/public-docs-token.txt index 71ba0f652..4f1ea35ab 100644 --- a/.github/external-config/public-docs-token.txt +++ b/.github/external-config/public-docs-token.txt @@ -1 +1 @@ -MTFBQUZNN0NBMHVoSTJTeUk2OEptdl9Ea1pzdTlEbWZtUHRTdldzVnJDT0dibnA2Z2FZNk9OaHoxeEdObnpMMGx6UTVVRTJNM0Ezdjk3RXJjTAo= \ No newline at end of file +MTFBQUZNN0NBMGZzSGFaOVJFSmRtdV9IYnJXVEFZVEoxNDJ3N3VPTG1UY3UyTnlQM1h2RXNoMjZTMmNtdEhLa2hOQlFOVllWTVlhSTE1bk1JUwo= \ No newline at end of file diff --git a/bindings-generator/src/methods.rs b/bindings-generator/src/methods.rs index 3312ff4dd..d900a0762 100644 --- a/bindings-generator/src/methods.rs +++ b/bindings-generator/src/methods.rs @@ -224,6 +224,7 @@ pub fn generate_method_table(api: &Api, class: &GodotClass) -> TokenStream { #(#impl_methods),* }; + #[allow(static_mut_refs)] &mut TABLE } diff --git a/gdnative-core/src/core_types/geom/rect2.rs b/gdnative-core/src/core_types/geom/rect2.rs index 4b06c5af2..09df995b0 100644 --- a/gdnative-core/src/core_types/geom/rect2.rs +++ b/gdnative-core/src/core_types/geom/rect2.rs @@ -261,7 +261,7 @@ impl Rect2 { /// Error indicating that an `i64` cannot be converted to a [`Margin`]. #[derive(Debug)] -pub struct MarginError(i64); +pub struct MarginError(pub i64); /// Provides compatibility with Godot's [`Margin` enum][margin] through the [`TryFrom`] trait. /// diff --git a/gdnative-core/src/private.rs b/gdnative-core/src/private.rs index b711c4686..69b92b7f1 100644 --- a/gdnative-core/src/private.rs +++ b/gdnative-core/src/private.rs @@ -281,6 +281,7 @@ macro_rules! make_method_table { $($methods: std::ptr::null_mut(),)* }; + #[allow(static_mut_refs)] &mut TABLE }