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

Fix warning on release build with cargo build --release #166

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

Conversation

rhysd
Copy link

@rhysd rhysd commented Dec 16, 2021

This commit fixes the following warning emit by rustc v1.57:

> cargo build --release

warning: unnecessary parentheses around assigned value
  --> core/src/hardware/ppu.rs:33:30
   |
33 | const STAT_UNUSED_MASK: u8 = (1 << 7);
   |                              ^      ^
   |
   = note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
   |
33 - const STAT_UNUSED_MASK: u8 = (1 << 7);
33 + const STAT_UNUSED_MASK: u8 = 1 << 7;
   |

warning: `mooneye-gb-core` (lib) generated 1 warning

This commit fixes the following warning emit by rustc v1.57:

```
> cargo build --release

warning: unnecessary parentheses around assigned value
  --> core/src/hardware/ppu.rs:33:30
   |
33 | const STAT_UNUSED_MASK: u8 = (1 << 7);
   |                              ^      ^
   |
   = note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
   |
33 - const STAT_UNUSED_MASK: u8 = (1 << 7);
33 + const STAT_UNUSED_MASK: u8 = 1 << 7;
   |

warning: `mooneye-gb-core` (lib) generated 1 warning
```
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