remove IntoDiagnosticArg impl for Option
This commit is contained in:
parent
1ce482adda
commit
fb488ad366
3 changed files with 2 additions and 11 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue