Skip to content

Commit 9abcab1

Browse files
committed
Fix typo
1 parent 5f8b375 commit 9abcab1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/ra_assists/src/handlers/early_return.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub(crate) fn convert_to_guarded_return(ctx: AssistCtx) -> Option<Assist> {
120120
let expr = {
121121
let name_ref = make::name_ref("it");
122122
let segment = make::path_segment(name_ref);
123-
let path = make::path_unqalified(segment);
123+
let path = make::path_unqualified(segment);
124124
make::expr_path(path)
125125
};
126126
make::match_arm(once(pat.into()), expr)

crates/ra_assists/src/handlers/move_bounds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn build_predicate(param: ast::TypeParam) -> Option<ast::WherePred> {
7575
let path = {
7676
let name_ref = make::name_ref(&param.name()?.syntax().to_string());
7777
let segment = make::path_segment(name_ref);
78-
make::path_unqalified(segment)
78+
make::path_unqualified(segment)
7979
};
8080
let predicate = make::where_pred(path, param.type_bound_list()?.bounds());
8181
Some(predicate)

crates/ra_syntax/src/ast/make.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn name_ref(text: &str) -> ast::NameRef {
1515
pub fn path_segment(name_ref: ast::NameRef) -> ast::PathSegment {
1616
ast_from_text(&format!("use {};", name_ref.syntax()))
1717
}
18-
pub fn path_unqalified(segment: ast::PathSegment) -> ast::Path {
18+
pub fn path_unqualified(segment: ast::PathSegment) -> ast::Path {
1919
path_from_text(&format!("use {}", segment.syntax()))
2020
}
2121
pub fn path_qualified(qual: ast::Path, segment: ast::PathSegment) -> ast::Path {

0 commit comments

Comments
 (0)