Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JarredAllen committed Jul 17, 2020
1 parent cb03fff commit 408e26c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions clippy_lints/src/stable_sort_primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,14 @@ fn is_slice_of_primitives(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
let expr_type = cx.tables().expr_ty_adjusted(expr);
match expr_type.kind {
ty::Slice(ref element_type)
| ty::Ref(_, ty::TyS { kind: ty::Slice(ref element_type), .. }, _)
=> is_primitive_type(element_type),
| ty::Ref(
_,
ty::TyS {
kind: ty::Slice(ref element_type),
..
},
_,
) => is_primitive_type(element_type),
_ => false,
}
}
Expand Down

0 comments on commit 408e26c

Please sign in to comment.