From cc74be5d2163fbb1e9d57f85d5546857c6602446 Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 30 Jul 2024 07:45:29 +0800 Subject: refactor: several improvements (#765) --- src/render/markdown.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/render/markdown.rs') diff --git a/src/render/markdown.rs b/src/render/markdown.rs index 400cfe2..b8710b7 100644 --- a/src/render/markdown.rs +++ b/src/render/markdown.rs @@ -2,7 +2,6 @@ use ansi_colours::AsRGB; use anyhow::{anyhow, Context, Result}; use crossterm::style::{Color, Stylize}; use crossterm::terminal; -use lazy_static::lazy_static; use std::collections::HashMap; use syntect::highlighting::{Color as SyntectColor, FontStyle, Style, Theme}; use syntect::parsing::SyntaxSet; @@ -11,7 +10,7 @@ use syntect::{easy::HighlightLines, parsing::SyntaxReference}; /// Comes from https://github.com/sharkdp/bat/raw/5e77ca37e89c873e4490b42ff556370dc5c6ba4f/assets/syntaxes.bin const SYNTAXES: &[u8] = include_bytes!("../../assets/syntaxes.bin"); -lazy_static! { +lazy_static::lazy_static! { static ref LANG_MAPS: HashMap = { let mut m = HashMap::new(); m.insert("csharp".into(), "C#".into()); -- cgit v1.2.3