Gekkio / mooneye-gb

A Game Boy research project and emulator written in Rust
GNU General Public License v3.0
892 stars 56 forks source link

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

Open rhysd opened 2 years ago

rhysd commented 2 years ago

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