diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-03-14 23:14:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 18:44:15 +0100 |
commit | b4e42953e1d243f2eda20e5be6b845d60b7bf688 (patch) | |
tree | 10b3bfff165f9c04f9174c7c399d44b9b724c3b3 /core/error_codes.rs | |
parent | 4e3ed37037a2aa1edeac260dc3463a81d9cf9b88 (diff) |
feat(core): codegen ops (#13861)
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
Diffstat (limited to 'core/error_codes.rs')
-rw-r--r-- | core/error_codes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/error_codes.rs b/core/error_codes.rs index 43a6c4391..b34cbe639 100644 --- a/core/error_codes.rs +++ b/core/error_codes.rs @@ -1,6 +1,6 @@ use anyhow::Error; -pub(crate) fn get_error_code(err: &Error) -> Option<&'static str> { +pub fn get_error_code(err: &Error) -> Option<&'static str> { err .downcast_ref::<std::io::Error>() .map(|e| match e.raw_os_error() { |