Suggest removing .into()
for argument that already accepts Into<_>
#52837
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When calling a method
bar
that takes an argumentInto<Foo>
withbar(foo.into())
, the type system can't figure out the type for the argument. Suggest removing the.into()
call.The text was updated successfully, but these errors were encountered: