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

@ -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