Skip to content

Commit

Permalink
use predefined sym::unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Loren committed Mar 31, 2021
1 parent f697e90 commit 9ba26ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/filter_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn is_option_filter_map<'tcx>(
filter_arg: &'tcx hir::Expr<'_>,
map_arg: &'tcx hir::Expr<'_>,
) -> bool {
is_method(cx, map_arg, sym!(unwrap)) && is_method(cx, filter_arg, sym!(is_some))
is_method(cx, map_arg, sym::unwrap) && is_method(cx, filter_arg, sym!(is_some))
}

/// lint use of `filter().map()` for `Iterators`
Expand Down

0 comments on commit 9ba26ce

Please sign in to comment.