Clean up warnings

This commit is contained in:
Savanni D'Gerinel 2023-06-16 09:03:17 -04:00
parent 9266387833
commit b15658dd0c
3 changed files with 5 additions and 11 deletions

View File

@ -36,13 +36,13 @@ ifc-test:
cd ifc && make test cd ifc && make test
kifu-core/dev: kifu-core/dev:
cd kifu/kifu-core && make test cd kifu/core && make test
kifu-core/test: kifu-core/test:
cd kifu/kifu-core && make test cd kifu/core && make test
kifu-core/test-oneshot: kifu-core/test-oneshot:
cd kifu/kifu-core && make test-oneshot cd kifu/core && make test-oneshot
kifu-gtk: kifu-gtk:
cd kifu/gtk && make release cd kifu/gtk && make release

View File

@ -55,7 +55,7 @@ impl AppState {
pub fn place_stone(&mut self, req: PlayStoneRequest) { pub fn place_stone(&mut self, req: PlayStoneRequest) {
match self.game { match self.game {
Some(ref mut game) => { Some(ref mut game) => {
game.place_stone(Coordinate { let _ = game.place_stone(Coordinate {
column: req.column, column: req.column,
row: req.row, row: req.row,
}); });

View File

@ -5,13 +5,7 @@ use crate::{
}; };
use glib::Object; use glib::Object;
use gtk::{prelude::*, subclass::prelude::*}; use gtk::{prelude::*, subclass::prelude::*};
use kifu_core::{ use kifu_core::ui::PlayingFieldView;
ui::{
BoardElement, ChatElement, IntersectionElement, PlayerCardElement, PlayingFieldView,
StoneElement, TextFieldElement,
},
Color, CoreApp, Size,
};
use std::{cell::RefCell, rc::Rc}; use std::{cell::RefCell, rc::Rc};
pub struct PlayingFieldPrivate { pub struct PlayingFieldPrivate {