chore: Fix a build error
This commit is contained in:
parent
8e92cc4d81
commit
79fc5a9cdd
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ use std::default::Default;
|
||||||
use std::fmt::{Debug, Formatter};
|
use std::fmt::{Debug, Formatter};
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
use std::io::{BufReader, Cursor, SeekFrom};
|
use std::io::{BufReader, SeekFrom};
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::str::{from_utf8, Utf8Error};
|
use std::str::{from_utf8, Utf8Error};
|
||||||
|
@ -884,7 +884,7 @@ impl<W: Write + Seek> ZipWriter<W> {
|
||||||
// Add an extra field to the extra_data, per APPNOTE 4.6.11
|
// Add an extra field to the extra_data, per APPNOTE 4.6.11
|
||||||
let mut pad_body = vec![0; pad_length - 4];
|
let mut pad_body = vec![0; pad_length - 4];
|
||||||
if pad_body.len() >= 2 {
|
if pad_body.len() >= 2 {
|
||||||
Cursor::new(&mut pad_body).write_u16_le(options.alignment)?;
|
pad_body[0..2].copy_from_slice(&options.alignment.to_le_bytes());
|
||||||
}
|
}
|
||||||
writer.write_u16_le(0xa11e)?;
|
writer.write_u16_le(0xa11e)?;
|
||||||
writer
|
writer
|
||||||
|
|
Loading…
Add table
Reference in a new issue