Fix warning

Unused error reported.
This commit is contained in:
Alexandre Bury 2015-06-05 21:13:34 -07:00
parent e5cb687990
commit 17e44652b8

View File

@ -107,7 +107,7 @@ impl Cursive {
/// Returns TRUE if the theme was successfully loaded. /// Returns TRUE if the theme was successfully loaded.
pub fn load_theme<P: AsRef<Path>>(&mut self, filename: P) -> bool { pub fn load_theme<P: AsRef<Path>>(&mut self, filename: P) -> bool {
match theme::load_theme(filename) { match theme::load_theme(filename) {
Err(err) => return false, Err(_) => return false,
Ok(theme) => self.theme = theme, Ok(theme) => self.theme = theme,
} }
true true