From 2b229573cd2881a9be00e66557561302cc76b161 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sat, 30 Nov 2024 19:12:07 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Code=20tweak?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 6 +++--- src/prelude.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9797b84b..a5369718 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,7 +53,7 @@ //! ``` //! This program implements a package named `HelloWorld` with one service that returns a web page //! that greets the world whenever it is accessed from the browser at `http://localhost:8088` (using -//! the [default configuration settings](`config::Server`)). You can find this code in the `PageTop` +//! the [default configuration settings](`global::Server`)). You can find this code in the `PageTop` //! [examples repository](https://github.com/manuelcillero/pagetop/tree/latest/examples). //! //! # 🧩 Dependency Management @@ -79,9 +79,9 @@ pub use concat_string::concat_string; /// Enables flexible identifier concatenation in macros, allowing new items with pasted identifiers. pub use paste::paste; -pub use pagetop_macros::{fn_builder, main, test, AutoDefault, ComponentClasses}; +pub use pagetop_macros::{fn_builder, html, main, test, AutoDefault, ComponentClasses}; -pub type HashMapResources = std::collections::HashMap<&'static str, static_files::Resource>; +pub type StaticResources = std::collections::HashMap<&'static str, static_files::Resource>; pub use std::any::TypeId; diff --git a/src/prelude.rs b/src/prelude.rs index 1a3efc92..9d0d465f 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -4,7 +4,7 @@ pub use crate::{concat_string, fn_builder, html, main, paste, test}; -pub use crate::{AutoDefault, ComponentClasses, HashMapResources, TypeId, Weight}; +pub use crate::{AutoDefault, ComponentClasses, StaticResources, TypeId, Weight}; // MACROS.