Skip to content

Commit a0ced19

Browse files
committed
style: cargo fmt --all
1 parent 4b88b98 commit a0ced19

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@ impl<R: Read> Drop for ZipFile<'_, R> {
19251925
/// * `data_start`: set to 0
19261926
/// * `external_attributes`: `unix_mode()`: will return None
19271927
pub fn read_zipfile_from_stream<R: Read>(reader: &mut R) -> ZipResult<Option<ZipFile<'_, R>>> {
1928-
let block = read_local_fileblock(reader)?;
1928+
let block = read_local_fileblock(reader)?;
19291929
let block = match block {
19301930
Some(block) => block,
19311931
None => return Ok(None),

src/types.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,8 @@ impl FixedSizeBlock for crate::types::ZipDataDescriptor {
11131113
self.magic
11141114
}
11151115

1116-
const WRONG_MAGIC_ERROR: ZipError = ZipError::InvalidArchive(Cow::Borrowed("Invalid data descriptor"));
1116+
const WRONG_MAGIC_ERROR: ZipError =
1117+
ZipError::InvalidArchive(Cow::Borrowed("Invalid data descriptor"));
11171118

11181119
to_and_from_le![
11191120
(magic, spec::Magic),

0 commit comments

Comments
 (0)