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 {
159
159
}
160
160
161
161
/// 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
170
168
pub fn ty_alias (
171
169
ident : & str ,
172
170
generic_param_list : Option < ast:: GenericParamList > ,
@@ -182,7 +180,7 @@ pub fn ty_alias(
182
180
}
183
181
184
182
if let Some ( list) = type_param_bounds {
185
- s. push_str ( & format ! ( " : {}" , & list. to_string ( ) ) ) ;
183
+ s. push_str ( & format ! ( " : {}" , & list) ) ;
186
184
}
187
185
188
186
if let Some ( cl) = where_clause {
You can’t perform that action at this time.
0 commit comments