summaryrefslogtreecommitdiff
path: root/core/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/error.rs')
-rw-r--r--core/error.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/error.rs b/core/error.rs
index 1d31df5ed..8e4138889 100644
--- a/core/error.rs
+++ b/core/error.rs
@@ -12,7 +12,6 @@ use std::fmt;
use std::fmt::Debug;
use std::fmt::Display;
use std::fmt::Formatter;
-use std::io;
/// A generic wrapper that can encapsulate any concrete error type.
pub type AnyError = anyhow::Error;
@@ -41,10 +40,6 @@ pub fn uri_error(message: impl Into<Cow<'static, str>>) -> AnyError {
custom_error("URIError", message)
}
-pub fn last_os_error() -> AnyError {
- io::Error::last_os_error().into()
-}
-
pub fn bad_resource(message: impl Into<Cow<'static, str>>) -> AnyError {
custom_error("BadResource", message)
}