Use DiagnosticArgName
in a few more places.
This commit is contained in:
parent
df322fc29f
commit
6fdaf3ef7f
8 changed files with 18 additions and 17 deletions
|
@ -900,7 +900,7 @@ impl Diagnostic {
|
|||
|
||||
pub fn arg(
|
||||
&mut self,
|
||||
name: impl Into<Cow<'static, str>>,
|
||||
name: impl Into<DiagnosticArgName>,
|
||||
arg: impl IntoDiagnosticArg,
|
||||
) -> &mut Self {
|
||||
self.args.insert(name.into(), arg.into_diagnostic_arg());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue