From 19db26efa2979681dce3169fe4aed1d2061b7522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20H=C3=B6lting?= <87192362+moritz-hoelting@users.noreply.github.com> Date: Sat, 13 Apr 2024 13:31:14 +0200 Subject: [PATCH] Refactor flatten method to be public --- src/virtual_fs.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/virtual_fs.rs b/src/virtual_fs.rs index a0d3fd3..1e453fb 100644 --- a/src/virtual_fs.rs +++ b/src/virtual_fs.rs @@ -165,9 +165,8 @@ impl VFolder { Ok(()) } - #[allow(dead_code)] /// Flatten the folder and its contents into a list of files with full paths. - fn flatten(&self) -> Vec<(String, &VFile)> { + pub fn flatten(&self) -> Vec<(String, &VFile)> { let mut files = self .files .iter()