use std::{
error::Error,
fmt,
};
mod target;
#[doc(inline)]
pub use self::{
target::InstallTarget,
};
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DirError {
CurrentUserHome,
CurrentUserConfigDir,
}
impl Error for DirError {}
impl fmt::Display for DirError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
Self::CurrentUserHome => {
write!(f, "Could not get current user's home directory")
},
Self::CurrentUserConfigDir => {
write!(f, "Could not get current user's config directory")
},
}
}
}