This commit is contained in:
nora 2023-06-17 23:33:19 +02:00
parent 591da9ff7d
commit f41be070bb
5 changed files with 5 additions and 9 deletions

View file

@ -1,3 +1,3 @@
reorder_imports = true
imports_granularity = "Module"
imports_granularity = "Crate"
wrap_comments = true

View file

@ -29,8 +29,7 @@ mod tests;
use core::ffi::CStr;
use alloc::format;
use alloc::string::String;
use alloc::{format, string::String};
/// The dwarf is invalid. This is fatal and should never happen.
#[derive(Debug)]

View file

@ -3,8 +3,7 @@
extern crate alloc;
use core::ffi;
use core::sync::atomic::AtomicPtr;
use core::{ffi, sync::atomic::AtomicPtr};
// Get the macros into our local prelude.
#[macro_use]

View file

@ -1,5 +1,4 @@
use core::fmt::Write;
use core::{ffi, fmt};
use core::{ffi, fmt, fmt::Write};
pub struct LibCStdoutWriter;

View file

@ -1,7 +1,6 @@
//! Test frame pointer walker. Not very good.
use crate::arch::get_rbp;
use crate::stdext::trace;
use crate::{arch::get_rbp, stdext::trace};
pub(crate) unsafe fn walk() {
let mut current_rbp = get_rbp().0.cast::<usize>();