aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-06-02 01:57:01 +0000
committerBlaž Hrastnik2020-06-02 01:59:02 +0000
commit387fb57c94a5269b5ff560891fdee53a2f3fc554 (patch)
treef0ad60c132fd0f11b54cc934dfa0c3038474a424 /helix-core/src
parent3848058472e65b7f8d092c44d61091a22a78bfa4 (diff)
Allow unused code for the time being.
Diffstat (limited to 'helix-core/src')
-rw-r--r--helix-core/src/buffer.rs2
-rw-r--r--helix-core/src/lib.rs1
-rw-r--r--helix-core/src/transaction.rs2
3 files changed, 3 insertions, 2 deletions
diff --git a/helix-core/src/buffer.rs b/helix-core/src/buffer.rs
index 9dd22773..746e01ea 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<Self, Error> {
- 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 d2c78d3f..8675fc6f 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 f3bb40fa..1619a4db 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!()
}