mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
use stdx
This commit is contained in:
parent
0ed27c388a
commit
046a021013
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,7 @@
|
||||||
//! Various traits that are implemented by ast nodes.
|
//! Various traits that are implemented by ast nodes.
|
||||||
//!
|
//!
|
||||||
//! The implementations are usually trivial, and live in generated.rs
|
//! The implementations are usually trivial, and live in generated.rs
|
||||||
|
use stdx::SepBy;
|
||||||
use itertools::Itertools;
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
ast::{self, support, AstChildren, AstNode, AstToken},
|
ast::{self, support, AstChildren, AstNode, AstToken},
|
||||||
|
@ -116,7 +115,8 @@ pub trait DocCommentsOwner: AstNode {
|
||||||
// of a line in markdown.
|
// of a line in markdown.
|
||||||
line[pos..end].to_owned()
|
line[pos..end].to_owned()
|
||||||
})
|
})
|
||||||
.join("\n");
|
.sep_by("\n")
|
||||||
|
.to_string();
|
||||||
|
|
||||||
if has_comments {
|
if has_comments {
|
||||||
Some(docs)
|
Some(docs)
|
||||||
|
|
Loading…
Reference in a new issue