-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
The clippy:precedence
list currently warns on every instance of the form -literal.method()
, as precedence looks ambiguous. However, for an odd function, i.e. a function f(x)
where f(-x)=-f(x)
, the precedence doesn't matter. Many functions have this property, such as sin()
, atan()
, cbrt()
, to_radians()
(and round()
i think).
inesvar
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy