aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src
diff options
context:
space:
mode:
authorJan Hrastnik2020-06-19 00:14:29 +0000
committerJan Hrastnik2020-06-19 00:14:29 +0000
commite93b15cef3d9274a95ac4342e777d240856e5803 (patch)
tree4f2ab662d75d21511a71c5246c197c1542422455 /helix-core/src
parent8958f06f0824965d030adc7522303129da014315 (diff)
created view struct
Diffstat (limited to 'helix-core/src')
-rw-r--r--helix-core/src/state.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs
index 8ebf3887..429a4dd4 100644
--- a/helix-core/src/state.rs
+++ b/helix-core/src/state.rs
@@ -120,8 +120,7 @@ impl State {
pub fn file(&self) -> &Rope {
// used to access file contents for rendering to screen
- let copy = &self.doc.contents;
- copy
+ &self.doc.contents
}
}