diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-18 16:50:26 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-18 16:50:26 +0000 |
commit | 150ea3a61f07b19db3f55e8c675eba53f1a22961 (patch) | |
tree | 9fae5f7c47cabaa433b2aabeea5ab1dc0d3b0b8d /crates/assists | |
parent | 8be3f25b0bf77b547ba83c3eb9689a40d212a55b (diff) | |
parent | cd4a7bf36e202ae7e97d9a655750f70176a0651e (diff) |
Merge #6931
6931: Minor, cleanup API r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/assists')
-rw-r--r-- | crates/assists/src/handlers/generate_function.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
145 | self.type_params, | 145 | self.type_params, |
146 | self.params, | 146 | self.params, |
147 | fn_body, | 147 | fn_body, |
148 | Some(make::ret_type(make::ty("()"))), | 148 | Some(make::ret_type(make::ty_unit())), |
149 | ); | 149 | ); |
150 | let leading_ws; | 150 | let leading_ws; |
151 | let trailing_ws; | 151 | let trailing_ws; |