clippy things

This commit is contained in:
Folkert 2022-09-29 00:27:28 +02:00
parent 1254c9f8db
commit 1a7025b20c
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 1 additions and 17 deletions

View file

@ -1534,6 +1534,7 @@ mod tests {
}
/// This zig code sample containts a static relocation
#[allow(dead_code)]
fn static_relocation_help(dir: &Path) {
let host_zig = indoc!(
r#"

View file

@ -375,20 +375,6 @@ pub(crate) fn open_mmap_mut(path: &Path, length: usize) -> MmapMut {
/// # dbg_hex
/// display dbg result in hexadecimal `{:#x?}` format.
///
/// # usage
/// Replace `dbg!()` with `dbg_hex!()`
///
/// # example
/// ```rust, no_run
/// use dbg_hex::dbg_hex;
/// dbg_hex!(0x16 + 0x16);
/// ```
///
/// output
/// ```text
/// [src/lib.rs:38] 0x16 + 0x16 = 0x2c
/// ```
#[macro_export]
macro_rules! dbg_hex {
// NOTE: We cannot use `concat!` to make a static string as a format argument

View file

@ -1057,9 +1057,6 @@ fn write_section_header(
mod test {
const PE_DYNHOST: &[u8] = include_bytes!("../dynhost_benchmarks_windows.exe") as &[_];
use std::ops::Deref;
use object::pe::ImageFileHeader;
use object::read::pe::PeFile64;
use object::{pe, LittleEndian as LE, Object};