mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix warning
Unused error reported.
This commit is contained in:
parent
e5cb687990
commit
17e44652b8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user