diff --git a/src/elf.rs b/src/elf.rs index 541658f3..7bfa82fc 100644 --- a/src/elf.rs +++ b/src/elf.rs @@ -1868,6 +1868,7 @@ pub const ELF_NOTE_OS_FREEBSD: u32 = 3; /// The descriptor begins with two words: /// - word 0: number of entries /// - word 1: bitmask of enabled entries +/// /// Then follow variable-length entries, one byte followed by a /// '\0'-terminated hwcap name string. The byte gives the bit /// number to test if enabled, (1U << bit) & bitmask. */ diff --git a/src/lib.rs b/src/lib.rs index 91b47265..8d85e206 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -49,6 +49,7 @@ // Style. #![allow(clippy::collapsible_else_if)] #![allow(clippy::collapsible_if)] +#![allow(clippy::collapsible_match)] #![allow(clippy::comparison_chain)] #![allow(clippy::field_reassign_with_default)] #![allow(clippy::manual_flatten)] diff --git a/src/read/archive.rs b/src/read/archive.rs index 0e01b8a6..f4fc757c 100644 --- a/src/read/archive.rs +++ b/src/read/archive.rs @@ -630,7 +630,7 @@ enum SymbolIteratorInternal<'data> { /// Contains: /// - the size in bytes of the offsets array as a 32-bit little-endian integer /// - the offsets array, for which each entry is a pair of 32-bit little-endian integers - /// for the offset of the member header and the offset of the symbol name + /// for the offset of the member header and the offset of the symbol name /// - the size in bytes of the symbol names as a 32-bit little-endian integer /// - the symbol names as null-terminated strings Bsd { @@ -642,7 +642,7 @@ enum SymbolIteratorInternal<'data> { /// Contains: /// - the size in bytes of the offsets array as a 64-bit little-endian integer /// - the offsets array, for which each entry is a pair of 64-bit little-endian integers - /// for the offset of the member header and the offset of the symbol name + /// for the offset of the member header and the offset of the symbol name /// - the size in bytes of the symbol names as a 64-bit little-endian integer /// - the symbol names as null-terminated strings Bsd64 { diff --git a/src/read/pe/data_directory.rs b/src/read/pe/data_directory.rs index 262851ef..be7a00fd 100644 --- a/src/read/pe/data_directory.rs +++ b/src/read/pe/data_directory.rs @@ -178,9 +178,9 @@ impl pe::ImageDataDirectory { /// This function has some limitations: /// - It requires that the data is contained in a single section. /// - It uses the size field of the directory entry, which is - /// not desirable for all data directories. + /// not desirable for all data directories. /// - It uses the `virtual_address` of the directory entry as an address, - /// which is not valid for `IMAGE_DIRECTORY_ENTRY_SECURITY`. + /// which is not valid for `IMAGE_DIRECTORY_ENTRY_SECURITY`. pub fn file_range(&self, sections: &SectionTable<'_>) -> Result<(u32, u32)> { let (offset, section_size) = sections .pe_file_range_at(self.virtual_address.get(LE)) @@ -197,9 +197,9 @@ impl pe::ImageDataDirectory { /// This function has some limitations: /// - It requires that the data is contained in a single section. /// - It uses the size field of the directory entry, which is - /// not desirable for all data directories. + /// not desirable for all data directories. /// - It uses the `virtual_address` of the directory entry as an address, - /// which is not valid for `IMAGE_DIRECTORY_ENTRY_SECURITY`. + /// which is not valid for `IMAGE_DIRECTORY_ENTRY_SECURITY`. pub fn data<'data, R: ReadRef<'data>>( &self, data: R,