ruff
864196b9 - Add `Checker::context` method, deduplicate Unicode checks (#19609)

Commit
65 days ago
Add `Checker::context` method, deduplicate Unicode checks (#19609) Summary -- This PR adds a `Checker::context` method that returns the underlying `LintContext` to unify `Candidate::into_diagnostic` and `Candidate::report_diagnostic` in our ambiguous Unicode character checks. This avoids some duplication and also avoids collecting a `Vec` of `Candidate`s only to iterate over it later. Test Plan -- Existing tests
Author
Parents
Loading