Commit a6feb5b
Emit a warning if the result of
When using combinators such as `EntityCommand::with_entity` to build
commands, it can be easy to forget to apply that command, leading to
dead code. In many cases this doesn't even lead to an unused variable
warning, which can make these mistakes difficult to track down
Annotate the method with `#[must_use]`
Co-authored-by: Alice Cecile <[email protected]>EntityCommand::with_entity is not used (#14028)1 parent e65e4be commit a6feb5b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
| 830 | + | |
830 | 831 | | |
831 | 832 | | |
832 | 833 | | |
| |||
0 commit comments