-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Issues: rust-lang/rust-clippy
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Author
Label
Projects
Milestones
Assignee
Sort
Issues list
unwrap_used
lint should check Option::is_some
C-bug
#13450
opened Sep 24, 2024 by
stoneman258
unnecessary_unwrap not produced in 1.76
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
#12295
opened Feb 15, 2024 by
Miha-Rozina
suggest using Area: New lints
if let Some(x) = arr.first()
over if !arr.is_empty() then arr[0]
A-lint
#11858
opened Nov 23, 2023 by
J-ZhengLi
False positive on unnecessary_unwrap where more than one value gets checked then unwrapped
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
#11513
opened Sep 15, 2023 by
rscarson
Redirect to Area: New lints
if let
and/or match
when using unnecessary .is_ok()
checks or similar
A-lint
#11377
opened Aug 22, 2023 by
orowith2os
unnecessary_unwrap
doesn't work with .as_ref().unwrap()
and .as_mut().unwrap()
C-bug
#11371
by jakubdabek
was closed Aug 28, 2023
Optimize HashSet contains+insert usage
A-lint
Area: New lints
#11103
by nyurik
was closed Jul 4, 2024
Suggestion by unnecessary_unwrap reverses conditions
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
#11006
opened Jun 22, 2023 by
Gowee
Unnecessary direct unwraps on Option and Result are not warned/fixed
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
#10352
by pksunkara
was closed Jun 12, 2023
help message not clear
C-bug
Category: Clippy is not doing the correct thing
#10217
by Masber
was closed Aug 13, 2024
unnecessary_unwrap
: false positive with disjunctive if
-condition
C-bug
#8535
opened Mar 14, 2022 by
tsdh
Most commonly ignored lints on crates.io
A-category
Area: Categorization of lints
C-tracking-issue
Category: Tracking Issue
S-needs-discussion
Status: Needs further discussion before merging or work can be started
#7666
by dtolnay
was closed Oct 9, 2022
Extend unnecessary_unwrap to look for Area: New lints
expect
in addition to unwrap
A-lint
#7581
by shepmaster
was closed Sep 4, 2021
FN unnecessary_unwrap does not traverse struct fields
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
#6540
opened Jan 3, 2021 by
matthiaskrgr
False positive in Category: Clippy is not doing the correct thing
unnecessary_unwrap
C-bug
#5174
by JohnTitor
was closed May 2, 2020
Possible false positive: unnecessary unwrap in assert!
C-bug
Category: Clippy is not doing the correct thing
T-macros
Type: Issues with macros and macro expansion
#5131
by CreepySkeleton
was closed Feb 6, 2020
unnecessary_unwrap: should not trigger if the Category: Enhancement of lints, like adding more cases or adding help messages
L-suggestion
Lint: Improving, adding or fixing lint suggestions
is_some
is just part of the conditional
C-enhancement
#4530
opened Sep 10, 2019 by
nrc
Consistently naming lints
S-needs-discussion
Status: Needs further discussion before merging or work can be started
Lint Area: New lints
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-guidelines
Lint: Related to the Rust API Guidelines
L-style
Lint: Belongs in the style lint group
L-unnecessary
Lint: Warn about unnecessary code
T-middle
Type: Probably requires verifiying types
unwrap
in branch that did is_some
before
A-lint
#2437
by oli-obk
was closed Aug 1, 2019
ProTip!
no:milestone will show everything without a milestone.