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 reorder_imports = true
imports_granularity = "Module" imports_granularity = "Crate"
wrap_comments = true wrap_comments = true

View file

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

View file

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

View file

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

View file

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