X-Git-Url: https://git.r.bdr.sh/rbdr/page/blobdiff_plain/8766e4412b95cfa0288683748cc20aba81a64d08..4d946aebe3f70ad18e235d68474b6d489757c927:/src/file_handler/file_strategies/gemini.rs?ds=sidebyside diff --git a/src/file_handler/file_strategies/gemini.rs b/src/file_handler/file_strategies/gemini.rs index df35d64..4596378 100644 --- a/src/file_handler/file_strategies/gemini.rs +++ b/src/file_handler/file_strategies/gemini.rs @@ -5,8 +5,7 @@ use std::io::Write; use std::path::Path; use crate::file_handler::{File, FileType, Strategy as FileHandlerStrategy}; -use crate::gemini_parser::parse; -use crate::html_renderer::render_html; +use gema_texto::{gemini_parser::parse, html_renderer::render_html}; impl Strategy { fn is_title(line: &str) -> bool { @@ -154,9 +153,7 @@ mod tests { #[test] fn extracts_description() { assert_eq!( - Strategy - ::get_description("--- description: What is this?") - .trim(), + Strategy::get_description("--- description: What is this?").trim(), "What is this?" ); }