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)]