fix compile error

This commit is contained in:
Sam 2024-10-28 13:59:56 -04:00
parent 4e68581747
commit 2dfd16474b

View File

@ -142,7 +142,7 @@ fn fix_markup(markup: Markup) -> Markup {
for s in markup.0 { for s in markup.0 {
let FormattedString(_output_type, format_type, content) = s.clone(); let FormattedString(_output_type, format_type, content) = s.clone();
if format_type == FormatType::Unit && LEFT_SIDE_UNITS.contains(&content.as_str()) { if format_type == FormatType::Unit && LEFT_SIDE_UNITS.contains(&content.as_ref()) {
// remove the last markup if it's whitespace // remove the last markup if it's whitespace
if let Some(FormattedString(_, FormatType::Whitespace, _)) = reordered_markup.last() { if let Some(FormattedString(_, FormatType::Whitespace, _)) = reordered_markup.last() {
reordered_markup.pop(); reordered_markup.pop();