Skip to content

Commit

Permalink
Include entire prefix when reporting rule selector errors
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Mar 6, 2023
1 parent c0ad875 commit 8d5af0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff/src/rule_selector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl FromStr for RuleSelector {

Ok(Self::Prefix {
prefix: RuleCodePrefix::parse(&linter, code)
.map_err(|_| ParseError::Unknown(code.to_string()))?,
.map_err(|_| ParseError::Unknown(s.to_string()))?,
redirected_from,
})
}
Expand Down

0 comments on commit 8d5af0a

Please sign in to comment.