add list of characters to uncommon codepoints lint
This commit is contained in:
parent
0011fac90d
commit
f3682a1304
6 changed files with 26 additions and 7 deletions
|
@ -110,6 +110,14 @@ impl IntoDiagnosticArg for char {
|
|||
}
|
||||
}
|
||||
|
||||
impl IntoDiagnosticArg for Vec<char> {
|
||||
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {
|
||||
DiagnosticArgValue::StrListSepByAnd(
|
||||
self.into_iter().map(|c| Cow::Owned(format!("{c:?}"))).collect(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
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