diff options
Diffstat (limited to 'vendor/gix-odb/src/find.rs')
-rw-r--r-- | vendor/gix-odb/src/find.rs | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/vendor/gix-odb/src/find.rs b/vendor/gix-odb/src/find.rs index 196845c4d..1ee1fa8ed 100644 --- a/vendor/gix-odb/src/find.rs +++ b/vendor/gix-odb/src/find.rs @@ -1,56 +1,3 @@ -/// The error type returned by the [`Find`](crate::Find) and [`Header`](crate::Header) traits. -pub type Error = Box<dyn std::error::Error + Send + Sync + 'static>; -/// -pub mod existing { - use gix_hash::ObjectId; - - /// The error returned by the [`find(…)`][crate::FindExt::find()] trait methods. - #[derive(Debug, thiserror::Error)] - #[allow(missing_docs)] - pub enum Error { - #[error(transparent)] - Find(crate::find::Error), - #[error("An object with id {} could not be found", .oid)] - NotFound { oid: ObjectId }, - } -} - -/// -pub mod existing_object { - use gix_hash::ObjectId; - - /// The error returned by the various [`find_*()`][crate::FindExt::find_commit()] trait methods. - #[derive(Debug, thiserror::Error)] - #[allow(missing_docs)] - pub enum Error { - #[error(transparent)] - Find(crate::find::Error), - #[error(transparent)] - Decode(gix_object::decode::Error), - #[error("An object with id {oid} could not be found")] - NotFound { oid: ObjectId }, - #[error("Expected object of kind {expected}")] - ObjectKind { expected: gix_object::Kind }, - } -} - -/// -pub mod existing_iter { - use gix_hash::ObjectId; - - /// The error returned by the various [`find_*_iter()`][crate::FindExt::find_commit_iter()] trait methods. - #[derive(Debug, thiserror::Error)] - #[allow(missing_docs)] - pub enum Error { - #[error(transparent)] - Find(crate::find::Error), - #[error("An object with id {oid} could not be found")] - NotFound { oid: ObjectId }, - #[error("Expected object of kind {expected}")] - ObjectKind { expected: gix_object::Kind }, - } -} - /// An object header informing about object properties, without it being fully decoded in the process. #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] pub enum Header { |