aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorJan Hrastnik2021-06-16 14:57:47 +0000
committerJan Hrastnik2021-06-16 15:13:44 +0000
commit7cf0fa05a4ca6bf62d38836f3aa99a1ac585a261 (patch)
tree76f4c65fddc1a6db7b6e977f7fbe1ab2ce8b3edc /helix-view
parenta4f5a0134e308ffad318ab6920fe1ed0264a93cb (diff)
doc.line_ending() now returns &'static str
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/document.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 5f61f05a..c15a42ab 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -741,7 +741,7 @@ impl Document {
self.diagnostics = diagnostics;
}
- pub fn line_ending(&self) -> &str {
+ pub fn line_ending(&self) -> &'static str {
match self.line_ending {
LineEnding::Crlf => "\u{000D}\u{000A}",
LineEnding::LF => "\u{000A}",