mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-08 18:30:40 +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()
|
||||
}
|
||||
}
|
||||
} 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