mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Allow unused code for the time being.
This commit is contained in:
parent
3848058472
commit
387fb57c94
@ -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)?))?;
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![allow(unused)]
|
||||
mod buffer;
|
||||
mod graphemes;
|
||||
mod selection;
|
||||
|
@ -189,7 +189,7 @@ pub fn compose(self, other: ChangeSet) -> Result<Self, ()> {
|
||||
/// 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!()
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#![allow(unused)]
|
||||
use anyhow::Error;
|
||||
use termwiz::caps::Capabilities;
|
||||
use termwiz::cell::AttributeChange;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user