Add Applicability to flynt (#5160)

## Summary

Fixes some of #4184.
This commit is contained in:
Evan Rittenhouse 2023-06-17 11:05:43 -05:00 committed by GitHub
parent 4b9b6829dc
commit e1e1d2d341
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),
)));