summaryrefslogtreecommitdiff
path: root/core/error_codes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/error_codes.rs')
-rw-r--r--core/error_codes.rs2
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() {