Skip to content

Commit

Permalink
Suppress unused method warning when using custom-godot feature
Browse files Browse the repository at this point in the history
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<semver::Version> {
   |    ^^^^^^^^^^^^^
   |
```

This PR adds `#[allow(unused)]` directive to suppress this warning,
since it becomes unused when `custom-godot` feature is enabled.
  • Loading branch information
mivort committed Sep 22, 2024
1 parent ea72d59 commit ce60d89
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ fn check_godot_version_mismatch() -> bool {
}
}

#[allow(unused)]
fn godot_version() -> Option<semver::Version> {
let version = unsafe {
let api = get_api();
Expand Down

0 comments on commit ce60d89

Please sign in to comment.