finish trying to write the new perser

This commit is contained in:
nora 2022-09-12 22:27:38 +02:00
parent 34155bcd48
commit a96b97f5de
4 changed files with 142 additions and 27 deletions

View file

@ -80,7 +80,7 @@ pub fn ConstWidthArg<T, const WIDTH: usize>(value: T) -> ConstWidthArg<T, WIDTH>
}
impl<T: Display, const WIDTH: usize> Arguments for ConstWidthArg<T, WIDTH> {
fn fmt<W: Write, O: FmtOpts>(&self, f: &mut Formatter<W, O>) -> Result {
fn fmt<W: Write, O: FmtOpts>(&self, _: &mut Formatter<W, O>) -> Result {
todo!()
}
}

View file

@ -1,3 +1,5 @@
#![allow(dead_code)]
// for the test macro expansion
#[cfg(test)]
extern crate self as mono_fmt;
@ -7,7 +9,6 @@ mod opts;
mod write;
pub use mono_fmt_macro::format_args;
use opts::{WithAlternate, WithCenterAlign, WithFill, WithLeftAlign, WithRightAlign, WithWidth};
pub use crate::args::Arguments;
pub use crate::opts::FmtOpts;