From a0327619baf12dff47b507695d2c2d2c9e1a9d97 Mon Sep 17 00:00:00 2001 From: casept Date: Mon, 23 Jan 2023 14:17:21 +0100 Subject: [PATCH] fix: Resolve clippy lints in PE --- symbolic-debuginfo/src/pe.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/symbolic-debuginfo/src/pe.rs b/symbolic-debuginfo/src/pe.rs index 260703699..9e0e88f9c 100644 --- a/symbolic-debuginfo/src/pe.rs +++ b/symbolic-debuginfo/src/pe.rs @@ -252,7 +252,7 @@ impl<'data> PeObject<'data> { return Some(s.clone()); } } - return None; + None } /// Returns exception data containing unwind information. @@ -387,7 +387,7 @@ impl<'data> Dwarf<'data> for PeObject<'data> { fn endianity(&self) -> RunTimeEndian { // According to https://reverseengineering.stackexchange.com/questions/17922/determining-endianness-of-pe-files-windows-on-arm, // the only known platform running PE's with big-endian code is the Xbox360. Probably not worth handling. - return RunTimeEndian::Little; + RunTimeEndian::Little } fn raw_section(&self, name: &str) -> Option> { @@ -403,6 +403,6 @@ impl<'data> Dwarf<'data> for PeObject<'data> { offset: u64::from(sect.pointer_to_raw_data), align: 4096, // TODO: Does goblin expose this? For now, assume 4K page size }; - return Some(dwarf_sect); + Some(dwarf_sect) } }