Separated entry into two submodules for reader and writer.

This commit is contained in:
2021-01-25 04:59:14 +00:00
parent 21480ebb0e
commit df08fc85a6
5 changed files with 216 additions and 198 deletions

View File

@@ -21,7 +21,7 @@ pub enum ReadEntryError {
/// Unable to parse entry
#[error("Unable to parse entry")]
ParseEntry(#[source] entry::FromBytesError),
ParseEntry(#[source] entry::reader::FromBytesError),
}
/// Error for [`DirWriter::to_writer`](super::DirWriter::to_writer)
@@ -58,7 +58,7 @@ pub enum WriteEntriesError<E: std::error::Error + 'static> {
/// Unable to seek to entries
#[error("Unable to seek to entries")]
SeekToEntries(#[source] io::Error),
/// Unable to write all entries
#[error("Unable to write entries")]
WriteEntries(#[source] io::Error),