From e893f209b14dfe08511fb51999bf298ca2eed000 Mon Sep 17 00:00:00 2001 From: Imbris Date: Thu, 11 Jan 2024 22:54:22 -0500 Subject: [PATCH] Update book and example to match shred-derive changes --- docs/tutorials/src/06_system_data.md | 2 ++ examples/full.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/src/06_system_data.md b/docs/tutorials/src/06_system_data.md index 9860be532..f7b8f5ec5 100644 --- a/docs/tutorials/src/06_system_data.md +++ b/docs/tutorials/src/06_system_data.md @@ -119,6 +119,8 @@ That's why you can also create your own `SystemData` bundle using a struct: extern crate specs; use specs::prelude::*; +// `shred` needs to be in scope for the `SystemData` derive. +use specs::shred; #[derive(SystemData)] pub struct MySystemData<'a> { diff --git a/examples/full.rs b/examples/full.rs index 10df9d674..055ed437c 100644 --- a/examples/full.rs +++ b/examples/full.rs @@ -1,4 +1,4 @@ -use specs::{prelude::*, storage::HashMapStorage}; +use specs::{prelude::*, shred, storage::HashMapStorage}; // -- Components -- // A component exists for 0..n