chore: add .rustfmt.toml

This commit is contained in:
Timothy DeHerrera
2026-02-05 23:48:08 -07:00
parent 13e728de80
commit f1e3add292
8 changed files with 73 additions and 52 deletions

View File

@@ -541,7 +541,7 @@ impl LanguageLoader for SukrLoader {
InjectionLanguageMarker::Match(text) => text.into(),
InjectionLanguageMarker::Filename(_) | InjectionLanguageMarker::Shebang(_) => {
return None;
}
},
};
self.name_to_lang
.get(name.to_lowercase().as_str())
@@ -618,7 +618,7 @@ fn render_html<'a>(source: &str, mut highlighter: Highlighter<'a, 'a, SukrLoader
html.push_str(class);
html.push_str("\">");
}
}
},
}
}