File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub fn name_ref(text: &str) -> ast::NameRef {
1515pub 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}
2121pub fn path_qualified ( qual : ast:: Path , segment : ast:: PathSegment ) -> ast:: Path {
You can’t perform that action at this time.
0 commit comments