Skip to content

Commit

Permalink
Refactor yle teletext parser into reusable trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Nykseli committed Jan 23, 2023
1 parent 0c23eef commit 6cb8c32
Show file tree
Hide file tree
Showing 6 changed files with 392 additions and 352 deletions.
4 changes: 3 additions & 1 deletion src/gui/yle_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use std::{
time::Duration,
};

use crate::html_parser::{HtmlItem, HtmlLink, HtmlLoader, HtmlText, TeleText, MIDDLE_TEXT_MAX_LEN};
use crate::parser::{
HtmlItem, HtmlLink, HtmlLoader, HtmlParser, HtmlText, TeleText, MIDDLE_TEXT_MAX_LEN,
};
use egui::{FontId, InputState, RichText, TextStyle};

use super::common::input_to_num;
Expand Down
350 changes: 0 additions & 350 deletions src/html_parser.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release

mod gui;
mod html_parser;
mod parser;

fn main() {
tracing_subscriber::fmt::init();
Expand Down
Loading

0 comments on commit 6cb8c32

Please sign in to comment.