summaryrefslogtreecommitdiffstats
path: root/src/error/error_kind.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error/error_kind.rs')
-rw-r--r--src/error/error_kind.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/error/error_kind.rs b/src/error/error_kind.rs
index a878b84..1d68d29 100644
--- a/src/error/error_kind.rs
+++ b/src/error/error_kind.rs
@@ -2,7 +2,7 @@ use std::convert::From;
use std::io;
#[derive(Clone, Debug)]
-pub enum JoshutoErrorKind {
+pub enum AppErrorKind {
// io related
Io(io::ErrorKind),
@@ -28,25 +28,25 @@ pub enum JoshutoErrorKind {
UnknownError,
}
-impl From<io::ErrorKind> for JoshutoErrorKind {
+impl From<io::ErrorKind> for AppErrorKind {
fn from(err: io::ErrorKind) -> Self {
Self::Io(err)
}
}
-impl From<&globset::ErrorKind> for JoshutoErrorKind {
+impl From<&globset::ErrorKind> for AppErrorKind {
fn from(_: &globset::ErrorKind) -> Self {
Self::Glob
}
}
-impl From<std::env::VarError> for JoshutoErrorKind {
+impl From<std::env::VarError> for AppErrorKind {
fn from(_: std::env::VarError) -> Self {
Self::EnvVarNotPresent
}
}
-impl From<toml::de::Error> for JoshutoErrorKind {
+impl From<toml::de::Error> for AppErrorKind {
fn from(err: toml::de::Error) -> Self {
Self::TomlDeError(err)
}