remove needless refs

This commit is contained in:
Aleksey Kladov 2019-09-03 08:59:44 +03:00
parent 48ffbf29b7
commit 82b218b7bf

View File

@ -806,10 +806,10 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
let subty = self.infer_pat(*pat, expectation, default_bm);
Ty::apply_one(TypeCtor::Ref(*mutability), subty)
}
Pat::TupleStruct { path: ref p, args: ref subpats } => {
Pat::TupleStruct { path: p, args: subpats } => {
self.infer_tuple_struct_pat(p.as_ref(), subpats, expected, default_bm)
}
Pat::Record { path: ref p, args: ref fields } => {
Pat::Record { path: p, args: fields } => {
self.infer_record_pat(p.as_ref(), fields, expected, default_bm, pat)
}
Pat::Path(path) => {