From b15658dd0c7dbb116f418fe15feb8e252fb4c732 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Fri, 16 Jun 2023 09:03:17 -0400 Subject: [PATCH] Clean up warnings --- Makefile | 6 +++--- kifu/core/src/types.rs | 2 +- kifu/gtk/src/ui/playing_field.rs | 8 +------- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 940003b..ef03c40 100644 --- a/Makefile +++ b/Makefile @@ -36,13 +36,13 @@ ifc-test: cd ifc && make test kifu-core/dev: - cd kifu/kifu-core && make test + cd kifu/core && make test kifu-core/test: - cd kifu/kifu-core && make test + cd kifu/core && make test kifu-core/test-oneshot: - cd kifu/kifu-core && make test-oneshot + cd kifu/core && make test-oneshot kifu-gtk: cd kifu/gtk && make release diff --git a/kifu/core/src/types.rs b/kifu/core/src/types.rs index fec9790..3249ea4 100644 --- a/kifu/core/src/types.rs +++ b/kifu/core/src/types.rs @@ -55,7 +55,7 @@ impl AppState { pub fn place_stone(&mut self, req: PlayStoneRequest) { match self.game { Some(ref mut game) => { - game.place_stone(Coordinate { + let _ = game.place_stone(Coordinate { column: req.column, row: req.row, }); diff --git a/kifu/gtk/src/ui/playing_field.rs b/kifu/gtk/src/ui/playing_field.rs index 74e4087..dce713e 100644 --- a/kifu/gtk/src/ui/playing_field.rs +++ b/kifu/gtk/src/ui/playing_field.rs @@ -5,13 +5,7 @@ use crate::{ }; use glib::Object; use gtk::{prelude::*, subclass::prelude::*}; -use kifu_core::{ - ui::{ - BoardElement, ChatElement, IntersectionElement, PlayerCardElement, PlayingFieldView, - StoneElement, TextFieldElement, - }, - Color, CoreApp, Size, -}; +use kifu_core::ui::PlayingFieldView; use std::{cell::RefCell, rc::Rc}; pub struct PlayingFieldPrivate {