diff --git a/src/ariadne/src/lib.rs b/src/ariadne/src/lib.rs index 3f7acde..a23853f 100644 --- a/src/ariadne/src/lib.rs +++ b/src/ariadne/src/lib.rs @@ -3,28 +3,7 @@ use std::fs; use std::io::{self, Write}; use std::path::{Path, PathBuf}; -pub type Result = std::result::Result; - -#[derive(Debug)] -pub enum Error { - Io(io::Error), -} - -impl std::fmt::Display for Error { - fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - match self { - Error::Io(error) => write!(formatter, "{error}"), - } - } -} - -impl std::error::Error for Error {} - -impl From for Error { - fn from(error: io::Error) -> Self { - Error::Io(error) - } -} +pub type Result = io::Result; #[derive(Debug, Clone)] pub struct Config {