@@ -201,7 +201,7 @@ impl<'a> Object<'a> {
201201 . iter ( )
202202 . filter_map ( |header| {
203203 let name = self . sections . section_name ( self . endian , header) . ok ( ) ?;
204- if name. starts_with ( b".zdebug_" ) && & name[ 8 ..] == debug_name {
204+ if name. starts_with ( b".zdebug_" ) & ( & name[ 8 ..] == debug_name) {
205205 Some ( header)
206206 } else {
207207 None
@@ -231,7 +231,7 @@ impl<'a> Object<'a> {
231231 Err ( i) => i. checked_sub ( 1 ) ?,
232232 } ;
233233 let sym = self . syms . get ( i) ?;
234- if sym. address <= addr && addr <= sym. address + sym. size {
234+ if ( sym. address <= addr) & ( addr <= sym. address + sym. size ) {
235235 self . strings . get ( sym. name ) . ok ( )
236236 } else {
237237 None
@@ -246,7 +246,7 @@ impl<'a> Object<'a> {
246246 for section in self . sections . iter ( ) {
247247 if let Ok ( Some ( mut notes) ) = section. notes ( self . endian , self . data ) {
248248 while let Ok ( Some ( note) ) = notes. next ( ) {
249- if note. name ( ) == ELF_NOTE_GNU && note. n_type ( self . endian ) == NT_GNU_BUILD_ID {
249+ if ( note. name ( ) == ELF_NOTE_GNU ) & ( note. n_type ( self . endian ) == NT_GNU_BUILD_ID ) {
250250 return Some ( note. desc ( ) ) ;
251251 }
252252 }
@@ -297,7 +297,7 @@ fn decompress_zlib(input: &[u8], output: &mut [u8]) -> Option<()> {
297297 0 ,
298298 TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF | TINFL_FLAG_PARSE_ZLIB_HEADER ,
299299 ) ;
300- if status == TINFLStatus :: Done && in_read == input. len ( ) && out_read == output. len ( ) {
300+ if ( status == TINFLStatus :: Done ) & ( in_read == input. len ( ) ) & ( out_read == output. len ( ) ) {
301301 Some ( ( ) )
302302 } else {
303303 None
0 commit comments