Skip to content

Commit 02f761b

Browse files
bors[bot]matklad
andauthored
Merge #3397 #3398
3397: Minimal viable meta r=matklad a=matklad bors r+ 🤖 3398: Reformat? r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
3 parents 79c8748 + 57d0f23 + 62e62d1 commit 02f761b

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
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

editors/code/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# rust-analyzer
2+
3+
Provides support for rust-analyzer: novel LSP server for the Rust programming language.
4+
5+
See https://rust-analyzer.github.io/ for more information.

editors/code/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@
1212
"url": "https://github.com/rust-analyzer/rust-analyzer.git",
1313
"type": "git"
1414
},
15+
"homepage": "https://rust-analyzer.github.io/",
16+
"license": "MIT OR Apache-2.0",
17+
"keywords": [
18+
"rust"
19+
],
1520
"categories": [
16-
"Other"
21+
"Programming Languages"
1722
],
1823
"engines": {
1924
"vscode": "^1.42.0"

0 commit comments

Comments
 (0)