Skip to content

Commit

Permalink
Add Applicability to flynt (#5160)
Browse files Browse the repository at this point in the history
## Summary

Fixes some of #4184.
  • Loading branch information
evanrittenhouse authored Jun 17, 2023
1 parent 4b9b682 commit e1e1d2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/ruff/src/rules/flynt/rules/static_join_to_fstring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ pub(crate) fn static_join_to_fstring(checker: &mut Checker, expr: &Expr, joiner:
expr.range(),
);
if checker.patch(diagnostic.kind.rule()) {
#[allow(deprecated)]
diagnostic.set_fix(Fix::unspecified(Edit::range_replacement(
diagnostic.set_fix(Fix::suggested(Edit::range_replacement(
contents,
expr.range(),
)));
Expand Down

0 comments on commit e1e1d2d

Please sign in to comment.