bugfix: Reintroduce Error trait impl for SoftBufferError
This commit is contained in:
parent
abb7a4e9ac
commit
1f326b2199
1 changed files with 2 additions and 0 deletions
|
|
@ -137,6 +137,8 @@ impl fmt::Display for SoftBufferError {
|
|||
}
|
||||
}
|
||||
|
||||
impl std::error::Error for SoftBufferError {}
|
||||
|
||||
/// Convenient wrapper to cast errors into SoftBufferError.
|
||||
pub(crate) trait SwResultExt<T> {
|
||||
fn swbuf_err(self, msg: impl Into<String>) -> Result<T, SoftBufferError>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue