diff --git a/rustfmt.toml b/rustfmt.toml index 33c58ed..70632df 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1,4 @@ reorder_imports = true imports_granularity = "Crate" +group_imports = "StdExternalCrate" wrap_comments = true diff --git a/src/dwarf/divination.rs b/src/dwarf/divination.rs index 55fb860..2ce98e1 100644 --- a/src/dwarf/divination.rs +++ b/src/dwarf/divination.rs @@ -15,9 +15,7 @@ use core::{ffi, fmt}; -use crate::stdext::with_last_os_error_str; - -use crate::Addr; +use crate::{stdext::with_last_os_error_str, Addr}; #[repr(C)] struct dl_find_object { diff --git a/src/dwarf/parse.rs b/src/dwarf/parse.rs index 872a0f3..172bf46 100644 --- a/src/dwarf/parse.rs +++ b/src/dwarf/parse.rs @@ -27,9 +27,8 @@ #[cfg(test)] mod tests; -use core::ffi::CStr; - use alloc::{format, string::String}; +use core::ffi::CStr; /// The dwarf is invalid. This is fatal and should never happen. #[derive(Debug)]