mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +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