diff options
author | Aleksey Kladov <[email protected]> | 2019-01-03 15:59:17 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-03 15:59:17 +0000 |
commit | a4635a199bc446bd103aa5821e57dc19b8a15751 (patch) | |
tree | 5dcdd940d8627f021062245cb79589a790b60e04 /crates/ra_syntax/src/yellow/syntax_text.rs | |
parent | aea2183799e7975d3d9000cec9bb9a3c001a3d4e (diff) |
more enterprisey assists API
Diffstat (limited to 'crates/ra_syntax/src/yellow/syntax_text.rs')
-rw-r--r-- | crates/ra_syntax/src/yellow/syntax_text.rs | 6 |
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 | |||
123 | impl From<SyntaxText<'_>> for String { | ||
124 | fn from(text: SyntaxText) -> String { | ||
125 | text.to_string() | ||
126 | } | ||
127 | } | ||