Fix blt runnable

This commit is contained in:
Alexandre Bury 2020-08-04 23:35:43 -07:00
parent 2cd6d7a80c
commit 76170ab2dd

View File

@ -110,7 +110,9 @@ impl CursiveRunnable {
/// _Requires the `blt-backend` feature._
#[cfg(feature = "blt-backend")]
pub fn blt() -> Self {
Self::new(|| Ok(backends::blt::Backend::init()))
Self::new::<std::convert::Infallible, _>(|| {
Ok(backends::blt::Backend::init())
})
}
/// Creates a new Cursive wrapper using one of the available backends.