Skip to content

Commit 62e62d1

Browse files
committed
Reformat?
1 parent cf23ca7 commit 62e62d1

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

crates/ra_hir_def/src/path/lower.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,7 @@ pub(super) fn lower_path(mut path: ast::Path, hygiene: &Hygiene) -> Option<Path>
101101
break;
102102
}
103103
ast::PathSegmentKind::SuperKw => {
104-
let nested_super_count = if let PathKind::Super(n) = kind {
105-
n
106-
} else {
107-
0
108-
};
104+
let nested_super_count = if let PathKind::Super(n) = kind { n } else { 0 };
109105
kind = PathKind::Super(nested_super_count + 1);
110106
}
111107
}

crates/ra_hir_ty/src/infer/pat.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,8 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
187187
}
188188
Pat::Slice { prefix, slice: _slice, suffix } => {
189189
let (container_ty, elem_ty) = match &expected {
190-
ty_app!(TypeCtor::Array, st) => {
191-
(TypeCtor::Array, st.as_single().clone())
192-
},
193-
ty_app!(TypeCtor::Slice, st) => {
194-
(TypeCtor::Slice, st.as_single().clone())
195-
},
190+
ty_app!(TypeCtor::Array, st) => (TypeCtor::Array, st.as_single().clone()),
191+
ty_app!(TypeCtor::Slice, st) => (TypeCtor::Slice, st.as_single().clone()),
196192
_ => (TypeCtor::Slice, Ty::Unknown),
197193
};
198194

0 commit comments

Comments
 (0)