fix (xtask): Handle modified tablist struct

This commit is contained in:
Liam 2024-10-25 07:29:42 -07:00
parent 51433a9a0d
commit d392c985f2
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View File

@ -32,6 +32,14 @@ impl DerefMut for TabList {
&mut self.0 &mut self.0
} }
} }
impl IntoIterator for TabList {
type Item = Tab;
type IntoIter = std::vec::IntoIter<Self::Item>;
fn into_iter(self) -> Self::IntoIter {
self.0.into_iter()
}
}
pub fn get_tabs(validate: bool) -> TabList { pub fn get_tabs(validate: bool) -> TabList {
let (temp_dir, tab_files) = TabDirectories::get_tabs(); let (temp_dir, tab_files) = TabDirectories::get_tabs();

View File

@ -11,7 +11,7 @@ pub fn userguide() -> Result<String, DynError> {
let mut md = String::new(); let mut md = String::new();
md.push_str("<!-- THIS FILE IS GENERATED BY cargo xtask docgen -->\n# Walkthrough\n"); md.push_str("<!-- THIS FILE IS GENERATED BY cargo xtask docgen -->\n# Walkthrough\n");
let tabs = linutil_core::get_tabs(false).1; let tabs = linutil_core::get_tabs(false);
for tab in tabs { for tab in tabs {
#[cfg(debug_assertions)] #[cfg(debug_assertions)]