chore: Update cursive to 0.21.0
* Update cursive to 0.21.0 * Inject TERM=xterm in CI to help build ncurses backend
This commit is contained in:
@@ -44,7 +44,6 @@ pub fn setup_logging(filename: &Path) -> Result<(), fern::InitError> {
|
||||
.level(log::LevelFilter::Trace)
|
||||
// Set runtime log level for modules
|
||||
.level_for("librespot", log::LevelFilter::Debug)
|
||||
.level_for("cursive_buffered_backend", log::LevelFilter::Debug)
|
||||
// Output to stdout, files, and other Dispatch configurations
|
||||
.chain(fern::log_file(filename)?)
|
||||
// Apply globally
|
||||
|
||||
@@ -29,7 +29,7 @@ pub trait SelectViewExt {
|
||||
fn handle_command(&mut self, cmd: &Command) -> Result<CommandResult, String>;
|
||||
}
|
||||
|
||||
impl<T: 'static> SelectViewExt for cursive::views::SelectView<T> {
|
||||
impl<T: Send + Sync + 'static> SelectViewExt for cursive::views::SelectView<T> {
|
||||
fn handle_command(&mut self, cmd: &Command) -> Result<CommandResult, String> {
|
||||
match cmd {
|
||||
Command::Move(mode, amount) => {
|
||||
|
||||
@@ -375,7 +375,7 @@ impl ViewExt for SelectArtistActionMenu {
|
||||
}
|
||||
}
|
||||
|
||||
fn handle_move_command<T: 'static>(
|
||||
fn handle_move_command<T: Send + Sync + 'static>(
|
||||
sel: &mut Modal<Dialog>,
|
||||
s: &mut Cursive,
|
||||
cmd: &Command,
|
||||
|
||||
@@ -26,8 +26,7 @@ pub mod cover;
|
||||
/// Create a CursiveRunner which implements the drawing logic and event loop.
|
||||
pub fn create_cursive() -> Result<CursiveRunner<Cursive>, Box<dyn std::error::Error>> {
|
||||
let backend = cursive::backends::try_default()?;
|
||||
let buffered_backend = Box::new(cursive_buffered_backend::BufferedBackend::new(backend));
|
||||
let mut cursive_runner = CursiveRunner::new(cursive::Cursive::new(), buffered_backend);
|
||||
let mut cursive_runner = CursiveRunner::new(cursive::Cursive::new(), backend);
|
||||
|
||||
cursive_runner.set_window_title(BIN_NAME);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user