@@ -257,7 +257,7 @@ impl<'a> Object<'a> {
257
257
. iter ( )
258
258
. filter_map ( |header| {
259
259
let name = self . sections . section_name ( self . endian , header) . ok ( ) ?;
260
- if name. starts_with ( b".zdebug_" ) & ( & name[ 8 ..] == debug_name) {
260
+ if name. starts_with ( b".zdebug_" ) && & name[ 8 ..] == debug_name {
261
261
Some ( header)
262
262
} else {
263
263
None
@@ -287,7 +287,7 @@ impl<'a> Object<'a> {
287
287
Err ( i) => i. checked_sub ( 1 ) ?,
288
288
} ;
289
289
let sym = self . syms . get ( i) ?;
290
- if ( sym. address <= addr) & ( addr <= sym. address + sym. size ) {
290
+ if sym. address <= addr && addr <= sym. address + sym. size {
291
291
self . strings . get ( sym. name ) . ok ( )
292
292
} else {
293
293
None
@@ -302,7 +302,7 @@ impl<'a> Object<'a> {
302
302
for section in self . sections . iter ( ) {
303
303
if let Ok ( Some ( mut notes) ) = section. notes ( self . endian , self . data ) {
304
304
while let Ok ( Some ( note) ) = notes. next ( ) {
305
- if ( note. name ( ) == ELF_NOTE_GNU ) & ( note. n_type ( self . endian ) == NT_GNU_BUILD_ID ) {
305
+ if note. name ( ) == ELF_NOTE_GNU && note. n_type ( self . endian ) == NT_GNU_BUILD_ID {
306
306
return Some ( note. desc ( ) ) ;
307
307
}
308
308
}
@@ -353,7 +353,7 @@ fn decompress_zlib(input: &[u8], output: &mut [u8]) -> Option<()> {
353
353
0 ,
354
354
TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF | TINFL_FLAG_PARSE_ZLIB_HEADER ,
355
355
) ;
356
- if ( status == TINFLStatus :: Done ) & ( in_read == input. len ( ) ) & ( out_read == output. len ( ) ) {
356
+ if status == TINFLStatus :: Done && in_read == input. len ( ) && out_read == output. len ( ) {
357
357
Some ( ( ) )
358
358
} else {
359
359
None
0 commit comments