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.
1 parent 46d2e9e commit 43277a1Copy full SHA for 43277a1
crates/ruff_linter/src/message/mod.rs
@@ -224,15 +224,6 @@ impl Message {
224
self.fix().is_some()
225
}
226
227
- /// Returns the [`Rule`] corresponding to the diagnostic message.
228
- pub fn to_rule(&self) -> Option<Rule> {
229
- if self.is_syntax_error() {
230
- None
231
- } else {
232
- Some(self.name().parse().expect("Expected a valid rule name"))
233
- }
234
235
-
236
/// Returns the [`NoqaCode`] corresponding to the diagnostic message.
237
pub fn to_noqa_code(&self) -> Option<NoqaCode> {
238
self.noqa_code
0 commit comments