mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
fix (xtask): Handle modified tablist struct
This commit is contained in:
parent
51433a9a0d
commit
d392c985f2
|
@ -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();
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user