From 1d9ad1ff65cc0a096365dc00e90dc7d2d2147b83 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 4 Jan 2023 11:05:37 +0000 Subject: [PATCH] surf: remove object::Error The Error type is no longer used thanks to the clean up of the Tree and Blob constructions now being exposed through Repository. Remove the Error type and clean up the imports as a result. Signed-off-by: Fintan Halpenny X-Clacks-Overhead: GNU Terry Pratchett --- radicle-surf/src/object.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/radicle-surf/src/object.rs b/radicle-surf/src/object.rs index 4ecb18e..f95a15a 100644 --- a/radicle-surf/src/object.rs +++ b/radicle-surf/src/object.rs @@ -18,8 +18,6 @@ //! Common definitions for git objects (blob and tree). //! See git [doc](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects) for more details. -use std::path::PathBuf; - pub mod blob; pub use blob::{Blob, BlobContent}; @@ -27,23 +25,3 @@ pub mod tree; pub use tree::{Tree, TreeEntry}; pub mod commit; - -use crate::{fs, git}; - -/// An error reported by object types. -#[derive(Debug, thiserror::Error)] -pub enum Error { - #[error(transparent)] - Directory(#[from] fs::error::Directory), - - #[error(transparent)] - File(#[from] fs::error::File), - - /// An error occurred during a git operation. - #[error(transparent)] - Git(#[from] git::Error), - - /// Trying to find a file path which could not be found. - #[error("the path '{0}' was not found")] - PathNotFound(PathBuf), -}