mirror of
https://github.com/nushell/reedline.git
synced 2024-10-27 01:45:51 +03:00
Make Result
and ReedlineError
public (#661)
* Make `Result` and `ReedlineError` public Allows implementing custom `History` types * Fix: style * Add rustdoc for reedline::Result
This commit is contained in:
parent
c853d71e66
commit
16ac4411f0
@ -239,7 +239,7 @@ mod engine;
|
||||
pub use engine::Reedline;
|
||||
|
||||
mod result;
|
||||
pub(crate) use result::Result;
|
||||
pub use result::{ReedlineError, Result};
|
||||
|
||||
mod history;
|
||||
#[cfg(any(feature = "sqlite", feature = "sqlite-dynlib"))]
|
||||
|
@ -30,5 +30,5 @@ impl Display for ReedlineError {
|
||||
}
|
||||
impl std::error::Error for ReedlineError {}
|
||||
|
||||
// for now don't expose the above error type to the public
|
||||
/// Standard [`std::result::Result`], with [`ReedlineError`] as the error variant
|
||||
pub type Result<T> = std::result::Result<T, ReedlineError>;
|
||||
|
Loading…
Reference in New Issue
Block a user