Skip to content

Commit 1a18ab3

Browse files
committed
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.
1 parent fbd569c commit 1a18ab3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crates/bevy_asset/src/handle.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,7 @@ where
116116
marker: PhantomData<fn() -> T>,
117117
}
118118

119-
// FIXME: Default is only needed because `Handle`'s field `handle_type` is currently ignored for reflection
120-
#[derive(Default)]
121119
enum HandleType {
122-
#[default]
123120
Weak,
124121
Strong(Sender<RefChange>),
125122
}

0 commit comments

Comments
 (0)