Fix compilation issue after rebase

This commit is contained in:
Charles Lew 2022-11-12 18:50:57 +08:00 committed by Manish Goregaokar
parent 707c035e00
commit b21e0b82c5

View File

@ -51,6 +51,9 @@ fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {
match self {
DiagnosticArgValue::Str(s) => DiagnosticArgValue::Str(Cow::Owned(s.into_owned())),
DiagnosticArgValue::Number(n) => DiagnosticArgValue::Number(n),
DiagnosticArgValue::StrListSepByAnd(l) => DiagnosticArgValue::StrListSepByAnd(
l.into_iter().map(|s| Cow::Owned(s.into_owned())).collect(),
),
}
}
}