add fmt.rs
This commit is contained in:
parent
2a8251a693
commit
6f05ac8df1
3
src/fmt.rs
Normal file
3
src/fmt.rs
Normal file
@ -0,0 +1,3 @@
|
||||
pub fn print<T: AsRef<str>>(t: T) {
|
||||
println!("{}", t.as_ref());
|
||||
}
|
@ -2,4 +2,5 @@ pub mod cpgen;
|
||||
pub mod lang;
|
||||
pub mod r#static;
|
||||
|
||||
pub(crate) mod fmt;
|
||||
pub mod runner;
|
||||
|
@ -63,7 +63,7 @@ impl Runner {
|
||||
String::from_utf8(output.stderr)?
|
||||
));
|
||||
}
|
||||
println!("{}", String::from_utf8(output.stdout)?);
|
||||
crate::fmt::print(String::from_utf8(output.stdout)?);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user