aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/yellow
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-03 16:08:52 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-03 16:08:52 +0000
commit33924c0939bb64cdb6fc4644582411a7be1f135d (patch)
treeea555719a2ec8574f5399de896b9c4e2586c7270 /crates/ra_syntax/src/yellow
parent5443205fdd9f4886cc88ad15c3a6061ffa90ca19 (diff)
parent6be39ba758eade2a20ab6384127a2b1ca48ca9ce (diff)
Merge #416
416: assist-builder r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/yellow')
-rw-r--r--crates/ra_syntax/src/yellow/syntax_text.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/yellow/syntax_text.rs b/crates/ra_syntax/src/yellow/syntax_text.rs
index 46bde9a08..783dca214 100644
--- a/crates/ra_syntax/src/yellow/syntax_text.rs
+++ b/crates/ra_syntax/src/yellow/syntax_text.rs
@@ -119,3 +119,9 @@ impl SyntaxTextSlice for ops::Range<TextUnit> {
119 TextRange::from_to(self.start, self.end).restrict(range) 119 TextRange::from_to(self.start, self.end).restrict(range)
120 } 120 }
121} 121}
122
123impl From<SyntaxText<'_>> for String {
124 fn from(text: SyntaxText) -> String {
125 text.to_string()
126 }
127}