From ebf7e2b2cafcab3ae9b58a987967f54e897d57fa Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Fri, 17 Aug 2018 14:08:21 -0700 Subject: [PATCH] Fix warning --- examples/mines/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mines/main.rs b/examples/mines/main.rs index 1fc5e5d..148d71f 100644 --- a/examples/mines/main.rs +++ b/examples/mines/main.rs @@ -218,7 +218,7 @@ impl cursive::view::View for BoardView { Event::Mouse { offset, position, - event: MouseEvent::Press(btn), + event: MouseEvent::Press(_btn), } => { // Get cell for position if let Some(pos) = self.get_cell(position, offset) { @@ -263,7 +263,7 @@ impl cursive::view::View for BoardView { } fn new_game(siv: &mut Cursive, options: game::Options) { - let board = game::Board::new(options); + let _board = game::Board::new(options); siv.add_layer( Dialog::new()