From 5ca9dfabb812692ca9e97cf9113e0c1b91e485e9 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Sun, 15 Jun 2025 12:53:23 +0200 Subject: [PATCH] Rename `painting` module to `handwriting` --- src/file_editor.rs | 4 ++-- src/{painting.rs => handwriting.rs} | 0 src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/{painting.rs => handwriting.rs} (100%) diff --git a/src/file_editor.rs b/src/file_editor.rs index d19eb70..9c3b829 100644 --- a/src/file_editor.rs +++ b/src/file_editor.rs @@ -12,7 +12,7 @@ use egui::{ use crate::{ custom_code_block::{MdItem, iter_lines_and_code_blocks}, - painting::{self, Handwriting, HandwritingStyle}, + handwriting::{self, Handwriting, HandwritingStyle}, preferences::Preferences, text_editor::MdTextEdit, }; @@ -287,7 +287,7 @@ impl From<&str> for FileEditor { match item { MdItem::Line(line) => push_text(buffer, line), MdItem::CodeBlock { key, content, span } => match key { - painting::CODE_BLOCK_KEY => match Handwriting::from_str(span) { + handwriting::CODE_BLOCK_KEY => match Handwriting::from_str(span) { Ok(handwriting) => { if let Some(BufferItem::Text(text_edit)) = buffer.last_mut() { if text_edit.text.ends_with('\n') { diff --git a/src/painting.rs b/src/handwriting.rs similarity index 100% rename from src/painting.rs rename to src/handwriting.rs diff --git a/src/lib.rs b/src/lib.rs index 38ec018..491b59d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,7 @@ pub mod constants; pub mod custom_code_block; pub mod easy_mark; pub mod file_editor; -pub mod painting; +pub mod handwriting; pub mod preferences; pub mod rasterizer; pub mod text_editor;