on master help sign in
Allow unused code for the time being.
commit387fb57c94a5269b5ff560891fdee53a2f3fc554 authorBlaž Hrastnik <blaz@mxxn.io> dateTue 2 Jun 2020, 10:57 (6 years ago) parent3848058
5 files changed+5−4
helix-core/src/buffer.rs+1−1 helix-core/src/lib.rs+1 helix-core/src/transaction.rs+1−1 helix-term/src/editor.rs−1 helix-term/src/main.rs+2−1
helix-core/src/buffer.rs+1−1
@@ -8,7 +8,7 @@ pub struct Buffer {
88
99impl Buffer {
1010 pub fn load(path: PathBuf) -> Result<Self, Error> {
11− let current_dir = env::current_dir()?;
11+ let _current_dir = env::current_dir()?;
1212
1313 let contents = Rope::from_reader(BufReader::new(File::open(path)?))?;
1414
helix-core/src/lib.rs+1
@@ -1,3 +1,4 @@
1+#![allow(unused)]
12mod buffer;
23mod graphemes;
34mod selection;
helix-core/src/transaction.rs+1−1
@@ -189,7 +189,7 @@ impl ChangeSet {
189189 /// provides a basic form of [operational
190190 /// transformation](https://en.wikipedia.org/wiki/Operational_transformation),
191191 /// and can be used for collaborative editing.
192− pub fn map(self, other: Self) -> Self {
192+ pub fn map(self, _other: Self) -> Self {
193193 unimplemented!()
194194 }
195195
helix-term/src/editor.rs−1
@@ -1,4 +1,3 @@
1−#![allow(unused)]
21use anyhow::Error;
32use termwiz::caps::Capabilities;
43use termwiz::cell::AttributeChange;
helix-term/src/main.rs+2−1
@@ -1,10 +1,11 @@
1+#![allow(unused)]
12// mod editor;
23mod component;
34
45// use editor::Editor;
56
67use argh::FromArgs;
7−use std::{env, path::PathBuf};
8+use std::path::PathBuf;
89
910use anyhow::Error;
1011