From 2dfd16474b4c960c6af41073749fda796cc011c5 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 28 Oct 2024 13:59:56 -0400 Subject: [PATCH] fix compile error --- src/engines/answer/numbat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engines/answer/numbat.rs b/src/engines/answer/numbat.rs index 6474a5f..cadfb47 100644 --- a/src/engines/answer/numbat.rs +++ b/src/engines/answer/numbat.rs @@ -142,7 +142,7 @@ fn fix_markup(markup: Markup) -> Markup { for s in markup.0 { 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 if let Some(FormattedString(_, FormatType::Whitespace, _)) = reordered_markup.last() { reordered_markup.pop();