Skip to content

Commit 5c80946

Browse files
committed
Fix warning about Drop trait used as bound
Removes the following warning: warning: bounds on Self: Drop are useless, consider instead using std::mem::needs_drop to detect if a type has a destructor --> gdnative-core\src\core_types\access.rs:36:25 | 36 | pub unsafe trait Guard: Drop + private::Sealed { | ^^^^ | = note: #[warn(drop_bounds)] on by default
1 parent 480a87f commit 5c80946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdnative-core/src/core_types/access.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ where
3333
///
3434
/// This trait is sealed and has no public members.
3535
#[allow(clippy::len_without_is_empty)]
36-
pub unsafe trait Guard: Drop + private::Sealed {
36+
pub unsafe trait Guard: private::Sealed {
3737
#[doc(hidden)]
3838
type Target;
3939

0 commit comments

Comments
 (0)