From d392c985f2f6ffbfa053f1d4e8237c4c7b9b8444 Mon Sep 17 00:00:00 2001 From: Liam <33645555+lj3954@users.noreply.github.com> Date: Fri, 25 Oct 2024 07:29:42 -0700 Subject: [PATCH] fix (xtask): Handle modified tablist struct --- core/src/inner.rs | 8 ++++++++ xtask/src/docgen.rs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/core/src/inner.rs b/core/src/inner.rs index 80a11459..d98e7efe 100644 --- a/core/src/inner.rs +++ b/core/src/inner.rs @@ -32,6 +32,14 @@ impl DerefMut for TabList { &mut self.0 } } +impl IntoIterator for TabList { + type Item = Tab; + type IntoIter = std::vec::IntoIter; + + fn into_iter(self) -> Self::IntoIter { + self.0.into_iter() + } +} pub fn get_tabs(validate: bool) -> TabList { let (temp_dir, tab_files) = TabDirectories::get_tabs(); diff --git a/xtask/src/docgen.rs b/xtask/src/docgen.rs index 992b83aa..fe930be2 100644 --- a/xtask/src/docgen.rs +++ b/xtask/src/docgen.rs @@ -11,7 +11,7 @@ pub fn userguide() -> Result { let mut md = String::new(); md.push_str("\n# Walkthrough\n"); - let tabs = linutil_core::get_tabs(false).1; + let tabs = linutil_core::get_tabs(false); for tab in tabs { #[cfg(debug_assertions)]