mirror of
https://github.com/Drop-OSS/droplet.git
synced 2025-11-09 20:12:18 +10:00
fix: zip file reader offset
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@drop-oss/droplet",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"napi": {
|
||||
|
||||
@ -121,7 +121,7 @@ impl<'a> Read for ZipFileWrapper<'a> {
|
||||
}
|
||||
impl<'a> Skippable for ZipFileWrapper<'a> {
|
||||
fn skip(&mut self, amount: u64) {
|
||||
io::copy(&mut self.reader.by_ref().take(amount), &mut Sink::default()).unwrap();
|
||||
io::copy(&mut self.take(amount), &mut Sink::default()).unwrap();
|
||||
}
|
||||
}
|
||||
impl<'a> MinimumFileObject for ZipFileWrapper<'a> {}
|
||||
|
||||
Reference in New Issue
Block a user