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

03_dispatcher: fix clippy::unnecessary_mut_passed #742

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

softmoth
Copy link

Fixes:

warning: the method `dispatch` doesn't need a mutable reference
  --> src/main.rs:70:25
   |
70 |     dispatcher.dispatch(&mut world);
   |                         ^^^^^^^^^^

Checklist

  • I've added tests for all code changes and additions (where applicable)
  • I've added a demonstration of the new feature to one or more examples
  • I've updated the book to reflect my changes
  • Usage of new public items is shown in the API docs

API changes

Fixes:
```
warning: the method `dispatch` doesn't need a mutable reference
  --> src/main.rs:70:25
   |
70 |     dispatcher.dispatch(&mut world);
   |                         ^^^^^^^^^^
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant