mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Cursive::default fallbacks to dummy backend if nothing else is available
This commit is contained in:
parent
c34aeab99a
commit
6a29371076
@ -93,6 +93,13 @@ cfg_if::cfg_if! {
|
|||||||
Self::ncurses().unwrap()
|
Self::ncurses().unwrap()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
impl Default for Cursive {
|
||||||
|
fn default() -> Self {
|
||||||
|
log::warning!("No built-it backend, falling back to Cursive::dummy().");
|
||||||
|
Self::dummy()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user