This commit is contained in:
Aleksey Kladov 2021-05-09 17:58:03 +03:00
parent edeb492782
commit d9c9f6dc2c
4 changed files with 25 additions and 17 deletions

View file

@ -475,8 +475,8 @@ pub fn param_list(
};
ast_from_text(&list)
}
pub fn generic_param(name: String, ty: Option<ast::TypeBoundList>) -> ast::GenericParam {
// FIXME: s/&str/ast:Name
pub fn generic_param(name: &str, ty: Option<ast::TypeBoundList>) -> ast::GenericParam {
let bound = match ty {
Some(it) => format!(": {}", it),
None => String::new(),