diff --git a/components/content/src/page.rs b/components/content/src/page.rs index add40199cd..73aa76bfc9 100644 --- a/components/content/src/page.rs +++ b/components/content/src/page.rs @@ -20,8 +20,8 @@ use crate::library::Library; use crate::ser::SerializingPage; use crate::utils::get_reading_analytics; use crate::utils::{find_related_assets, has_anchor}; +use utils::anchors::has_anchor_id; use utils::fs::read_file; -use utils::links::has_anchor_id; // Based on https://regex101.com/r/H2n38Z/1/tests // A regex parsing RFC3339 date followed by {_,-}, some characters and ended by .md diff --git a/components/link_checker/src/lib.rs b/components/link_checker/src/lib.rs index 1123d23998..3b3551afd6 100644 --- a/components/link_checker/src/lib.rs +++ b/components/link_checker/src/lib.rs @@ -9,7 +9,7 @@ use libs::reqwest::{blocking::Client, StatusCode}; use config::LinkChecker; use errors::anyhow; -use utils::links::has_anchor_id; +use utils::anchors::has_anchor_id; pub type Result = result::Result; diff --git a/components/utils/src/links.rs b/components/utils/src/anchors.rs similarity index 100% rename from components/utils/src/links.rs rename to components/utils/src/anchors.rs diff --git a/components/utils/src/lib.rs b/components/utils/src/lib.rs index 974bf0434d..3b2ab6022d 100644 --- a/components/utils/src/lib.rs +++ b/components/utils/src/lib.rs @@ -1,6 +1,6 @@ +pub mod anchors; pub mod de; pub mod fs; -pub mod links; pub mod net; pub mod site; pub mod slugs;