File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -159,14 +159,12 @@ fn ty_from_text(text: &str) -> ast::Type {
159159}
160160
161161/// Related goto [link](https://doc.rust-lang.org/reference/items/type-aliases.html)
162- /// Type Alias syntax is
163- ///
164- /// ```
165- /// TypeAlias :
166- /// type IDENTIFIER GenericParams? ( : TypeParamBounds )? WhereClause? ( = Type WhereClause?)? ;
167- /// ```
168- ///
169- /// FIXME : ident should be of type ast::Ident
162+ /// Type Alias syntax is
163+ /// ```
164+ /// TypeAlias :
165+ /// type IDENTIFIER GenericParams? ( : TypeParamBounds )? WhereClause? ( = Type WhereClause?)? ;
166+ /// ```
167+ /// FIXME : ident should be of type ast::Ident
170168pub fn ty_alias (
171169 ident : & str ,
172170 generic_param_list : Option < ast:: GenericParamList > ,
@@ -182,7 +180,7 @@ pub fn ty_alias(
182180 }
183181
184182 if let Some ( list) = type_param_bounds {
185- s. push_str ( & format ! ( " : {}" , & list. to_string ( ) ) ) ;
183+ s. push_str ( & format ! ( " : {}" , & list) ) ;
186184 }
187185
188186 if let Some ( cl) = where_clause {
You can’t perform that action at this time.
0 commit comments