Skip to content

Commit c9cde4f

Browse files
committed
Remove unneeded allow's
1 parent eeffba7 commit c9cde4f

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

clippy_dev/src/ra_setup.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(clippy::filter_map)]
2-
31
use std::fs;
42
use std::fs::File;
53
use std::io::prelude::*;

clippy_lints/src/loops.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,6 @@ fn get_assignments<'a: 'c, 'tcx: 'c, 'c>(
10611061
) -> impl Iterator<Item = Option<(&'tcx Expr<'tcx>, &'tcx Expr<'tcx>)>> + 'c {
10621062
// As the `filter` and `map` below do different things, I think putting together
10631063
// just increases complexity. (cc #3188 and #4193)
1064-
#[allow(clippy::filter_map)]
10651064
stmts
10661065
.iter()
10671066
.filter_map(move |stmt| match stmt.kind {

clippy_lints/src/utils/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,6 @@ pub fn path_to_res(cx: &LateContext<'_>, path: &[&str]) -> Option<def::Res> {
356356
let item_def_id = current_item.res.def_id();
357357
if cx.tcx.def_kind(item_def_id) == DefKind::Struct;
358358
then {
359-
// Bad `find_map` suggestion. See #4193.
360-
#[allow(clippy::find_map)]
361359
return cx.tcx.inherent_impls(item_def_id).iter()
362360
.flat_map(|&impl_def_id| cx.tcx.item_children(impl_def_id))
363361
.find(|item| item.ident.name.as_str() == *segment)

0 commit comments

Comments
 (0)