Skip to content

Commit aace8e5

Browse files
committed
src/pe: rustfmt
1 parent a5960be commit aace8e5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/pe/optional_header.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl From<StandardFields> for StandardFields32 {
8282
size_of_uninitialized_data: fields.size_of_uninitialized_data as u32,
8383
address_of_entry_point: fields.address_of_entry_point as u32,
8484
base_of_code: fields.base_of_code as u32,
85-
base_of_data: fields.base_of_data
85+
base_of_data: fields.base_of_data,
8686
}
8787
}
8888
}
@@ -113,7 +113,7 @@ impl From<StandardFields> for StandardFields64 {
113113
size_of_initialized_data: fields.size_of_initialized_data as u32,
114114
size_of_uninitialized_data: fields.size_of_uninitialized_data as u32,
115115
address_of_entry_point: fields.address_of_entry_point as u32,
116-
base_of_code: fields.base_of_code as u32
116+
base_of_code: fields.base_of_code as u32,
117117
}
118118
}
119119
}
@@ -366,7 +366,7 @@ impl ctx::TryIntoCtx<scroll::Endian> for OptionalHeader {
366366
bytes.gwrite_with(self.windows_fields, offset, ctx)?;
367367
bytes.gwrite_with(self.data_directories, offset, ctx)?;
368368
}
369-
_ => panic!()
369+
_ => panic!(),
370370
}
371371
Ok(*offset)
372372
}

src/pe/symbol.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,7 @@ impl<'a> ctx::TryIntoCtx<scroll::Endian> for SymbolTable<'a> {
488488
type Error = error::Error;
489489

490490
fn try_into_ctx(self, bytes: &mut [u8], _ctx: scroll::Endian) -> Result<usize, Self::Error> {
491-
bytes.pwrite(self.symbols, 0)
492-
.map_err(|err| err.into())
491+
bytes.pwrite(self.symbols, 0).map_err(|err| err.into())
493492
}
494493
}
495494

0 commit comments

Comments
 (0)