on master help sign in
Allow unused code for the time being.
387fb57Blaž Hrastnik
helix-core/src/buffer.rs+1−1
@@ -8,7 +8,7 @@ pub struct Buffer {
8
8
9impl Buffer {
9impl Buffer {
10 pub fn load(path: PathBuf) -> Result<Self, Error> {
10 pub fn load(path: PathBuf) -> Result<Self, Error> {
11− let current_dir = env::current_dir()?;
11+ let _current_dir = env::current_dir()?;
12
12
13 let contents = Rope::from_reader(BufReader::new(File::open(path)?))?;
13 let contents = Rope::from_reader(BufReader::new(File::open(path)?))?;
14
14
helix-core/src/lib.rs+1
@@ -1,3 +1,4 @@
1+#![allow(unused)]
1mod buffer;
2mod buffer;
2mod graphemes;
3mod graphemes;
3mod selection;
4mod selection;
helix-core/src/transaction.rs+1−1
@@ -189,7 +189,7 @@ impl ChangeSet {
189 /// provides a basic form of [operational
189 /// provides a basic form of [operational
190 /// transformation](https://en.wikipedia.org/wiki/Operational_transformation),
190 /// transformation](https://en.wikipedia.org/wiki/Operational_transformation),
191 /// and can be used for collaborative editing.
191 /// and can be used for collaborative editing.
192− pub fn map(self, other: Self) -> Self {
192+ pub fn map(self, _other: Self) -> Self {
193 unimplemented!()
193 unimplemented!()
194 }
194 }
195
195
helix-term/src/editor.rs−1
@@ -1,4 +1,3 @@
1−#![allow(unused)]
2use anyhow::Error;
1use anyhow::Error;
3use termwiz::caps::Capabilities;
2use termwiz::caps::Capabilities;
4use termwiz::cell::AttributeChange;
3use termwiz::cell::AttributeChange;
helix-term/src/main.rs+2−1
@@ -1,10 +1,11 @@
1+#![allow(unused)]
1// mod editor;
2// mod editor;
2mod component;
3mod component;
3
4
4// use editor::Editor;
5// use editor::Editor;
5
6
6use argh::FromArgs;
7use argh::FromArgs;
7−use std::{env, path::PathBuf};
8+use std::path::PathBuf;
8
9
9use anyhow::Error;
10use anyhow::Error;
10
11