mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
Update field names in is_float
This commit is contained in:
parent
0d00eafd32
commit
03f584c0c7
1 changed files with 3 additions and 3 deletions
|
@ -498,11 +498,11 @@ fn is_signum(cx: &LateContext<'_, '_>, expr: &Expr<'_>) -> bool {
|
|||
false
|
||||
}
|
||||
|
||||
fn is_float(cx: &LateContext<'_, '_>, expr: &Expr) -> bool {
|
||||
let value = &walk_ptrs_ty(cx.tables.expr_ty(expr)).sty;
|
||||
fn is_float(cx: &LateContext<'_, '_>, expr: &Expr<'_>) -> bool {
|
||||
let value = &walk_ptrs_ty(cx.tables.expr_ty(expr)).kind;
|
||||
|
||||
if let ty::Array(arr_ty, _) = value {
|
||||
return matches!(arr_ty.sty, ty::Float(_));
|
||||
return matches!(arr_ty.kind, ty::Float(_));
|
||||
};
|
||||
|
||||
matches!(value, ty::Float(_))
|
||||
|
|
Loading…
Reference in a new issue