From bf3a116797d92aff3f7ca4870d9fc11ec6a4bff9 Mon Sep 17 00:00:00 2001 From: alexion Date: Tue, 8 Sep 2026 20:01:39 -0400 Subject: [PATCH] refactor(ariadne): use io result in CLI skeleton --- src/ariadne/src/lib.rs | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) 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 {