mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
clippy things
This commit is contained in:
parent
1254c9f8db
commit
1a7025b20c
3 changed files with 1 additions and 17 deletions
|
@ -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#"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue