Made LazyUpdate derive Default.
@@ -387,6 +387,7 @@ impl<F> LazyUpdateInternal for F
/// Please note that the provided methods take `&self`
/// so there's no need to fetch `LazyUpdate` mutably.
/// This resource is added to the world by default.
+#[derive(Default)]
pub struct LazyUpdate {
stack: TreiberStack<Box<LazyUpdateInternal>>,
}
@@ -534,15 +535,6 @@ impl LazyUpdate {
}
}
-impl Default for LazyUpdate {
- fn default() -> Self {
- // TODO: derive (`Default` is not yet implemented for `TreiberStack`)
- LazyUpdate {
- stack: TreiberStack::new(),
- }
- }
-}
-
impl Drop for LazyUpdate {
fn drop(&mut self) {
// TODO: remove as soon as leak is fixed in crossbeam
