summaryrefslogtreecommitdiffstats
path: root/vendor/gix-pack/src/find.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix-pack/src/find.rs')
-rw-r--r--vendor/gix-pack/src/find.rs54
1 files changed, 0 insertions, 54 deletions
diff --git a/vendor/gix-pack/src/find.rs b/vendor/gix-pack/src/find.rs
index b049d4d78..efc9513ed 100644
--- a/vendor/gix-pack/src/find.rs
+++ b/vendor/gix-pack/src/find.rs
@@ -1,57 +1,3 @@
-/// The error returned by methods of the [Find](crate::Find) trait.
-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 {} could not be found", .oid)]
- NotFound { oid: ObjectId },
- #[error("Expected object of kind {} something else", .expected)]
- ObjectKind { expected: gix_object::Kind },
- }
-}
-
-///
-pub mod existing_iter {
- 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("An object with id {} could not be found", .oid)]
- NotFound { oid: ObjectId },
- #[error("Expected object of kind {} something else", .expected)]
- ObjectKind { expected: gix_object::Kind },
- }
-}
-
/// An Entry in a pack providing access to its data.
///
/// Its commonly retrieved by reading from a pack index file followed by a read from a pack data file.