From 69d87ef680691554db67f47b38a17e454663affe Mon Sep 17 00:00:00 2001 From: Matthew Gordon Date: Mon, 10 Nov 2025 21:05:43 -0400 Subject: [PATCH] Clean up library exports and docs --- core/src/editor_buffer/io.rs | 1 + core/src/editor_buffer/mod.rs | 2 +- core/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/editor_buffer/io.rs b/core/src/editor_buffer/io.rs index 669cac2..6060364 100644 --- a/core/src/editor_buffer/io.rs +++ b/core/src/editor_buffer/io.rs @@ -3,6 +3,7 @@ use std::path::PathBuf; use super::{CommandResponse, EditorBuffer}; use crate::{Point, TextBuffer, TextBufferReader, TextBufferWriter}; +#[doc(hidden)] impl EditorBuffer { pub fn open_file(&mut self, filepath: PathBuf) -> CommandResponse { match std::fs::File::open(&filepath) { diff --git a/core/src/editor_buffer/mod.rs b/core/src/editor_buffer/mod.rs index 5f32d7b..9849aab 100644 --- a/core/src/editor_buffer/mod.rs +++ b/core/src/editor_buffer/mod.rs @@ -1,6 +1,6 @@ use std::path::PathBuf; -use crate::{Point, TextBuffer, TextBufferWriter}; +use crate::{Point, TextBuffer}; mod io; mod command; diff --git a/core/src/lib.rs b/core/src/lib.rs index d7abe8d..1af1c62 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -1,4 +1,4 @@ mod text_buffer; pub use text_buffer::{Point, TextBuffer, TextBufferReader, TextBufferWriter}; mod editor_buffer; -pub use editor_buffer::{Command, CommandResponse, EditorBuffer}; +pub use editor_buffer::{Command, CommandResponse, EditorBuffer, Movement, Unit};