Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_assists/src/handlers/convert_comment_block.rs')
| -rw-r--r-- | crates/ide_assists/src/handlers/convert_comment_block.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ide_assists/src/handlers/convert_comment_block.rs b/crates/ide_assists/src/handlers/convert_comment_block.rs index 472aef2648..3261f56525 100644 --- a/crates/ide_assists/src/handlers/convert_comment_block.rs +++ b/crates/ide_assists/src/handlers/convert_comment_block.rs @@ -96,8 +96,7 @@ fn line_to_block(acc: &mut Assists, comment: ast::Comment) -> Option<()> { let block_prefix = CommentKind { shape: CommentShape::Block, ..comment.kind() }.prefix(); - let output = - format!("{}\n{}\n{}*/", block_prefix, block_comment_body, indentation.to_string()); + let output = format!("{}\n{}\n{}*/", block_prefix, block_comment_body, indentation); edit.replace(target, output) }, |