Fix: Pass in diagnostic source directly, not as a AsRef::as_ref()

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2022-05-13 08:07:15 +02:00
parent 0b32574d5b
commit c41c842e46
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ impl DiagnosticSource {
};
quote! {
Self::#ident #display_pat => {
std::option::Option::Some(#rel.as_ref())
std::option::Option::Some(#rel)
}
}
})