Stub implementation for inline display

ida_star
Wilfred Hughes 2021-08-01 16:12:31 +07:00
parent af7fdadf26
commit c46ef92cd5
2 changed files with 9 additions and 3 deletions

@ -1,5 +1,11 @@
use crate::lines::LineGroup;
pub fn display(groups: &[LineGroup]) -> String {
let mut res = String::new();
pub fn display() -> String {
"todo 2".into()
for group in groups {
res.push_str(&format!("{:#?}\n", group))
}
res
}

@ -137,7 +137,7 @@ fn main() {
}
if env::var("INLINE").is_ok() {
println!("{}", inline::display());
println!("{}", inline::display(&groups));
} else {
for group in &mut groups {
group.pad(3, lhs_src.max_line(), rhs_src.max_line());