aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-09 22:05:13 +0100
committerAleksey Kladov <[email protected]>2020-04-09 22:05:13 +0100
commit046a02101355bb58cf66218f7dd6dc4fa78fc53f (patch)
tree543cf2300d2aa5fe8b8ee8b3d773b300ebe0bade /crates/ra_syntax/src
parent0ed27c388adca887cda3d8141efaf974e90a5958 (diff)
use stdx
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/ast/traits.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/ast/traits.rs b/crates/ra_syntax/src/ast/traits.rs
index f0b54cf29..4ed7cf73b 100644
--- a/crates/ra_syntax/src/ast/traits.rs
+++ b/crates/ra_syntax/src/ast/traits.rs
@@ -1,8 +1,7 @@
1//! Various traits that are implemented by ast nodes. 1//! Various traits that are implemented by ast nodes.
2//! 2//!
3//! The implementations are usually trivial, and live in generated.rs 3//! The implementations are usually trivial, and live in generated.rs
4 4use stdx::SepBy;
5use itertools::Itertools;
6 5
7use crate::{ 6use crate::{
8 ast::{self, support, AstChildren, AstNode, AstToken}, 7 ast::{self, support, AstChildren, AstNode, AstToken},
@@ -116,7 +115,8 @@ pub trait DocCommentsOwner: AstNode {
116 // of a line in markdown. 115 // of a line in markdown.
117 line[pos..end].to_owned() 116 line[pos..end].to_owned()
118 }) 117 })
119 .join("\n"); 118 .sep_by("\n")
119 .to_string();
120 120
121 if has_comments { 121 if has_comments {
122 Some(docs) 122 Some(docs)