From ce60d89050a83e32b122de325ec9518cbd8b6245 Mon Sep 17 00:00:00 2001 From: Mivort Date: Sun, 22 Sep 2024 21:44:41 +0100 Subject: [PATCH] Suppress unused method warning when using custom-godot feature When `custom-godot` feature is used during build, the following warning gets produced: ``` warning: function `godot_version` is never used | 50 | fn godot_version() -> Option { | ^^^^^^^^^^^^^ | ``` This PR adds `#[allow(unused)]` directive to suppress this warning, since it becomes unused when `custom-godot` feature is enabled. --- gdnative-core/src/init/diagnostics/godot_version_mismatch.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gdnative-core/src/init/diagnostics/godot_version_mismatch.rs b/gdnative-core/src/init/diagnostics/godot_version_mismatch.rs index 899bed2bd..499299856 100644 --- a/gdnative-core/src/init/diagnostics/godot_version_mismatch.rs +++ b/gdnative-core/src/init/diagnostics/godot_version_mismatch.rs @@ -46,6 +46,7 @@ fn check_godot_version_mismatch() -> bool { } } +#[allow(unused)] fn godot_version() -> Option { let version = unsafe { let api = get_api();