-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
A-categoryArea: Categorization of lintsArea: Categorization of lintsL-nurseryLint: Currently in the nursery groupLint: Currently in the nursery groupgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
Replacing .unwrap_or(Vec::new())
with .unwrap_or_default()
doesn't do anything for performance, they produce identical machine code with optimizations: https://rust.godbolt.org/z/hzTdazGqW.
Perhaps the lint category could be changed or it could be changed to not detect cases where it's not actually a performance warning?
Metadata
Metadata
Assignees
Labels
A-categoryArea: Categorization of lintsArea: Categorization of lintsL-nurseryLint: Currently in the nursery groupLint: Currently in the nursery groupgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy