mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-26 22:44:30 +00:00
![]() This is a tiny change that, perhaps slightly shady, permits us to use the `annotate-snippets` renderer without its mandatory header (which wasn't there in `annotate-snippets 0.9`). Specifically, we can now do this: Level::None.title("") The combination of a "none" level and an empty label results in the `annotate-snippets` header being skipped entirely. (Not even an empty line is written.) This is maybe not the right API for upstream `annotate-snippets`, but it's very easy for us to do and unblocks the upgrade (albeit relying on a vendored copy). Ref https://github.com/rust-lang/annotate-snippets-rs/issues/167 |
||
---|---|---|
.. | ||
fixtures | ||
examples.rs | ||
formatter.rs | ||
rustc_tests.rs |