From cd4a7bf36e202ae7e97d9a655750f70176a0651e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 18 Dec 2020 19:50:00 +0300 Subject: Minor, cleanup API --- crates/assists/src/handlers/generate_function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/assists/src/handlers/generate_function.rs') diff --git a/crates/assists/src/handlers/generate_function.rs b/crates/assists/src/handlers/generate_function.rs index 758188a42..f4cf155b6 100644 --- a/crates/assists/src/handlers/generate_function.rs +++ b/crates/assists/src/handlers/generate_function.rs @@ -145,7 +145,7 @@ impl FunctionBuilder { self.type_params, self.params, fn_body, - Some(make::ret_type(make::ty("()"))), + Some(make::ret_type(make::ty_unit())), ); let leading_ws; let trailing_ws; -- cgit v1.2.3