Fix back-end warnings

This commit is contained in:
nabijaczleweli 2016-10-12 09:47:20 +02:00
parent 2dc75c2ec0
commit e33474dd74
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1
2 changed files with 4 additions and 4 deletions

View File

@ -3,10 +3,9 @@ extern crate bear_lib_terminal;
use ::backend; use ::backend;
use ::event::{Event, Key}; use ::event::{Event, Key};
use self::bear_lib_terminal::Color as BltColor; 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 self::bear_lib_terminal::terminal::{self, Event as BltEvent, KeyCode};
use std::collections::BTreeMap; use std::collections::BTreeMap;
use std::io::Write;
use ::theme::{BaseColor, Color, ColorStyle, Effect}; use ::theme::{BaseColor, Color, ColorStyle, Effect};
pub struct Concrete { pub struct Concrete {
@ -15,7 +14,6 @@ pub struct Concrete {
impl backend::Backend for Concrete { impl backend::Backend for Concrete {
fn init() -> Self { fn init() -> Self {
// TODO: Make this configurable?
terminal::open("Cursive", 80, 24); terminal::open("Cursive", 80, 24);
terminal::set(terminal::config::Window::empty().resizeable(true)); 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); 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 // TODO: unsupported
} }

View File

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