@@ -201,7 +201,7 @@ impl<'a> Object<'a> {
201
201
. iter ( )
202
202
. filter_map ( |header| {
203
203
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) {
205
205
Some ( header)
206
206
} else {
207
207
None
@@ -231,7 +231,7 @@ impl<'a> Object<'a> {
231
231
Err ( i) => i. checked_sub ( 1 ) ?,
232
232
} ;
233
233
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 ) {
235
235
self . strings . get ( sym. name ) . ok ( )
236
236
} else {
237
237
None
@@ -246,7 +246,7 @@ impl<'a> Object<'a> {
246
246
for section in self . sections . iter ( ) {
247
247
if let Ok ( Some ( mut notes) ) = section. notes ( self . endian , self . data ) {
248
248
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 ) {
250
250
return Some ( note. desc ( ) ) ;
251
251
}
252
252
}
@@ -297,7 +297,7 @@ fn decompress_zlib(input: &[u8], output: &mut [u8]) -> Option<()> {
297
297
0 ,
298
298
TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF | TINFL_FLAG_PARSE_ZLIB_HEADER ,
299
299
) ;
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 ( ) ) {
301
301
Some ( ( ) )
302
302
} else {
303
303
None
0 commit comments