diff --git a/crates/ra_hir_def/src/path/lower.rs b/crates/ra_hir_def/src/path/lower.rs index 0934520d70..4900000fe4 100644 --- a/crates/ra_hir_def/src/path/lower.rs +++ b/crates/ra_hir_def/src/path/lower.rs @@ -101,11 +101,7 @@ pub(super) fn lower_path(mut path: ast::Path, hygiene: &Hygiene) -> Option break; } ast::PathSegmentKind::SuperKw => { - let nested_super_count = if let PathKind::Super(n) = kind { - n - } else { - 0 - }; + let nested_super_count = if let PathKind::Super(n) = kind { n } else { 0 }; kind = PathKind::Super(nested_super_count + 1); } } diff --git a/crates/ra_hir_ty/src/infer/pat.rs b/crates/ra_hir_ty/src/infer/pat.rs index 623e525993..7a84e47f88 100644 --- a/crates/ra_hir_ty/src/infer/pat.rs +++ b/crates/ra_hir_ty/src/infer/pat.rs @@ -187,12 +187,8 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { } Pat::Slice { prefix, slice: _slice, suffix } => { let (container_ty, elem_ty) = match &expected { - ty_app!(TypeCtor::Array, st) => { - (TypeCtor::Array, st.as_single().clone()) - }, - ty_app!(TypeCtor::Slice, st) => { - (TypeCtor::Slice, st.as_single().clone()) - }, + ty_app!(TypeCtor::Array, st) => (TypeCtor::Array, st.as_single().clone()), + ty_app!(TypeCtor::Slice, st) => (TypeCtor::Slice, st.as_single().clone()), _ => (TypeCtor::Slice, Ty::Unknown), }; diff --git a/editors/code/README.md b/editors/code/README.md new file mode 100644 index 0000000000..336695d9ff --- /dev/null +++ b/editors/code/README.md @@ -0,0 +1,5 @@ +# rust-analyzer + +Provides support for rust-analyzer: novel LSP server for the Rust programming language. + +See https://rust-analyzer.github.io/ for more information. diff --git a/editors/code/package.json b/editors/code/package.json index 862de32103..daccb31fbf 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -12,8 +12,13 @@ "url": "https://github.com/rust-analyzer/rust-analyzer.git", "type": "git" }, + "homepage": "https://rust-analyzer.github.io/", + "license": "MIT OR Apache-2.0", + "keywords": [ + "rust" + ], "categories": [ - "Other" + "Programming Languages" ], "engines": { "vscode": "^1.42.0"