Linshu Yang
Linshu Yang
Fixes #6040 When a struct pattern that contained a `..` was formatted, it failed to consider the case when there is line comment following it. Instead it produced a formatting...
Closes rust-lang/rust-clippy#15072 changelog: [`redundant_closure`] fix wrong suggestions with deref overload
Closes rust-lang/rust-clippy#15004 The lint will note `the end suggestion probably needs some adjustments to use the expression result correctly` when the expr's is not unit. So I extend this note...
Closes rust-lang/rust-clippy#14924 changelog: [`unused_trait_names`] fix FP when `as` name is from macro input
Closes rust-lang/rust-clippy#15063 changelog: [`op_ref`] fix wrongly showed macro definition in suggestions changelog: [`needless_bool_assign`] fix missing curlies when on else if
Closes rust-lang/rust-clippy#15007 Removes the `break` stmt and the dead code after it when appropriate. changelog: [`never_loop`] add to remove `break` in suggestion
Closes rust-lang/rust-clippy#15018 Continuation of rust-lang/rust-clippy#15017 changelog: [`match_single_binding`] fix wrong handling of scope
Closes rust-lang/rust-clippy#15051 changelog: [`manual_ok_err`] fix wrong suggestions with references
Closes rust-lang/rust-clippy#14981 changelog: [`iter_on_single_items`] fix FP on function pointers and let stmts
Closes rust-lang/rust-clippy#14927 changelog: [`return_and_then`] fix FP when return type is not `Option` or `Result`