lint: port incomplete features diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
acea23e796
commit
bd8fe82138
3 changed files with 15 additions and 14 deletions
|
@ -115,6 +115,12 @@ impl IntoDiagnosticArg for String {
|
|||
}
|
||||
}
|
||||
|
||||
impl IntoDiagnosticArg for std::num::NonZeroU32 {
|
||||
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {
|
||||
DiagnosticArgValue::Str(Cow::Owned(self.to_string()))
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoDiagnosticArg for Edition {
|
||||
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {
|
||||
DiagnosticArgValue::Str(Cow::Owned(self.to_string()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue