Use in macro.

This commit is contained in:
Drew Galbraith 2024-07-27 08:36:56 -07:00
parent 3eea4d811a
commit ccd13fecf1
2 changed files with 1 additions and 4 deletions

View File

@ -146,9 +146,7 @@ macro_rules! debug {
($fmt:literal, $($val:expr),+) => {{
use core::fmt::Write as _;
use alloc::string::String;
// TODO: Find a way to do this so we don't have to import writer.
// We can't fully qualify this if we want to use it in this crate.
let mut w = Writer::new();
let mut w = $crate::syscall::Writer::new();
write!(&mut w, $fmt, $($val),*).expect("Failed to format");
let s: String = w.into();
debug(&s);

View File

@ -9,7 +9,6 @@ use mammoth::debug;
use mammoth::define_entry;
use mammoth::syscall::debug;
use mammoth::syscall::z_err_t;
use mammoth::syscall::Writer;
define_entry!();