Skip to content

Commit 9d87937

Browse files
committed
Fix clippy warnings
1 parent 71f9edb commit 9d87937

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

src/macho.rs

-21
Original file line numberDiff line numberDiff line change
@@ -305,39 +305,28 @@ pub struct DyldCacheHeader<E: Endian> {
305305
pub images_count: U32<E>, // offset: 0x1c
306306
/// base address of dyld when cache was built
307307
pub dyld_base_address: U64<E>, // offset: 0x20
308-
///
309308
reserved1: [u8; 32], // offset: 0x28
310309
/// file offset of where local symbols are stored
311310
pub local_symbols_offset: U64<E>, // offset: 0x48
312311
/// size of local symbols information
313312
pub local_symbols_size: U64<E>, // offset: 0x50
314313
/// unique value for each shared cache file
315314
pub uuid: [u8; 16], // offset: 0x58
316-
///
317315
reserved2: [u8; 32], // offset: 0x68
318-
///
319316
reserved3: [u8; 32], // offset: 0x88
320-
///
321317
reserved4: [u8; 32], // offset: 0xa8
322-
///
323318
reserved5: [u8; 32], // offset: 0xc8
324-
///
325319
reserved6: [u8; 32], // offset: 0xe8
326-
///
327320
reserved7: [u8; 32], // offset: 0x108
328-
///
329321
reserved8: [u8; 32], // offset: 0x128
330-
///
331322
reserved9: [u8; 32], // offset: 0x148
332-
///
333323
reserved10: [u8; 32], // offset: 0x168
334324
/// file offset to first dyld_subcache_info
335325
pub subcaches_offset: U32<E>, // offset: 0x188
336326
/// number of dyld_subcache_info entries
337327
pub subcaches_count: U32<E>, // offset: 0x18c
338328
/// the UUID of the .symbols subcache
339329
pub symbols_subcache_uuid: [u8; 16], // offset: 0x190
340-
///
341330
reserved11: [u8; 32], // offset: 0x1a0
342331
/// file offset to first dyld_cache_image_info
343332
/// Use this instead of images_offset if mapping_offset is at least 0x1c4.
@@ -351,31 +340,21 @@ pub struct DyldCacheHeader<E: Endian> {
351340
#[derive(Debug, Clone, Copy)]
352341
#[repr(C)]
353342
pub struct DyldCacheMappingInfo<E: Endian> {
354-
///
355343
pub address: U64<E>,
356-
///
357344
pub size: U64<E>,
358-
///
359345
pub file_offset: U64<E>,
360-
///
361346
pub max_prot: U32<E>,
362-
///
363347
pub init_prot: U32<E>,
364348
}
365349

366350
/// Corresponds to struct dyld_cache_image_info from dyld_cache_format.h.
367351
#[derive(Debug, Clone, Copy)]
368352
#[repr(C)]
369353
pub struct DyldCacheImageInfo<E: Endian> {
370-
///
371354
pub address: U64<E>,
372-
///
373355
pub mod_time: U64<E>,
374-
///
375356
pub inode: U64<E>,
376-
///
377357
pub path_file_offset: U32<E>,
378-
///
379358
pub pad: U32<E>,
380359
}
381360

src/read/archive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl<'data, R: ReadRef<'data>> ArchiveFile<'data, R> {
145145
}
146146
}
147147
if tail < len {
148-
let member = ArchiveMember::parse(data, &mut tail, &file.names, thin)?;
148+
let member = ArchiveMember::parse(data, &mut tail, file.names, thin)?;
149149
if member.name == b"/<ECSYMBOLS>/" {
150150
// COFF EC Symbol Table.
151151
members_offset = tail;

0 commit comments

Comments
 (0)