A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/text/bookmark.rs')
-rw-r--r--src/text/bookmark.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/text/bookmark.rs b/src/text/bookmark.rs
index 4080d21..0efd8b0 100644
--- a/src/text/bookmark.rs
+++ b/src/text/bookmark.rs
@@ -9,7 +9,7 @@ pub struct Bookmark {
}
#[derive(Clone, Serialize, Deserialize, Default, Debug)]
-pub struct Bookmarks(Vec<Bookmark>);
+pub struct Bookmarks(pub Vec<Bookmark>);
impl DerefMut for Bookmarks {
fn deref_mut(&mut self) -> &mut Self::Target {
@@ -24,11 +24,3 @@ impl Deref for Bookmarks {
&self.0
}
}
-impl Bookmarks {
- pub fn manipulate(&mut self, mut f: impl FnMut(usize) -> usize) {
- for lem in &mut self.0 {
- lem.position = f(lem.position);
- }
- }
- // pub fn to_gtl_d(&self) -> Vec<(PathBuf, Range)> {}
-}