Fix clippy.
All checks were successful
format Build format has succeeded
clippy Build clippy has succeeded
rust-test Build rust-test has succeeded

This commit is contained in:
Tom Alexander
2025-02-22 19:42:24 -05:00
parent 7d73a3c948
commit 8d85d5ef79
7 changed files with 19 additions and 16 deletions

View File

@@ -77,7 +77,7 @@ intermediate!(
.collect();
let language = original.language.map(str::to_owned);
match language.as_ref().map(String::as_str) {
match language.as_deref() {
Some(lang @ "bash") => {
let highlighted = highlight_bash(&lines);
if let Ok(highlighted) = highlighted {
@@ -151,7 +151,7 @@ where
std::string::String: for<'a> From<&'a L>,
{
Ok(lines
.into_iter()
.iter()
.map(|l| {
let mut line = ISrcLine::new();
line.children.push(ISrcSegment::RawText(l.into()));