mirror of
https://github.com/dnlbauer/xdrfile.git
synced 2026-09-10 22:25:30 +00:00
check_code should not be public
This commit is contained in:
@@ -135,7 +135,7 @@ macro_rules! to {
|
|||||||
/// `code` should be an integer return code returned from the C API.
|
/// `code` should be an integer return code returned from the C API.
|
||||||
/// If `code` indicates the function returned successfully, None is returned;
|
/// If `code` indicates the function returned successfully, None is returned;
|
||||||
/// otherwise, the code is converted into the appropriate `Error`.
|
/// otherwise, the code is converted into the appropriate `Error`.
|
||||||
pub fn check_code(code: impl Into<ErrorCode>, task: ErrorTask) -> Option<Error> {
|
fn check_code(code: impl Into<ErrorCode>, task: ErrorTask) -> Option<Error> {
|
||||||
let code: ErrorCode = code.into();
|
let code: ErrorCode = code.into();
|
||||||
if let ErrorCode::ExdrOk = code {
|
if let ErrorCode::ExdrOk = code {
|
||||||
None
|
None
|
||||||
|
|||||||
Reference in New Issue
Block a user