Sugg
structured snippet modifications wishlist
#3683
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
Our
Sugg
builder type has support for many code snippets, but in some cases we still fall back to strings. One such case isrust-clippy/clippy_lints/src/needless_bool.rs
Lines 77 to 83 in 0a0792e
There are probably more, but for now we should add methods for
return $sugg
(e.g. areturn_expr
method that wraps the current suggestion in areturn
call)The text was updated successfully, but these errors were encountered: