mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
cleanups
This commit is contained in:
parent
edeb492782
commit
d9c9f6dc2c
4 changed files with 25 additions and 17 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue