1
Fork 0

remove IntoDiagnosticArg impl for Option

This commit is contained in:
Ellis Hoag 2022-08-29 20:22:03 -07:00
parent 1ce482adda
commit fb488ad366
3 changed files with 2 additions and 11 deletions

View file

@ -114,15 +114,6 @@ impl IntoDiagnosticArg for char {
}
}
impl<T: IntoDiagnosticArg> IntoDiagnosticArg for Option<T> {
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {
match self {
Some(t) => t.into_diagnostic_arg(),
None => DiagnosticArgValue::Str(Cow::Borrowed("None")),
}
}
}
impl IntoDiagnosticArg for Symbol {
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {
self.to_ident_string().into_diagnostic_arg()