Skip to content

Commit

Permalink
⚡ Implement TryFrom for SolidReadEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Jan 10, 2024
1 parent 1d7b583 commit 865f24f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/src/archive/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,13 @@ impl TryFrom<ChunkEntry> for SolidReadEntry {
));
}
}
Self::try_from(ChunkSolidEntries(entry.0))
}
}

impl TryFrom<ChunkSolidEntries> for SolidReadEntry {
type Error = io::Error;
fn try_from(entry: ChunkSolidEntries) -> Result<Self, Self::Error> {
let mut extra = vec![];
let mut data = vec![];
let mut info = None;
Expand Down

0 comments on commit 865f24f

Please sign in to comment.