Merge pull request #79 from nabijaczleweli/master

Fix warnings in back-ends
This commit is contained in:
Alexandre Bury 2016-10-12 11:36:27 -07:00 committed by GitHub
commit 80fa9a4180
2 changed files with 4 additions and 4 deletions

View File

@ -3,10 +3,9 @@ extern crate bear_lib_terminal;
use ::backend;
use ::event::{Event, Key};
use self::bear_lib_terminal::Color as BltColor;
use self::bear_lib_terminal::geometry::{Point, Size};
use self::bear_lib_terminal::geometry::Size;
use self::bear_lib_terminal::terminal::{self, Event as BltEvent, KeyCode};
use std::collections::BTreeMap;
use std::io::Write;
use ::theme::{BaseColor, Color, ColorStyle, Effect};
pub struct Concrete {
@ -15,7 +14,6 @@ pub struct Concrete {
impl backend::Backend for Concrete {
fn init() -> Self {
// TODO: Make this configurable?
terminal::open("Cursive", 80, 24);
terminal::set(terminal::config::Window::empty().resizeable(true));
@ -74,7 +72,7 @@ impl backend::Backend for Concrete {
terminal::print_xy(x as i32, y as i32, text);
}
fn set_refresh_rate(&mut self, fps: u32) {
fn set_refresh_rate(&mut self, _: u32) {
// TODO: unsupported
}

View File

@ -5,8 +5,10 @@ use theme;
mod termion;
#[cfg(feature = "bear-lib-terminal")]
mod blt;
#[cfg(any(feature = "ncurses", feature = "pancurses"))]
mod curses;
#[cfg(any(feature = "ncurses", feature = "pancurses"))]
pub use self::curses::*;
#[cfg(feature = "termion")]
pub use self::termion::*;