From 71b1eb527b41da38fb6d4a70a1fc53afea4c3785 Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Tue, 5 Dec 2023 11:58:27 -0700 Subject: [PATCH] refactor: Move `display_list` under `renderer` --- src/lib.rs | 1 - src/{display_list/mod.rs => renderer/display_list.rs} | 0 src/renderer/mod.rs | 3 ++- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{display_list/mod.rs => renderer/display_list.rs} (100%) diff --git a/src/lib.rs b/src/lib.rs index 5da3575..80eac53 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,7 +41,6 @@ //! //! Finally, `impl Display` into a final `String` output. -mod display_list; pub mod renderer; mod snippet; diff --git a/src/display_list/mod.rs b/src/renderer/display_list.rs similarity index 100% rename from src/display_list/mod.rs rename to src/renderer/display_list.rs diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 5f655c8..0e19c08 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -31,12 +31,13 @@ //! let renderer = Renderer::styled(); //! println!("{}", renderer.render(snippet)); +mod display_list; mod margin; pub(crate) mod stylesheet; -use crate::display_list::DisplayList; use crate::snippet::Snippet; pub use anstyle::*; +use display_list::DisplayList; pub use margin::Margin; use std::fmt::Display; use stylesheet::Stylesheet;