aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-01-12 21:03:25 -0800
committerRose Hogenson <rosehogenson@posteo.net>2024-01-12 21:03:25 -0800
commita41476ac28083a2d8a54161d4177b3ee5c028525 (patch)
tree34355d8e623ae56ca9f3cd5a8376bb0807a5c5b5 /src/main.rs
parent8d741fb146a599dd41915829ab309d96e9989435 (diff)
downloadeditor-a41476ac28083a2d8a54161d4177b3ee5c028525.tar.zst
Start tuning the performance of rope.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index b40d9b1..5b9d2f5 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,14 +1,12 @@
-mod rope;
-mod term;
-
-use rope::Rope;
+use edit::rope::Rope;
+use edit::term;
+use edit::term::Key;
+use edit::term::Reader;
use std::error::Error;
use std::ffi::{OsStr, OsString};
use std::fs::File;
use std::io::{stderr, stdout, Write};
use std::path::{Path, PathBuf};
-use term::Key;
-use term::Reader;
fn open(file: &Path) -> Result<Rope, std::io::Error> {
let mut f = File::open(file)?;