Skip to content

Commit bd1d897

Browse files
rename find_parent_node to opt_parent_id
1 parent 73d293f commit bd1d897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/casts/cast_slice_different_sizes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>, msrv: &Msrv
6868
fn is_child_of_cast(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
6969
let map = cx.tcx.hir();
7070
if_chain! {
71-
if let Some(parent_id) = map.find_parent_node(expr.hir_id);
71+
if let Some(parent_id) = map.opt_parent_id(expr.hir_id);
7272
if let Some(parent) = map.find(parent_id);
7373
then {
7474
let expr = match parent {

0 commit comments

Comments
 (0)