Potential false positive for let_and_return #1322
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-style
Lint: Belongs in the style lint group
I have the following macro:
And running clippy, it complains that I can directly return the match but doing so fails since it doesn't know the type (
$ty
canf32
,String
, etc).Afaik there is no other way to cast the
s
variable other than that syntax (as $ty
doesn't work). Am I missing a way to do it or is it a real false positive?The text was updated successfully, but these errors were encountered: