Skip to content

Commit

Permalink
Follow-up changes to Cargo + Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bromeon committed Sep 22, 2024
1 parent c4dd6b7 commit 6ad6756
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions godot-core/src/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub use crate::meta::trace;

use crate::global::godot_error;
use crate::meta::error::CallError;
use crate::meta::{CallContext, ClassName};
use crate::meta::CallContext;
use crate::sys;
use std::sync::{atomic, Arc, Mutex};
use sys::Global;
Expand Down Expand Up @@ -129,7 +129,8 @@ pub(crate) fn iterate_plugins(mut visitor: impl FnMut(&ClassPlugin)) {
sys::plugin_foreach!(__GODOT_PLUGIN_REGISTRY; visitor);
}

pub(crate) fn find_inherent_impl(class_name: ClassName) -> Option<InherentImpl> {
#[cfg(feature = "codegen-full")] // Remove if used in other scenarios.
pub(crate) fn find_inherent_impl(class_name: crate::meta::ClassName) -> Option<InherentImpl> {
// We do this manually instead of using `iterate_plugins()` because we want to break as soon as we find a match.
let plugins = __godot_rust_plugin___GODOT_PLUGIN_REGISTRY.lock().unwrap();

Expand Down
4 changes: 2 additions & 2 deletions godot-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ homepage = "https://godot-rust.github.io"
[features]
api-custom = ["godot-bindings/api-custom"]
docs = ["dep:markdown"]
codegen-full = []
codegen-full = ["godot/__codegen-full"]

[lib]
proc-macro = true
Expand All @@ -32,7 +32,7 @@ godot-bindings = { path = "../godot-bindings", version = "=0.1.3" } # emit_godot

# Reverse dev dependencies so doctests can use `godot::` prefix.
[dev-dependencies]
godot = { path = "../godot", default-features = false, features = ["__codegen-full"] }
godot = { path = "../godot", default-features = false}

# https://docs.rs/about/metadata
[package.metadata.docs.rs]
Expand Down

0 comments on commit 6ad6756

Please sign in to comment.