Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e275f77

Browse files
committed
Comment clean-up. Use display where possible
1 parent caa13b3 commit e275f77

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

crates/syntax/src/ast/make.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff 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
170168
pub 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 {

0 commit comments

Comments
 (0)