diff --git a/viz-handlers/src/serve/directory.rs b/viz-handlers/src/serve/directory.rs index 5f3aaeff..aa5693b0 100644 --- a/viz-handlers/src/serve/directory.rs +++ b/viz-handlers/src/serve/directory.rs @@ -13,14 +13,14 @@ use std::{ use viz_core::{IntoResponse, Response, ResponseExt}; #[derive(Debug)] -pub(crate) struct Directory { +pub(super) struct Directory { name: String, paths: Paths, files: Files, } impl Directory { - pub(crate) fn new( + pub(super) fn new( base: &str, prev: bool, root: &Path, @@ -116,7 +116,7 @@ impl Display for Directory { /// Path: (url, name) #[derive(Debug)] -pub(crate) struct Paths(Vec<(String, String)>); +struct Paths(Vec<(String, String)>); impl Display for Paths { fn fmt(&self, f: &mut Formatter<'_>) -> Result { @@ -129,7 +129,7 @@ impl Display for Paths { /// File: (relative, title, kind, ext, base) #[derive(Debug)] -pub(crate) struct Files(Vec<(String, String, bool, Option, String)>); +struct Files(Vec<(String, String, bool, Option, String)>); impl Display for Files { fn fmt(&self, f: &mut Formatter<'_>) -> Result {