aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src
diff options
context:
space:
mode:
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
}
}