mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
Remove unnecessary Default
impl of HandleType (#7472)
# Objective - Resolve a Fixme to remove the `Default` impl for `HandleType`, once Reflection no longer requires it. - Presumebly this Comment was made before the `FromReflect` Derive used the `#[reflect(Default)]`, to substitute for the requirment that a ignored field has a `Default`. ## Solution - Just remove the `Default` derive and comment.
This commit is contained in:
parent
fbd569c791
commit
1a18ab34c4
1 changed files with 0 additions and 3 deletions
|
@ -116,10 +116,7 @@ where
|
|||
marker: PhantomData<fn() -> T>,
|
||||
}
|
||||
|
||||
// FIXME: Default is only needed because `Handle`'s field `handle_type` is currently ignored for reflection
|
||||
#[derive(Default)]
|
||||
enum HandleType {
|
||||
#[default]
|
||||
Weak,
|
||||
Strong(Sender<RefChange>),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue