Add RanlibFailure
This commit is contained in:
parent
6580010551
commit
9363f0fda5
6 changed files with 24 additions and 1 deletions
|
@ -114,6 +114,15 @@ 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