Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress unused method warning when using custom-godot feature #1084

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mivort
Copy link
Contributor

@mivort mivort commented Sep 22, 2024

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.

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.
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdnative/pr-1084

@Bromeon
Copy link
Member

Bromeon commented Sep 22, 2024

Thanks for the contribution!

Please note about this; CI would need some work before we can merge again.

@Bromeon Bromeon added the quality-of-life No new functionality, but improves ergonomics/internals label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quality-of-life No new functionality, but improves ergonomics/internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants