We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f624871 commit 5cbd9e6Copy full SHA for 5cbd9e6
2 files changed
check-buddy-gui/src/board.rs
@@ -148,7 +148,7 @@ impl Board {
148
y_pos,
149
self.position_size,
150
151
- if (x + y) % 2 == 0 {
+ if (x + y).is_multiple_of(2) {
152
self.board_conf.light_square
153
} else {
154
self.board_conf.dark_square
check-buddy-wgpu/src/lib.rs
@@ -9,15 +9,11 @@ use winit::{
9
#[cfg(target_arch = "wasm32")]
10
use wasm_bindgen::prelude::*;
11
12
+#[derive(Default)]
13
struct App {
14
window: Option<Window>,
15
}
16
-impl Default for App {
17
- fn default() -> Self {
18
- Self { window: None }
19
- }
20
-}
21
22
impl ApplicationHandler for App {
23
fn resumed(&mut self, event_loop: &ActiveEventLoop) {
0 commit comments