Skip to content

Commit 2f0ad62

Browse files
committed
Don't convert successful closure to error
1 parent ccd1319 commit 2f0ad62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/error.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ impl std::error::Error for Error {}
309309
impl Error {
310310
pub fn from_result(result: ctl_result_t) -> Result<(), Self> {
311311
match result {
312-
ctl_result_t::CTL_RESULT_SUCCESS => Ok(()),
312+
ctl_result_t::CTL_RESULT_SUCCESS
313+
| ctl_result_t::CTL_RESULT_SUCCESS_STILL_OPEN_BY_ANOTHER_CALLER => Ok(()),
313314
x => Err(Self(x)),
314315
}
315316
}

0 commit comments

Comments
 (0)