cleanup some todos

This commit is contained in:
Stephan Dilly 2021-05-28 12:11:39 +02:00
parent c0ce674438
commit b59e050d67

View file

@ -16,14 +16,10 @@ use syntect::{
}; };
use tui::text::{Span, Spans}; use tui::text::{Span, Spans};
//TODO: no clone, make user consume result
#[derive(Clone)]
struct SyntaxLine { struct SyntaxLine {
items: Vec<(Style, usize, Range<usize>)>, items: Vec<(Style, usize, Range<usize>)>,
} }
//TODO: no clone, make user consume result
#[derive(Clone)]
pub struct SyntaxText { pub struct SyntaxText {
text: String, text: String,
lines: Vec<SyntaxLine>, lines: Vec<SyntaxLine>,