Skip to content

03_dispatcher: fix clippy::unnecessary_mut_passed#742

Open
softmoth wants to merge 1 commit intoamethyst:masterfrom
softmoth:patch-1
Open

03_dispatcher: fix clippy::unnecessary_mut_passed#742
softmoth wants to merge 1 commit intoamethyst:masterfrom
softmoth:patch-1

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