Skip to content

Commit

Permalink
cleanup variants in PackFileErrorKind
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Oct 28, 2024
1 parent 2bfa13c commit d0acebf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crates/core/src/repofile/packfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ pub enum PackFileErrorKind {
ReadingBinaryRepresentationFailed(binrw::Error),
/// Failed writing binary representation of the pack header: `{0:?}`
WritingBinaryRepresentationFailed(binrw::Error),
/// Read header length is too large! Length: `{size_real}`, file size: `{pack_size}`
HeaderLengthTooLarge { size_real: u32, pack_size: u32 },
/// decrypting from binary failed
BinaryDecryptionFailed,
/// Partial read of `PackFile` failed
PartialReadOfPackfileFailed,
/// writing Bytes failed
WritingBytesFailed,
}

pub(crate) type PackFileResult<T> = Result<T, PackFileErrorKind>;
Expand Down

0 comments on commit d0acebf

Please sign in to comment.