8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Severity
miette-derive
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I stumbled across this code in kdl-rs, and calling KdlDiagnostic::severity() returns None instead of the value stored in pub severity!
kdl-rs
KdlDiagnostic::severity()
None
pub severity
This works (and is what the documentation shows):
But in that case, the severity is fixed to be Warning and doesn't look at severity at all!
Warning
severity
I think the docs may benefit from more clearly showing the correct syntax for doing this sort of thing (if the derive macro supports it at all!)
The text was updated successfully, but these errors were encountered:
Oh. That should probably be #[severity]
#[severity]
Sorry, something went wrong.
No branches or pull requests
I stumbled across this code in
kdl-rs
, and callingKdlDiagnostic::severity()
returnsNone
instead of the value stored inpub severity
!This works (and is what the documentation shows):
But in that case, the severity is fixed to be
Warning
and doesn't look atseverity
at all!I think the docs may benefit from more clearly showing the correct syntax for doing this sort of thing (if the derive macro supports it at all!)
The text was updated successfully, but these errors were encountered: