Skip to content

Commit 5cbd9e6

Browse files
committed
fix clippy suggestions
1 parent f624871 commit 5cbd9e6

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

check-buddy-gui/src/board.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl Board {
148148
y_pos,
149149
self.position_size,
150150
self.position_size,
151-
if (x + y) % 2 == 0 {
151+
if (x + y).is_multiple_of(2) {
152152
self.board_conf.light_square
153153
} else {
154154
self.board_conf.dark_square

check-buddy-wgpu/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@ use winit::{
99
#[cfg(target_arch = "wasm32")]
1010
use wasm_bindgen::prelude::*;
1111

12+
#[derive(Default)]
1213
struct App {
1314
window: Option<Window>,
1415
}
1516

16-
impl Default for App {
17-
fn default() -> Self {
18-
Self { window: None }
19-
}
20-
}
2117

2218
impl ApplicationHandler for App {
2319
fn resumed(&mut self, event_loop: &ActiveEventLoop) {

0 commit comments

Comments
 (0)