Address PR comments
This commit is contained in:
parent
2cd3366817
commit
fb6895836f
@ -97,7 +97,9 @@ fn map_clone_deref() {
|
||||
let _: Option<i32> = x.as_ref().map(|y| **y);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
// used to be a false positive
|
||||
vec![1].iter_mut().map(|x| *x);
|
||||
// stuff that used to be a false positive
|
||||
fn former_false_positive() {
|
||||
vec![1].iter_mut().map(|x| *x); // #443
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
Loading…
Reference in New Issue
Block a user