From 6111c481fac3d5c305a379b3be8afb87190db3d5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 6 Nov 2022 21:44:13 -0800 Subject: iroh-car: move vendoring into sub-module of pds crate So we don't need to re-publish this as a separate crate. --- iroh-car/src/error.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 iroh-car/src/error.rs (limited to 'iroh-car/src/error.rs') diff --git a/iroh-car/src/error.rs b/iroh-car/src/error.rs deleted file mode 100644 index 3579413..0000000 --- a/iroh-car/src/error.rs +++ /dev/null @@ -1,28 +0,0 @@ -use thiserror::Error; - -/// Car utility error -#[derive(Debug, Error)] -pub enum Error { - #[error("Failed to parse CAR file: {0}")] - Parsing(String), - #[error("Invalid CAR file: {0}")] - InvalidFile(String), - #[error("Io error: {0}")] - Io(#[from] std::io::Error), - #[error("Cbor encoding error: {0}")] - Cbor(#[from] ipld::error::Error), - #[error("ld read too large {0}")] - LdReadTooLarge(usize), -} - -impl From for Error { - fn from(err: cid::Error) -> Error { - Error::Parsing(err.to_string()) - } -} - -impl From for Error { - fn from(err: cid::multihash::Error) -> Error { - Error::Parsing(err.to_string()) - } -} -- cgit v1.2.3