diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
commit | 9918693037dce8aa4bb6f08741b6812923486c18 (patch) | |
tree | 21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/gix-pack/src/find.rs | |
parent | Releasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff) | |
download | rustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip |
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gix-pack/src/find.rs')
-rw-r--r-- | vendor/gix-pack/src/find.rs | 54 |
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. |