mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
remove needless refs
This commit is contained in:
parent
48ffbf29b7
commit
82b218b7bf
1 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue