-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Why is replace_consts enabled by default? #2380
Copy link
Copy link
Closed
Labels
A-documentationArea: Adding or improving documentationArea: Adding or improving documentationgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
Activity
Metadata
Metadata
Assignees
Labels
A-documentationArea: Adding or improving documentationArea: Adding or improving documentationgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
The
replace_constslint is enabled inclippy-pedanticby default.The docs hints that using consts is bad because
const fnexists.This does not make any sense to me: why should
const fnbe preferred overconsts? Are associated consts also bad?