From 9abcab16693ac5e162c4ed28c4373ed6bd507380 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 29 Feb 2020 13:50:47 +0100 Subject: Fix typo --- crates/ra_assists/src/handlers/early_return.rs | 2 +- crates/ra_assists/src/handlers/move_bounds.rs | 2 +- crates/ra_syntax/src/ast/make.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ra_assists/src/handlers/early_return.rs b/crates/ra_assists/src/handlers/early_return.rs index f57ecd07a..f3167b4e5 100644 --- a/crates/ra_assists/src/handlers/early_return.rs +++ b/crates/ra_assists/src/handlers/early_return.rs @@ -120,7 +120,7 @@ pub(crate) fn convert_to_guarded_return(ctx: AssistCtx) -> Option { let expr = { let name_ref = make::name_ref("it"); let segment = make::path_segment(name_ref); - let path = make::path_unqalified(segment); + let path = make::path_unqualified(segment); make::expr_path(path) }; make::match_arm(once(pat.into()), expr) diff --git a/crates/ra_assists/src/handlers/move_bounds.rs b/crates/ra_assists/src/handlers/move_bounds.rs index 616b95770..86b235366 100644 --- a/crates/ra_assists/src/handlers/move_bounds.rs +++ b/crates/ra_assists/src/handlers/move_bounds.rs @@ -75,7 +75,7 @@ fn build_predicate(param: ast::TypeParam) -> Option { let path = { let name_ref = make::name_ref(¶m.name()?.syntax().to_string()); let segment = make::path_segment(name_ref); - make::path_unqalified(segment) + make::path_unqualified(segment) }; let predicate = make::where_pred(path, param.type_bound_list()?.bounds()); Some(predicate) diff --git a/crates/ra_syntax/src/ast/make.rs b/crates/ra_syntax/src/ast/make.rs index 60cd9d260..3f11b747f 100644 --- a/crates/ra_syntax/src/ast/make.rs +++ b/crates/ra_syntax/src/ast/make.rs @@ -15,7 +15,7 @@ pub fn name_ref(text: &str) -> ast::NameRef { pub fn path_segment(name_ref: ast::NameRef) -> ast::PathSegment { ast_from_text(&format!("use {};", name_ref.syntax())) } -pub fn path_unqalified(segment: ast::PathSegment) -> ast::Path { +pub fn path_unqualified(segment: ast::PathSegment) -> ast::Path { path_from_text(&format!("use {}", segment.syntax())) } pub fn path_qualified(qual: ast::Path, segment: ast::PathSegment) -> ast::Path { -- cgit v1.2.3