mirror of https://github.com/zkat/miette.git
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:
parent
0b32574d5b
commit
c41c842e46
|
|
@ -59,7 +59,7 @@ impl DiagnosticSource {
|
||||||
};
|
};
|
||||||
quote! {
|
quote! {
|
||||||
Self::#ident #display_pat => {
|
Self::#ident #display_pat => {
|
||||||
std::option::Option::Some(#rel.as_ref())
|
std::option::Option::Some(#rel)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue