This commit is contained in:
Aiden McClelland
2021-07-01 10:51:22 -06:00
committed by Aiden McClelland
parent ffb9a72e18
commit 3f416dda1b
19 changed files with 258 additions and 49 deletions

View File

@@ -67,7 +67,7 @@ impl<R: AsyncRead + AsyncSeek + Unpin> S9pkReader<InstallProgressTracker<R>> {
}
impl<R: AsyncRead + AsyncSeek + Unpin> S9pkReader<R> {
pub async fn validate(&mut self) -> Result<(), Error> {
todo!()
Ok(())
}
pub async fn from_reader(mut rdr: R) -> Result<Self, Error> {
let header = Header::deserialize(&mut rdr).await?;