Skip to content

Commit

Permalink
Using f.unsafety() instead of f.skip_binder().unsafety
Browse files Browse the repository at this point in the history
  • Loading branch information
ensch committed Mar 1, 2017
1 parent 8380dd3 commit 7e24e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/utils/mod.rs
Expand Up @@ -806,7 +806,7 @@ pub fn same_tys<'a, 'tcx>(
pub fn type_is_unsafe_function(ty: ty::Ty) -> bool {
match ty.sty {
ty::TyFnDef(_, _, f) |
ty::TyFnPtr(f) => f.skip_binder().unsafety == Unsafety::Unsafe,
ty::TyFnPtr(f) => f.unsafety() == Unsafety::Unsafe,
_ => false,
}
}
Expand Down

0 comments on commit 7e24e1d

Please sign in to comment.