aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src/ast
diff options
context:
space:
mode:
authorAleksei Sidorov <[email protected]>2020-09-04 15:55:27 +0100
committerAleksei Sidorov <[email protected]>2020-09-04 15:55:27 +0100
commitef0a1b2e58b6047223a68f700ef16fcc21f9f208 (patch)
treeda9021b468a1d7d2607c1e74556a2f4b409aaff0 /crates/syntax/src/ast
parenta1c060c8d0fa3d7f7ad27f56be8298e5f9759c95 (diff)
Fix tests
Diffstat (limited to 'crates/syntax/src/ast')
-rw-r--r--crates/syntax/src/ast/make.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/ast/make.rs b/crates/syntax/src/ast/make.rs
index 7329e3039..dac4174cd 100644
--- a/crates/syntax/src/ast/make.rs
+++ b/crates/syntax/src/ast/make.rs
@@ -294,7 +294,7 @@ pub fn param_list(pats: impl IntoIterator<Item = ast::Param>) -> ast::ParamList
294 ast_from_text(&format!("fn f({}) {{ }}", args)) 294 ast_from_text(&format!("fn f({}) {{ }}", args))
295} 295}
296 296
297pub fn generic_param(name: String, ty: Option<String>) -> ast::GenericParam { 297pub fn generic_param(name: String, ty: Option<ast::TypeBoundList>) -> ast::GenericParam {
298 let bound = match ty { 298 let bound = match ty {
299 Some(it) => format!(": {}", it), 299 Some(it) => format!(": {}", it),
300 None => String::new(), 300 None => String::new(),