From 387fb57c94a5269b5ff560891fdee53a2f3fc554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Tue, 2 Jun 2020 10:57:01 +0900 Subject: [PATCH] Allow unused code for the time being. --- helix-core/src/buffer.rs | 2 +- helix-core/src/lib.rs | 1 + helix-core/src/transaction.rs | 2 +- helix-term/src/editor.rs | 1 - helix-term/src/main.rs | 3 ++- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/helix-core/src/buffer.rs b/helix-core/src/buffer.rs index 9dd227737..746e01ea5 100644 --- a/helix-core/src/buffer.rs +++ b/helix-core/src/buffer.rs @@ -8,7 +8,7 @@ pub struct Buffer { impl Buffer { pub fn load(path: PathBuf) -> Result { - let current_dir = env::current_dir()?; + let _current_dir = env::current_dir()?; let contents = Rope::from_reader(BufReader::new(File::open(path)?))?; diff --git a/helix-core/src/lib.rs b/helix-core/src/lib.rs index d2c78d3fc..8675fc6f1 100644 --- a/helix-core/src/lib.rs +++ b/helix-core/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(unused)] mod buffer; mod graphemes; mod selection; diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs index f3bb40faf..1619a4db3 100644 --- a/helix-core/src/transaction.rs +++ b/helix-core/src/transaction.rs @@ -189,7 +189,7 @@ impl ChangeSet { /// provides a basic form of [operational /// transformation](https://en.wikipedia.org/wiki/Operational_transformation), /// and can be used for collaborative editing. - pub fn map(self, other: Self) -> Self { + pub fn map(self, _other: Self) -> Self { unimplemented!() } diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs index 111c32731..c4aa72e62 100644 --- a/helix-term/src/editor.rs +++ b/helix-term/src/editor.rs @@ -1,4 +1,3 @@ -#![allow(unused)] use anyhow::Error; use termwiz::caps::Capabilities; use termwiz::cell::AttributeChange; diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs index e21fc7d7a..9a09e8c71 100644 --- a/helix-term/src/main.rs +++ b/helix-term/src/main.rs @@ -1,10 +1,11 @@ +#![allow(unused)] // mod editor; mod component; // use editor::Editor; use argh::FromArgs; -use std::{env, path::PathBuf}; +use std::path::PathBuf; use anyhow::Error;