From 29d3d04227d52c3e81e8c87ab4913b77d29fce28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 22 Jul 2020 22:44:31 +0200 Subject: assists: change_return_type_to_result: clarify assist description I had a -> Option fn, which I wanted to change to Result, but despite advertising to do so, the assist did not change the result type to Result but instead just wrapped it in a Result: , _>. I changed the assist description to "Wrap return type in Result" to clarify that the assist only wraps the preexisting type and does not do any deep Option-to-Result refactoring. --- crates/ra_assists/src/handlers/change_return_type_to_result.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ra_assists/src/handlers/change_return_type_to_result.rs b/crates/ra_assists/src/handlers/change_return_type_to_result.rs index 24e5f6963..def00f7d8 100644 --- a/crates/ra_assists/src/handlers/change_return_type_to_result.rs +++ b/crates/ra_assists/src/handlers/change_return_type_to_result.rs @@ -36,7 +36,7 @@ pub(crate) fn change_return_type_to_result(acc: &mut Assists, ctx: &AssistContex acc.add( AssistId("change_return_type_to_result", AssistKind::RefactorRewrite), - "Change return type to Result", + "Wrap return type in Result", type_ref.syntax().text_range(), |builder| { let mut tail_return_expr_collector = TailReturnCollector::new(); -- cgit v1.2.3