Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed May 27, 2024
1 parent d00e3e6 commit 3c02516
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions viz-handlers/src/serve/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand All @@ -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>, String)>);
struct Files(Vec<(String, String, bool, Option<String>, String)>);

impl Display for Files {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
Expand Down

0 comments on commit 3c02516

Please sign in to comment.