diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-30 07:45:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-30 07:45:29 +0800 |
| commit | cc74be5d2163fbb1e9d57f85d5546857c6602446 (patch) | |
| tree | 9897a88950ad6fc65dbd63f0cb9bbc9e7290d950 /src/render/markdown.rs | |
| parent | 4c18e91165269970747bd2734b9b5db013ade2c2 (diff) | |
| download | aichat-cc74be5d2163fbb1e9d57f85d5546857c6602446.tar.gz | |
refactor: several improvements (#765)
Diffstat (limited to 'src/render/markdown.rs')
| -rw-r--r-- | src/render/markdown.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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<String, String> = { let mut m = HashMap::new(); m.insert("csharp".into(), "C#".into()); |
