mooneye-gb icon indicating copy to clipboard operation
mooneye-gb copied to clipboard

Fix warning on release build with `cargo build --release`

Open rhysd opened this issue 3 years ago • 0 comments

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

rhysd avatar Dec 16 '21 01:12 rhysd