Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Chapter in Book Has Unclear Event Struct #711

Open
DeanBDean opened this issue Nov 7, 2020 · 0 comments
Open

Setup Chapter in Book Has Unclear Event Struct #711

DeanBDean opened this issue Nov 7, 2020 · 0 comments
Labels

Comments

@DeanBDean
Copy link

Description

In chapter 7 of the book, under custom setup functionality, the tutorial instructs the user to create a struct Sys with a field reader that looks like ReaderId<Event>. cargo check gives the error cannot find type `Event` in this scope. If I try to import specs::shrev::Event, that doesn't really work since Event is a trait.

Meta

Rust version: 1.47.0
Specs version / commit: 0.16.1
Operating system: macOS 10.15.6

Reproduction

Steps to reproduce the behavior:

  1. Go to setup
  2. Go through the tutorial up to Custom Setup Functionality
  3. Run cargo check after doing the first code snippet in Custom Setup Functionality

Expected behavior

The code returns no errors or warnings. I am willing to submit a PR over this issue, but I am unsure what Event should be

@DeanBDean DeanBDean added the bug label Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant