Skip to content

Commit 796c469

Browse files
committed
Address unused Rust function warnings
1 parent fba8ba3 commit 796c469

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/full-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515

1616
env:
1717
GDEXT_FEATURES: ''
18+
# GDEXT_FEATURES: '--features godot/serde'
1819
RETRY: ${{ github.workspace }}/.github/other/retry.sh
1920

2021
# LSan options: https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer

godot-core/src/builtin/callable.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,4 @@ mod custom_callable {
425425
w.name.clone().move_string_ptr(r_out);
426426
*r_is_valid = true as sys::GDExtensionBool;
427427
}
428-
429-
pub fn unqualified_type_name<T>() -> &'static str {
430-
let type_name = std::any::type_name::<T>();
431-
type_name.split("::").last().unwrap()
432-
}
433428
}

godot-ffi/src/toolbox.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ pub fn hash_value<T: std::hash::Hash>(t: &T) -> u64 {
138138
hasher.finish()
139139
}
140140

141+
/*
142+
pub fn unqualified_type_name<T>() -> &'static str {
143+
let type_name = std::any::type_name::<T>();
144+
type_name.split("::").last().unwrap()
145+
}
146+
*/
147+
141148
// ----------------------------------------------------------------------------------------------------------------------------------------------
142149
// Private helpers
143150

0 commit comments

Comments
 (0)