mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix warning
This commit is contained in:
parent
810dc6a591
commit
ebf7e2b2ca
@ -218,7 +218,7 @@ impl cursive::view::View for BoardView {
|
|||||||
Event::Mouse {
|
Event::Mouse {
|
||||||
offset,
|
offset,
|
||||||
position,
|
position,
|
||||||
event: MouseEvent::Press(btn),
|
event: MouseEvent::Press(_btn),
|
||||||
} => {
|
} => {
|
||||||
// Get cell for position
|
// Get cell for position
|
||||||
if let Some(pos) = self.get_cell(position, offset) {
|
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) {
|
fn new_game(siv: &mut Cursive, options: game::Options) {
|
||||||
let board = game::Board::new(options);
|
let _board = game::Board::new(options);
|
||||||
|
|
||||||
siv.add_layer(
|
siv.add_layer(
|
||||||
Dialog::new()
|
Dialog::new()
|
||||||
|
Loading…
Reference in New Issue
Block a user