diff options
Diffstat (limited to 'src/cue_view.rs')
| -rw-r--r-- | src/cue_view.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cue_view.rs b/src/cue_view.rs index c031720..fbf2520 100644 --- a/src/cue_view.rs +++ b/src/cue_view.rs @@ -8,10 +8,10 @@ use relm4::prelude::*; use relm4::{ComponentParts, SimpleComponent}; use unicode_segmentation::UnicodeSegmentation; -use crate::util::OptionTracker; +use crate::util::Tracker; pub struct CueView { - text: OptionTracker<String>, + text: Tracker<Option<String>>, // byte ranges for the words in `text` word_ranges: Vec<Range<usize>>, } @@ -71,7 +71,7 @@ impl SimpleComponent for CueView { sender: relm4::ComponentSender<Self>, ) -> relm4::ComponentParts<Self> { let model = Self { - text: OptionTracker::new(None), + text: Tracker::new(None), word_ranges: Vec::new(), }; |